/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.elastictranscoder.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The Permission
structure.
*
* 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.
*
* A canonical user ID is not the same as an AWS account number. *
*
* Email
: The registered email address of an AWS account.
*
* Group
: One of the following predefined Amazon S3 groups: AllUsers
,
* AuthenticatedUsers
, or LogDelivery
.
*
* 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 String grantee; /** ** 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.
*
* 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.
*
* A canonical user ID is not the same as an AWS account number. *
*
* 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.
*
* A canonical user ID is not the same as an AWS account number. *
*
* Email
: The registered email address of an AWS account.
*
* Group
: One of the following predefined Amazon S3 groups: AllUsers
,
* AuthenticatedUsers
, or LogDelivery
.
*
* 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.
*
* A canonical user ID is not the same as an AWS account number. *
*
* 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.
*
* A canonical user ID is not the same as an AWS account number. *
*
* Email
: The registered email address of an AWS account.
*
* Group
: One of the following predefined Amazon S3 groups: AllUsers
,
* AuthenticatedUsers
, or LogDelivery
.
*
* 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.
*
* A canonical user ID is not the same as an AWS account number. *
*
* 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.
*
* A canonical user ID is not the same as an AWS account number. *
*
* Email
: The registered email address of an AWS account.
*
* Group
: One of the following predefined Amazon S3 groups: AllUsers
,
* AuthenticatedUsers
, or LogDelivery
.
*
* 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. *
* * @param 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 void setGrantee(String grantee) { this.grantee = 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. *
* * @return 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 String getGrantee() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Permission withGrantee(String grantee) { setGrantee(grantee); return this; } /** ** 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.
*
* 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.
*
* 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 * {@link #setAccess(java.util.Collection)} or {@link #withAccess(java.util.Collection)} if you want to override the * existing values. *
* * @param 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.
*
* 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.
*