Class ObjectCopyGrant


  • public final class ObjectCopyGrant
    extends java.lang.Object
    • Method Detail

      • email

        public java.util.Optional<java.lang.String> email()
        Returns:
        Email address of the grantee. Used only when `type` is `AmazonCustomerByEmail`.
      • id

        public java.util.Optional<java.lang.String> id()
        Returns:
        Canonical user ID of the grantee. Used only when `type` is `CanonicalUser`.
      • permissions

        public java.util.List<java.lang.String> permissions()
        Returns:
        List of permissions to grant to grantee. Valid values are `READ`, `READ_ACP`, `WRITE_ACP`, `FULL_CONTROL`.
      • type

        public java.lang.String type()
        Returns:
        Type of grantee. Valid values are `CanonicalUser`, `Group`, and `AmazonCustomerByEmail`.
      • uri

        public java.util.Optional<java.lang.String> uri()
        Returns:
        URI of the grantee group. Used only when `type` is `Group`.