public class Permission
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The Permission
structure.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
access
The permission that you want to give to the AWS user that is listed in
Grantee.
|
private java.lang.String |
grantee
The AWS user or group that you want to have access to transcoded files
and playlists.
|
private java.lang.String |
granteeType
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. |
Constructor and Description |
---|
Permission() |
Modifier and Type | Method and Description |
---|---|
Permission |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getAccess()
The permission that you want to give to the AWS user that is listed in
Grantee.
|
java.lang.String |
getGrantee()
The AWS user or group that you want to have access to transcoded files
and playlists.
|
java.lang.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. |
int |
hashCode() |
void |
setAccess(java.util.Collection<java.lang.String> access)
The permission that you want to give to the AWS user that is listed in
Grantee.
|
void |
setGrantee(java.lang.String grantee)
The AWS user or group that you want to have access to transcoded files
and playlists.
|
void |
setGranteeType(java.lang.String granteeType)
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. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Permission |
withAccess(java.util.Collection<java.lang.String> access)
The permission that you want to give to the AWS user that is listed in
Grantee.
|
Permission |
withAccess(java.lang.String... access)
The permission that you want to give to the AWS user that is listed in
Grantee.
|
Permission |
withGrantee(java.lang.String grantee)
The AWS user or group that you want to have access to transcoded files
and playlists.
|
Permission |
withGranteeType(java.lang.String granteeType)
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. |
private java.lang.String granteeType
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. Email
: The registered email address of an AWS account.Group
: One of the following predefined Amazon S3 groups:
AllUsers
, AuthenticatedUsers
, or
LogDelivery
.private java.lang.String grantee
The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.
private SdkInternalList<java.lang.String> access
The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:
READ
: The grantee can read the thumbnails and metadata
for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.READ_ACP
: The grantee can read the object ACL for
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.WRITE_ACP
: The grantee can write the ACL for the
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.FULL_CONTROL
: The grantee has READ, READ_ACP, and
WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to
the Amazon S3 bucket.public void setGranteeType(java.lang.String granteeType)
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. Email
: The registered email address of an AWS account.Group
: One of the following predefined Amazon S3 groups:
AllUsers
, AuthenticatedUsers
, or
LogDelivery
.granteeType
- 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. Email
: The registered email address of an AWS
account.Group
: One of the following predefined Amazon S3
groups: AllUsers
, AuthenticatedUsers
, or
LogDelivery
.public java.lang.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. Email
: The registered email address of an AWS account.Group
: One of the following predefined Amazon S3 groups:
AllUsers
, AuthenticatedUsers
, or
LogDelivery
.Canonical
: Either the canonical user ID for an
AWS account or an origin access identity for an Amazon CloudFront
distribution. Email
: The registered email address of an AWS
account.Group
: One of the following predefined Amazon S3
groups: AllUsers
, AuthenticatedUsers
,
or LogDelivery
.public Permission withGranteeType(java.lang.String granteeType)
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. Email
: The registered email address of an AWS account.Group
: One of the following predefined Amazon S3 groups:
AllUsers
, AuthenticatedUsers
, or
LogDelivery
.granteeType
- 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. Email
: The registered email address of an AWS
account.Group
: One of the following predefined Amazon S3
groups: AllUsers
, AuthenticatedUsers
, or
LogDelivery
.public void setGrantee(java.lang.String grantee)
The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.
grantee
- The AWS user or group that you want to have access to transcoded
files and playlists. To identify the user or group, you can
specify the canonical user ID for an AWS account, an origin access
identity for a CloudFront distribution, the registered email
address of an AWS account, or a predefined Amazon S3 group.public java.lang.String getGrantee()
The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.
public Permission withGrantee(java.lang.String grantee)
The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.
grantee
- The AWS user or group that you want to have access to transcoded
files and playlists. To identify the user or group, you can
specify the canonical user ID for an AWS account, an origin access
identity for a CloudFront distribution, the registered email
address of an AWS account, or a predefined Amazon S3 group.public java.util.List<java.lang.String> getAccess()
The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:
READ
: The grantee can read the thumbnails and metadata
for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.READ_ACP
: The grantee can read the object ACL for
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.WRITE_ACP
: The grantee can write the ACL for the
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.FULL_CONTROL
: The grantee has READ, READ_ACP, and
WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to
the Amazon S3 bucket.READ
: The grantee can read the thumbnails and
metadata for thumbnails that Elastic Transcoder adds to the
Amazon S3 bucket.READ_ACP
: The grantee can read the object ACL
for thumbnails that Elastic Transcoder adds to the Amazon S3
bucket.WRITE_ACP
: The grantee can write the ACL for the
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.FULL_CONTROL
: The grantee has READ, READ_ACP,
and WRITE_ACP permissions for the thumbnails that Elastic
Transcoder adds to the Amazon S3 bucket.public void setAccess(java.util.Collection<java.lang.String> access)
The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:
READ
: The grantee can read the thumbnails and metadata
for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.READ_ACP
: The grantee can read the object ACL for
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.WRITE_ACP
: The grantee can write the ACL for the
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.FULL_CONTROL
: The grantee has READ, READ_ACP, and
WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to
the Amazon S3 bucket.access
- The permission that you want to give to the AWS user that is
listed in Grantee. Valid values include:
READ
: The grantee can read the thumbnails and
metadata for thumbnails that Elastic Transcoder adds to the Amazon
S3 bucket.READ_ACP
: The grantee can read the object ACL for
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.WRITE_ACP
: The grantee can write the ACL for the
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.FULL_CONTROL
: The grantee has READ, READ_ACP, and
WRITE_ACP permissions for the thumbnails that Elastic Transcoder
adds to the Amazon S3 bucket.public Permission withAccess(java.lang.String... access)
The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:
READ
: The grantee can read the thumbnails and metadata
for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.READ_ACP
: The grantee can read the object ACL for
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.WRITE_ACP
: The grantee can write the ACL for the
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.FULL_CONTROL
: The grantee has READ, READ_ACP, and
WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to
the Amazon S3 bucket.
NOTE: This method appends the values to the existing list (if
any). Use setAccess(java.util.Collection)
or
withAccess(java.util.Collection)
if you want to override the
existing values.
access
- The permission that you want to give to the AWS user that is
listed in Grantee. Valid values include:
READ
: The grantee can read the thumbnails and
metadata for thumbnails that Elastic Transcoder adds to the Amazon
S3 bucket.READ_ACP
: The grantee can read the object ACL for
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.WRITE_ACP
: The grantee can write the ACL for the
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.FULL_CONTROL
: The grantee has READ, READ_ACP, and
WRITE_ACP permissions for the thumbnails that Elastic Transcoder
adds to the Amazon S3 bucket.public Permission withAccess(java.util.Collection<java.lang.String> access)
The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:
READ
: The grantee can read the thumbnails and metadata
for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.READ_ACP
: The grantee can read the object ACL for
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.WRITE_ACP
: The grantee can write the ACL for the
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.FULL_CONTROL
: The grantee has READ, READ_ACP, and
WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to
the Amazon S3 bucket.access
- The permission that you want to give to the AWS user that is
listed in Grantee. Valid values include:
READ
: The grantee can read the thumbnails and
metadata for thumbnails that Elastic Transcoder adds to the Amazon
S3 bucket.READ_ACP
: The grantee can read the object ACL for
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.WRITE_ACP
: The grantee can write the ACL for the
thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.FULL_CONTROL
: The grantee has READ, READ_ACP, and
WRITE_ACP permissions for the thumbnails that Elastic Transcoder
adds to the Amazon S3 bucket.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Permission clone()
clone
in class java.lang.Object