public class DeleteBucketPolicyRequest extends AmazonWebServiceRequest implements java.io.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 developer guide for more information on forming bucket polices.
Constructor and Description |
---|
DeleteBucketPolicyRequest(java.lang.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 |
---|---|
java.lang.String |
getBucketName()
Returns the name of the Amazon S3 bucket whose policy is being deleted.
|
void |
setBucketName(java.lang.String bucketName)
Sets the name of the Amazon S3 bucket whose policy is being deleted.
|
DeleteBucketPolicyRequest |
withBucketName(java.lang.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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteBucketPolicyRequest(java.lang.String bucketName)
bucketName
- The name of the Amazon S3 bucket whose policy is being
deleted.public java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
bucketName
- The name of the Amazon S3 bucket whose policy is being
deleted.public DeleteBucketPolicyRequest withBucketName(java.lang.String bucketName)
bucketName
- The name of the Amazon S3 bucket whose policy is being
deleted.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.