Class S3ObjectAclGrant


  • public class S3ObjectAclGrant
    extends java.lang.Object
    Specifies a grant, consisting of one grantee and one permission.
    • Method Detail

      • getGrantee

        public S3ObjectAclGrantee getGrantee()
        The grantee being granted a permission by this grant.
      • setGrantee

        public void setGrantee​(S3ObjectAclGrantee grantee)
        The grantee being granted a permission by this grant.
      • getPermission

        public S3ObjectAclPermission getPermission()
        The permission being granted to the grantee by this grant.
        • FULL_CONTROL: Allows grantee the READ, READ_ACP, and WRITE_ACP permissions on the object.
        • READ: Allows grantee to read the object data and its metadata.
        • READ_ACP: Allows grantee to read the object ACL.
        • WRITE: Not applicable for objects, only for buckets.
        • WRITE_ACP: Allows grantee to write the ACL for the applicable object.
      • setPermission

        public void setPermission​(S3ObjectAclPermission permission)
        The permission being granted to the grantee by this grant.
        • FULL_CONTROL: Allows grantee the READ, READ_ACP, and WRITE_ACP permissions on the object.
        • READ: Allows grantee to read the object data and its metadata.
        • READ_ACP: Allows grantee to read the object ACL.
        • WRITE: Not applicable for objects, only for buckets.
        • WRITE_ACP: Allows grantee to write the ACL for the applicable object.