public class SetBucketReplicationConfigurationRequest extends AmazonWebServiceRequest implements Serializable, ExpectedBucketOwnerRequest
NOOP
Constructor and Description |
---|
SetBucketReplicationConfigurationRequest()
Creates a new SetReplicationConfigurationRequest.
|
SetBucketReplicationConfigurationRequest(String bucketName,
BucketReplicationConfiguration replicationConfiguration)
Creates a new SetReplicationConfigurationRequest.
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Returns the name of Amazon S3 bucket.
|
String |
getExpectedBucketOwner()
Returns he account id of the expected bucket owner.
|
BucketReplicationConfiguration |
getReplicationConfiguration()
Returns the replication configuration of an Amazon S3 bucket.
|
String |
getToken() |
void |
setBucketName(String bucketName)
Sets the name of Amazon S3 bucket for replication configuration.
|
void |
setExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
void |
setReplicationConfiguration(BucketReplicationConfiguration replicationConfiguration)
Sets the replication configuration for an Amazon S3 bucket.
|
void |
setToken(String token) |
String |
toString() |
SetBucketReplicationConfigurationRequest |
withBucketName(String bucketName)
Sets the name of Amazon S3 bucket for replication configuration.
|
SetBucketReplicationConfigurationRequest |
withExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
SetBucketReplicationConfigurationRequest |
withReplicationConfiguration(BucketReplicationConfiguration replicationConfiguration)
Sets the replication configuration for an Amazon S3 bucket.
|
SetBucketReplicationConfigurationRequest |
withToken(String token) |
addHandlerContext, clone, copyBaseTo, 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 SetBucketReplicationConfigurationRequest()
public SetBucketReplicationConfigurationRequest(String bucketName, BucketReplicationConfiguration replicationConfiguration)
bucketName
- The name of Amazon S3 bucket to which the replication
configuration is set.replicationConfiguration
- Replication configuration for an Amazon S3 bucket.public String getExpectedBucketOwner()
ExpectedBucketOwnerRequest
403 (Access Denied)
error.getExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public SetBucketReplicationConfigurationRequest 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 Amazon S3 bucket to which the replication
configuration is set.public SetBucketReplicationConfigurationRequest withBucketName(String bucketName)
bucketName
- The name of Amazon S3 bucket to which the replication
configuration is set.SetBucketReplicationConfigurationRequest
object.public BucketReplicationConfiguration getReplicationConfiguration()
public void setReplicationConfiguration(BucketReplicationConfiguration replicationConfiguration)
replicationConfiguration
- the replication configuration for an Amazon S3 bucket.public SetBucketReplicationConfigurationRequest withReplicationConfiguration(BucketReplicationConfiguration replicationConfiguration)
replicationConfiguration
- the replication configuration for an Amazon S3 bucket.SetBucketReplicationConfigurationRequest
object.public void setToken(String token)
public SetBucketReplicationConfigurationRequest withToken(String token)
public String getToken()
Copyright © 2022. All rights reserved.