public class SetBucketEncryptionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, ExpectedBucketOwnerRequest
Represents the input of a PutBucketEncryption operation.
NOOP| Constructor and Description |
|---|
SetBucketEncryptionRequest() |
| Modifier and Type | Method and Description |
|---|---|
SetBucketEncryptionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBucketName() |
String |
getExpectedBucketOwner()
Returns he account id of the expected bucket owner.
|
ServerSideEncryptionConfiguration |
getServerSideEncryptionConfiguration() |
int |
hashCode() |
void |
setBucketName(String bucketName)
The name of the bucket for which to set the encryption configuration.
|
void |
setExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
void |
setServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)
Sets the container for server-side encryption configuration rules.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SetBucketEncryptionRequest |
withBucketName(String bucketName)
The name of the bucket for which to set the encryption configuration.
|
SetBucketEncryptionRequest |
withExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
SetBucketEncryptionRequest |
withServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)
Sets the container for server-side encryption configuration rules.
|
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 SetBucketEncryptionRequest 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)
bucketName - Bucket name.public SetBucketEncryptionRequest withBucketName(String bucketName)
bucketName - Bucket name.public ServerSideEncryptionConfiguration getServerSideEncryptionConfiguration()
public void setServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)
serverSideEncryptionConfiguration - New configuration.public SetBucketEncryptionRequest withServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)
serverSideEncryptionConfiguration - New configuration.public String toString()
toString in class ObjectObject.toString()public SetBucketEncryptionRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()