public static final class CfnBucket.ReplicationDestinationProperty.Builder
extends java.lang.Object
CfnBucket.ReplicationDestinationProperty
Constructor and Description |
---|
Builder() |
public CfnBucket.ReplicationDestinationProperty.Builder bucket(java.lang.String bucket)
CfnBucket.ReplicationDestinationProperty.getBucket()
bucket
- The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results. This parameter is required.this
public CfnBucket.ReplicationDestinationProperty.Builder accessControlTranslation(IResolvable accessControlTranslation)
CfnBucket.ReplicationDestinationProperty.getAccessControlTranslation()
accessControlTranslation
- Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket.
If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object.this
public CfnBucket.ReplicationDestinationProperty.Builder accessControlTranslation(CfnBucket.AccessControlTranslationProperty accessControlTranslation)
CfnBucket.ReplicationDestinationProperty.getAccessControlTranslation()
accessControlTranslation
- Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket.
If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object.this
public CfnBucket.ReplicationDestinationProperty.Builder account(java.lang.String account)
CfnBucket.ReplicationDestinationProperty.getAccount()
account
- Destination bucket owner account ID.
In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the AWS account that owns the destination bucket by specifying the AccessControlTranslation
property, this is the account ID of the destination bucket owner. For more information, see Cross-Region Replication Additional Configuration: Change Replica Owner in the Amazon S3 User Guide .
If you specify the AccessControlTranslation
property, the Account
property is required.
this
public CfnBucket.ReplicationDestinationProperty.Builder encryptionConfiguration(IResolvable encryptionConfiguration)
CfnBucket.ReplicationDestinationProperty.getEncryptionConfiguration()
encryptionConfiguration
- Specifies encryption-related information.this
public CfnBucket.ReplicationDestinationProperty.Builder encryptionConfiguration(CfnBucket.EncryptionConfigurationProperty encryptionConfiguration)
CfnBucket.ReplicationDestinationProperty.getEncryptionConfiguration()
encryptionConfiguration
- Specifies encryption-related information.this
public CfnBucket.ReplicationDestinationProperty.Builder metrics(IResolvable metrics)
CfnBucket.ReplicationDestinationProperty.getMetrics()
metrics
- A container specifying replication metrics-related settings enabling replication metrics and events.this
public CfnBucket.ReplicationDestinationProperty.Builder metrics(CfnBucket.MetricsProperty metrics)
CfnBucket.ReplicationDestinationProperty.getMetrics()
metrics
- A container specifying replication metrics-related settings enabling replication metrics and events.this
public CfnBucket.ReplicationDestinationProperty.Builder replicationTime(IResolvable replicationTime)
CfnBucket.ReplicationDestinationProperty.getReplicationTime()
replicationTime
- A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated.
Must be specified together with a Metrics
block.this
public CfnBucket.ReplicationDestinationProperty.Builder replicationTime(CfnBucket.ReplicationTimeProperty replicationTime)
CfnBucket.ReplicationDestinationProperty.getReplicationTime()
replicationTime
- A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated.
Must be specified together with a Metrics
block.this
public CfnBucket.ReplicationDestinationProperty.Builder storageClass(java.lang.String storageClass)
CfnBucket.ReplicationDestinationProperty.getStorageClass()
storageClass
- The storage class to use when replicating objects, such as S3 Standard or reduced redundancy.
By default, Amazon S3 uses the storage class of the source object to create the object replica.
For valid values, see the StorageClass
element of the PUT Bucket replication action in the Amazon S3 API Reference .
this
public CfnBucket.ReplicationDestinationProperty build()
CfnBucket.ReplicationDestinationProperty
java.lang.NullPointerException
- if any required attribute was not provided