public class ReplicationDestinationConfig extends Object implements Serializable
Constructor and Description |
---|
ReplicationDestinationConfig() |
Modifier and Type | Method and Description |
---|---|
AccessControlTranslation |
getAccessControlTranslation() |
String |
getAccount()
Returns The account ID of the destination bucket.
|
String |
getBucketARN()
Returns the Amazon S3 bucket ARN where the replicas are present.
|
EncryptionConfiguration |
getEncryptionConfiguration() |
Metrics |
getMetrics()
Returns a container specifying settings for configuring replication metrics and events.
|
ReplicationTime |
getReplicationTime()
Return a container specifying the time when all objects and operations on objects are replicated.
|
String |
getStorageClass()
Returns the storage class associated with the replication destination
configuration.
|
void |
setAccessControlTranslation(AccessControlTranslation accessControlTranslation)
Sets the access control translation.
|
void |
setAccount(String account)
Sets the account ID of the destination bucket.
|
void |
setBucketARN(String bucketARN)
Sets the destination bucket ARN for the replication rule.
|
void |
setEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
Sets the container for information regarding encryption based configuration for replicas
|
void |
setMetrics(Metrics metrics)
Set a container specifying settings for configuring replication metrics and events.
|
void |
setReplicationTime(ReplicationTime replicationTime)
Set a container specifying the time when all objects and operations on objects are replicated.
|
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 |
withAccessControlTranslation(AccessControlTranslation accessControlTranslation)
Sets the access control translation.
|
ReplicationDestinationConfig |
withAccount(String account)
Sets the account ID of the destination bucket.
|
ReplicationDestinationConfig |
withBucketARN(String bucketARN)
Sets the destination bucket ARN for the replication rule.
|
ReplicationDestinationConfig |
withEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
Sets the container for information regarding encryption based configuration for replicas
|
ReplicationDestinationConfig |
withMetrics(Metrics metrics)
Set container specifying settings for configuring replication metrics and events.
|
ReplicationDestinationConfig |
withReplicationTime(ReplicationTime replicationTime)
Set a container specifying the time when all objects and operations on objects are replicated.
|
ReplicationDestinationConfig |
withStorageClass(StorageClass storageClass)
Sets the storage class for the replication destination.
|
ReplicationDestinationConfig |
withStorageClass(String storageClass)
Sets the storage class for the replication destination.
|
public String getBucketARN()
public void setBucketARN(String bucketARN)
IllegalArgumentException
- if the bucket arn is null.public ReplicationDestinationConfig withBucketARN(String bucketARN)
ReplicationDestinationConfig
objectIllegalArgumentException
- if the bucket arn is null.public String getAccount()
public void setAccount(String account)
account
- New account id.public ReplicationDestinationConfig withAccount(String account)
account
- New account id.public void setStorageClass(String storageClass)
public void setStorageClass(StorageClass storageClass)
public ReplicationDestinationConfig withStorageClass(String storageClass)
ReplicationDestinationConfig
objectpublic ReplicationDestinationConfig withStorageClass(StorageClass storageClass)
ReplicationDestinationConfig
objectpublic String getStorageClass()
public AccessControlTranslation getAccessControlTranslation()
public void setAccessControlTranslation(AccessControlTranslation accessControlTranslation)
accessControlTranslation
- New access control translation.public ReplicationDestinationConfig withAccessControlTranslation(AccessControlTranslation accessControlTranslation)
accessControlTranslation
- New access control translation.public EncryptionConfiguration getEncryptionConfiguration()
public void setEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
encryptionConfiguration
- New encryption configuration.public ReplicationDestinationConfig withEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
encryptionConfiguration
- New encryption configuration.public ReplicationTime getReplicationTime()
Metrics
block.public void setReplicationTime(ReplicationTime replicationTime)
Metrics
block.replicationTime
- The replication time.public ReplicationDestinationConfig withReplicationTime(ReplicationTime replicationTime)
Metrics
block.replicationTime
- The replication time.public Metrics getMetrics()
public void setMetrics(Metrics metrics)
metrics
- The metrics information.public ReplicationDestinationConfig withMetrics(Metrics metrics)
metrics
- The metrics information.Copyright © 2021. All rights reserved.