public class HeadBucketRequest extends AmazonWebServiceRequest implements Serializable, ExpectedBucketOwnerRequest
NOOP| Constructor and Description | 
|---|
HeadBucketRequest(String bucketName)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj)  | 
String | 
getBucketName()
 The bucket name. 
 | 
String | 
getExpectedBucketOwner()
Returns he account id of the expected bucket owner. 
 | 
int | 
hashCode()  | 
void | 
setBucketName(String bucketName)
 The bucket name. 
 | 
void | 
setExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner. 
 | 
HeadBucketRequest | 
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, withSdkRequestTimeoutpublic HeadBucketRequest(String bucketName)
public String getExpectedBucketOwner()
ExpectedBucketOwnerRequest403 (Access Denied) error.getExpectedBucketOwner in interface ExpectedBucketOwnerRequestpublic HeadBucketRequest withExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest403 (Access Denied) error.withExpectedBucketOwner in interface ExpectedBucketOwnerRequestpublic void setExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest403 (Access Denied) error.setExpectedBucketOwner in interface ExpectedBucketOwnerRequestpublic void setBucketName(String bucketName)
The bucket name.
When using this action 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 action with 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 S3 User Guide.
 When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The
 S3 on Outposts hostname takes the form
  AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com.
 When you use this action using S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts
 access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see What is S3 on Outposts in the
 Amazon S3 User Guide.
 
public String getBucketName()
The bucket name.
When using this action 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 action with 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 S3 User Guide.
 When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The
 S3 on Outposts hostname takes the form
  AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com.
 When you use this action using S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts
 access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see What is S3 on Outposts in the
 Amazon S3 User Guide.
 
When using this action 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 action with 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 S3 User Guide.
         When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts
         hostname. The S3 on Outposts hostname takes the form
          AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com.
         When you use this action using S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts
         access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see What is S3 on Outposts
         in the Amazon S3 User Guide.