Class 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 Detail

      • ReplicationDestinationConfig

        public ReplicationDestinationConfig()
    • 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.
      • 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.