public class DeleteBucketPolicyRequest extends AmazonWebServiceRequest implements Serializable
Bucket policies provide access control management at the bucket level for both the bucket resource and contained object resources. Only one policy can be specified per-bucket.
See the Amazon S3 User Guide for more information on forming bucket polices.
AmazonS3#deleteBucketPolicy(DeleteBucketPolicyRequest)
,
Serialized FormNOOP
Constructor and Description |
---|
DeleteBucketPolicyRequest(String bucketName)
Creates a new request object, ready to be executed to delete the bucket
policy of an Amazon S3 bucket.
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Returns the name of the Amazon S3 bucket whose policy is being deleted.
|
void |
setBucketName(String bucketName)
Sets the name of the Amazon S3 bucket whose policy is being deleted.
|
DeleteBucketPolicyRequest |
withBucketName(String bucketName)
Sets the name of the Amazon S3 bucket whose policy is being deleted, and
returns the updated request object so that additional method calls can be
chained together.
|
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 DeleteBucketPolicyRequest(String bucketName)
bucketName
- The name of the Amazon S3 bucket whose policy is being
deleted.public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket whose policy is being
deleted.public DeleteBucketPolicyRequest withBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket whose policy is being
deleted.Copyright © 2024. All rights reserved.