List of usage examples for com.amazonaws.services.elastictranscoder.model Permission getGranteeType
public String getGranteeType()
The type of value that appears in the Grantee object:
Canonical
: Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.
From source file:org.alanwilliamson.amazon.transcoder.pipeline.List.java
License:Open Source License
private cfStructData getConfig(PipelineOutputConfig config) throws cfmRunTimeException { cfStructData s = new cfStructData(); s.setData("bucket", new cfStringData(config.getBucket())); s.setData("storageclass", new cfStringData(config.getStorageClass())); cfArrayData permissionArr = cfArrayData.createArray(1); Iterator<Permission> it = config.getPermissions().iterator(); while (it.hasNext()) { Permission p = it.next(); cfStructData ps = new cfStructData(); ps.setData("grantee", new cfStringData(p.getGrantee())); ps.setData("granteetype", new cfStringData(p.getGranteeType())); cfArrayData accessArr = cfArrayData.createArray(1); Iterator<String> ait = p.getAccess().iterator(); while (ait.hasNext()) accessArr.addElement(new cfStringData(ait.next())); ps.setData("access", accessArr); }/* w w w. ja va 2 s . c o m*/ s.setData("permissions", permissionArr); return s; }