Package com.amazonaws.services.s3.model
Class ReplicationDestinationConfig
java.lang.Object
com.amazonaws.services.s3.model.ReplicationDestinationConfig
- All Implemented Interfaces:
Serializable
Destination configuration for an Amazon S3 bucket replication rule.
Configurations in addition to destination bucket ARN may be added in future.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Amazon S3 bucket ARN where the replicas are present.Returns the storage class associated with the replication destination configuration.void
setBucketARN
(String bucketARN) Sets the destination bucket ARN for the replication rule.void
setStorageClass
(StorageClass storageClass) Sets the storage class for the replication destination.void
setStorageClass
(String storageClass) Sets the storage class for the replication destination.toString()
withBucketARN
(String bucketARN) Sets the destination bucket ARN for the replication rule.withStorageClass
(StorageClass storageClass) Sets the storage class for the replication destination.withStorageClass
(String storageClass) Sets the storage class for the replication destination.
-
Constructor Details
-
ReplicationDestinationConfig
public ReplicationDestinationConfig()
-
-
Method Details
-
getBucketARN
Returns the Amazon S3 bucket ARN where the replicas are present. -
setBucketARN
Sets the destination bucket ARN for the replication rule.- Throws:
IllegalArgumentException
- if the bucket arn is null.
-
withBucketARN
Sets the destination bucket ARN for the replication rule. Returns the updated object.- Returns:
- the updated
ReplicationDestinationConfig
object - Throws:
IllegalArgumentException
- if the bucket arn is null.
-
setStorageClass
Sets the storage class for the replication destination. If not specified, Amazon S3 uses the storage class of the source object to create object replica. -
setStorageClass
Sets the storage class for the replication destination. If not specified, Amazon S3 uses the storage class of the source object to create object replica. -
withStorageClass
Sets the storage class for the replication destination. If not specified, Amazon S3 uses the storage class of the source object to create object replica. Returns the updated object.- Returns:
- the updated
ReplicationDestinationConfig
object
-
withStorageClass
Sets the storage class for the replication destination. If not specified, Amazon S3 uses the storage class of the source object to create object replica. Returns the updated object.- Returns:
- the updated
ReplicationDestinationConfig
object
-
getStorageClass
Returns the storage class associated with the replication destination configuration. -
toString
-