Package com.amazonaws.services.s3.model
Class SetBucketAclRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.s3.model.SetBucketAclRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SetBucketAclRequest extends AmazonWebServiceRequest implements Serializable
Request object containing all the options for setting a bucket's Access Control List (ACL).- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SetBucketAclRequest(String bucketName, AccessControlList acl)
Constructs a new SetBucketAclRequest object, ready to set the specified ACL on the specified bucket when this request is executed.SetBucketAclRequest(String bucketName, CannedAccessControlList acl)
Constructs a new SetBucketAclRequest object, ready to set the specified canned ACL on the specified bucket when this request is executed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessControlList
getAcl()
Returns the custom ACL to be applied to the specified bucket when this request is executed.String
getBucketName()
Returns the name of the bucket whose ACL will be modified by this request when executed.CannedAccessControlList
getCannedAcl()
Returns the canned ACL to be applied to the specified bucket when this request is executed.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Constructor Detail
-
SetBucketAclRequest
public SetBucketAclRequest(String bucketName, AccessControlList acl)
Constructs a new SetBucketAclRequest object, ready to set the specified ACL on the specified bucket when this request is executed.- Parameters:
bucketName
- The name of the bucket whose ACL will be set by this request.acl
- The custom Access Control List containing the access rules to apply to the specified bucket when this request is executed.
-
SetBucketAclRequest
public SetBucketAclRequest(String bucketName, CannedAccessControlList acl)
Constructs a new SetBucketAclRequest object, ready to set the specified canned ACL on the specified bucket when this request is executed.- Parameters:
bucketName
- The name of the bucket whose ACL will be set by this request.acl
- The Canned Access Control List to apply to the specified bucket when this request is executed.
-
-
Method Detail
-
getBucketName
public String getBucketName()
Returns the name of the bucket whose ACL will be modified by this request when executed.- Returns:
- The name of the bucket whose ACL will be modified by this request when executed.
-
getAcl
public AccessControlList getAcl()
Returns the custom ACL to be applied to the specified bucket when this request is executed. A request can use either a custom ACL or a canned ACL, but not both.- Returns:
- The custom ACL to be applied to the specified bucket when this request is executed.
-
getCannedAcl
public CannedAccessControlList getCannedAcl()
Returns the canned ACL to be applied to the specified bucket when this request is executed. A request can use either a custom ACL or a canned ACL, but not both.- Returns:
- The canned ACL to be applied to the specified bucket when this request is executed.
-
-