public class SetPublicAccessBlockRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, ExpectedBucketOwnerRequest
NOOP| Constructor and Description |
|---|
SetPublicAccessBlockRequest() |
| Modifier and Type | Method and Description |
|---|---|
SetPublicAccessBlockRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object o) |
String |
getBucketName()
The name of the Amazon S3 bucket whose Public Access Block configuration you want to set.
|
String |
getExpectedBucketOwner()
Returns he account id of the expected bucket owner.
|
PublicAccessBlockConfiguration |
getPublicAccessBlockConfiguration()
The Public Access Block configuration that you want to apply to this Amazon S3 bucket.
|
int |
hashCode() |
void |
setBucketName(String bucketName)
The name of the Amazon S3 bucket whose Public Access Block configuration you want to set.
|
void |
setExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
void |
setPublicAccessBlockConfiguration(PublicAccessBlockConfiguration publicAccessBlockConfiguration)
The Public Access Block configuration that you want to apply to this Amazon S3 bucket.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SetPublicAccessBlockRequest |
withBucketName(String bucketName)
The name of the Amazon S3 bucket whose Public Access Block configuration you want to set.
|
SetPublicAccessBlockRequest |
withExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
SetPublicAccessBlockRequest |
withPublicAccessBlockConfiguration(PublicAccessBlockConfiguration publicAccessBlockConfiguration)
The Public Access Block configuration that you want to apply to this Amazon S3 bucket.
|
addHandlerContext, 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 String getExpectedBucketOwner()
ExpectedBucketOwnerRequest403 (Access Denied) error.getExpectedBucketOwner in interface ExpectedBucketOwnerRequestpublic SetPublicAccessBlockRequest withExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest403 (Access Denied) error.withExpectedBucketOwner in interface ExpectedBucketOwnerRequestpublic void setExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest403 (Access Denied) error.setExpectedBucketOwner in interface ExpectedBucketOwnerRequestpublic String getBucketName()
public void setBucketName(String bucketName)
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 - Name of bucket or access point ARN.public SetPublicAccessBlockRequest withBucketName(String bucketName)
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 - Name of bucket or access point ARN.public PublicAccessBlockConfiguration getPublicAccessBlockConfiguration()
public void setPublicAccessBlockConfiguration(PublicAccessBlockConfiguration publicAccessBlockConfiguration)
publicAccessBlockConfiguration - Configuration you wish to set.public SetPublicAccessBlockRequest withPublicAccessBlockConfiguration(PublicAccessBlockConfiguration publicAccessBlockConfiguration)
publicAccessBlockConfiguration - Configuration you wish to set.public String toString()
toString in class ObjectObject.toString()public SetPublicAccessBlockRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()