Package com.adaptris.aws.s3.acl
Class S3ObjectAclGrant
- java.lang.Object
-
- com.adaptris.aws.s3.acl.S3ObjectAclGrant
-
public class S3ObjectAclGrant extends java.lang.Object
Specifies a grant, consisting of one grantee and one permission.
-
-
Constructor Summary
Constructors Constructor Description S3ObjectAclGrant()
S3ObjectAclGrant(S3ObjectAclGrantee grantee, S3ObjectAclPermission permission)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S3ObjectAclGrantee
getGrantee()
The grantee being granted a permission by this grant.S3ObjectAclPermission
getPermission()
The permission being granted to the grantee by this grant.void
setGrantee(S3ObjectAclGrantee grantee)
The grantee being granted a permission by this grant.void
setPermission(S3ObjectAclPermission permission)
The permission being granted to the grantee by this grant.
-
-
-
Constructor Detail
-
S3ObjectAclGrant
public S3ObjectAclGrant()
-
S3ObjectAclGrant
public S3ObjectAclGrant(S3ObjectAclGrantee grantee, S3ObjectAclPermission 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.
-
-