public class GetBucketLocationRequest extends AmazonWebServiceRequest implements Serializable, ExpectedBucketOwnerRequest
CreateBucketRequest
,
Serialized FormNOOP
Constructor and Description |
---|
GetBucketLocationRequest(String bucketName)
Constructs a new request object to create a new bucket with the specified
name.
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Returns the name of the bucket whose location is being requested.
|
String |
getExpectedBucketOwner()
Returns he account id of the expected bucket owner.
|
void |
setBucketName(String bucketName)
Sets the name of the bucket whose location is being requested.
|
void |
setExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
GetBucketLocationRequest |
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.
|
GetBucketLocationRequest |
withExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
addHandlerContext, clone, 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 GetBucketLocationRequest(String bucketName)
When choosing a bucket name, keep in mind that Amazon S3 bucket names are globally unique.
When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
When using this operation using an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon Simple Storage Service Developer Guide.
bucketName
- The name for the new bucket or access point ARN.public String getExpectedBucketOwner()
ExpectedBucketOwnerRequest
403 (Access Denied)
error.getExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public GetBucketLocationRequest withExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest
403 (Access Denied)
error.withExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public void setExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest
403 (Access Denied)
error.setExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- The name of the bucket whose location is being requested.public GetBucketLocationRequest withBucketName(String bucketName)
bucketName
- The name of the bucket whose location is being requested.