Package com.amazonaws.services.s3.model
Class GetBucketLocationRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.s3.model.GetBucketLocationRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
Provides options for requesting an Amazon S3 bucket's location. You
can choose a bucket's location when creating it to ensure that the
data stored in your bucket is geographically close to the applications
or customers accessing your data.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionGetBucketLocationRequest
(String bucketName) Constructs a new request object to create a new bucket with the specified name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the bucket whose location is being requested.void
setBucketName
(String bucketName) Sets the name of the bucket whose location is being requested.withBucketName
(String bucketName) Sets the name of the bucket whose location is being requested, and returns this updated object so that additional method calls can be chained together.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 Details
-
GetBucketLocationRequest
Constructs a new request object to create a new bucket with the specified name.When choosing a bucket name, keep in mind that Amazon S3 bucket names are globally unique.
- Parameters:
bucketName
- The name for the new bucket.
-
-
Method Details
-
getBucketName
Returns the name of the bucket whose location is being requested.- Returns:
- The name of the bucket whose location is being requested.
-
setBucketName
Sets the name of the bucket whose location is being requested.- Parameters:
bucketName
- The name of the bucket whose location is being requested.
-
withBucketName
Sets the name of the bucket whose location is being requested, and returns this updated object so that additional method calls can be chained together.- Parameters:
bucketName
- The name of the bucket whose location is being requested.- Returns:
- This updated object, so that additional method calls can be chained together.
-