Package com.amazonaws.services.s3.model
Class DeleteBucketRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.s3.model.DeleteBucketRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,S3AccelerateUnsupported
,Serializable
,Cloneable
public class DeleteBucketRequest extends AmazonWebServiceRequest implements 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.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DeleteBucketRequest(String bucketName)
Constructs a newDeleteBucketRequest
, ready to be executed to delete the specified bucket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBucketName()
Gets the name of the Amazon S3 bucket to delete.void
setBucketName(String bucketName)
Sets the name of the Amazon S3 bucket to delete.-
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
-
DeleteBucketRequest
public DeleteBucketRequest(String bucketName)
Constructs a newDeleteBucketRequest
, ready to be executed to delete the specified bucket.- Parameters:
bucketName
- The name of the Amazon S3 bucket to delete.
-
-
Method Detail
-
setBucketName
public void setBucketName(String bucketName)
Sets the name of the Amazon S3 bucket to delete.- Parameters:
bucketName
- The name of the Amazon S3 bucket to delete.- See Also:
getBucketName()
-
getBucketName
public String getBucketName()
Gets the name of the Amazon S3 bucket to delete.- Returns:
- The name of the Amazon S3 bucket to delete.
- See Also:
setBucketName(String)
-
-