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:
  • Constructor Details

    • ReplicationDestinationConfig

      public ReplicationDestinationConfig()
  • Method Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object