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 StringgetBucketARN()Returns the Amazon S3 bucket ARN where the replicas are present.StringgetStorageClass()Returns the storage class associated with the replication destination configuration.voidsetBucketARN(String bucketARN)Sets the destination bucket ARN for the replication rule.voidsetStorageClass(StorageClass storageClass)Sets the storage class for the replication destination.voidsetStorageClass(String storageClass)Sets the storage class for the replication destination.StringtoString()ReplicationDestinationConfigwithBucketARN(String bucketARN)Sets the destination bucket ARN for the replication rule.ReplicationDestinationConfigwithStorageClass(StorageClass storageClass)Sets the storage class for the replication destination.ReplicationDestinationConfigwithStorageClass(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
ReplicationDestinationConfigobject - 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
ReplicationDestinationConfigobject
-
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
ReplicationDestinationConfigobject
-
getStorageClass
public String getStorageClass()
Returns the storage class associated with the replication destination configuration.
-
-