public class DeleteBucketRequest extends AmazonWebServiceRequest implements java.io.Serializable, S3AccelerateUnsupported
Provides options for deleting a specified bucket. Amazon S3 buckets can only be deleted when empty.
Note: When attempting to delete a bucket that does not exist, Amazon S3 returns a success message, not an error message.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bucketName
The name of the Amazon S3 bucket to delete.
|
NOOP
Constructor and Description |
---|
DeleteBucketRequest(java.lang.String bucketName)
Constructs a new
DeleteBucketRequest ,
ready to be executed to delete the
specified bucket. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBucketName()
Gets the name of the Amazon S3 bucket to delete.
|
void |
setBucketName(java.lang.String bucketName)
Sets the name of the Amazon S3 bucket to delete.
|
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
private java.lang.String bucketName
public DeleteBucketRequest(java.lang.String bucketName)
DeleteBucketRequest
,
ready to be executed to delete the
specified bucket.bucketName
- The name of the Amazon S3 bucket to delete.public void setBucketName(java.lang.String bucketName)
bucketName
- The name of the Amazon S3 bucket to delete.getBucketName()
public java.lang.String getBucketName()
setBucketName(String)