public class SetBucketAclRequest extends AmazonWebServiceRequest implements Serializable
NOOP
Constructor and 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.
|
Modifier and Type | Method and 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.
|
addHandlerContext, clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public SetBucketAclRequest(String bucketName, AccessControlList acl)
When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
When using this operation using an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon Simple Storage Service Developer Guide.
bucketName
- The name of the bucket, or access point ARN, 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.public SetBucketAclRequest(String bucketName, CannedAccessControlList acl)
When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
When using this operation using an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon Simple Storage Service Developer Guide.
bucketName
- The name of the bucket, or access point ARN, 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.public String getBucketName()
public AccessControlList getAcl()
public CannedAccessControlList getCannedAcl()
Copyright © 2024. All rights reserved.