Package com.amazonaws.services.s3.model
Class ReplicationDestinationConfig
- java.lang.Object
-
- com.amazonaws.services.s3.model.ReplicationDestinationConfig
-
- All Implemented Interfaces:
Serializable
public class ReplicationDestinationConfig extends Object implements Serializable
Destination configuration for an Amazon S3 bucket replication rule. Configurations in addition to destination bucket ARN may be added in future.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplicationDestinationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBucketARN()
Returns the Amazon S3 bucket ARN where the replicas are present.String
getStorageClass()
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.String
toString()
ReplicationDestinationConfig
withBucketARN(String bucketARN)
Sets the destination bucket ARN for the replication rule.ReplicationDestinationConfig
withStorageClass(StorageClass storageClass)
Sets the storage class for the replication destination.ReplicationDestinationConfig
withStorageClass(String storageClass)
Sets the storage class for the replication destination.
-
-
-
Method Detail
-
getBucketARN
public String getBucketARN()
Returns the Amazon S3 bucket ARN where the replicas are present.
-
setBucketARN
public void setBucketARN(String bucketARN)
Sets the destination bucket ARN for the replication rule.- Throws:
IllegalArgumentException
- if the bucket arn is null.
-
withBucketARN
public ReplicationDestinationConfig withBucketARN(String bucketARN)
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
public void setStorageClass(String storageClass)
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
public void setStorageClass(StorageClass storageClass)
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
public ReplicationDestinationConfig withStorageClass(String storageClass)
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
public ReplicationDestinationConfig withStorageClass(StorageClass storageClass)
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
public String getStorageClass()
Returns the storage class associated with the replication destination configuration.
-
-