Class CfnBucket.ReplicationDestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.ReplicationDestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.ReplicationDestinationProperty>
- Enclosing interface:
- CfnBucket.ReplicationDestinationProperty
@Stability(Stable)
public static final class CfnBucket.ReplicationDestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.ReplicationDestinationProperty>
A builder for
CfnBucket.ReplicationDestinationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessControlTranslation
(IResolvable accessControlTranslation) Sets the value ofCfnBucket.ReplicationDestinationProperty.getAccessControlTranslation()
accessControlTranslation
(CfnBucket.AccessControlTranslationProperty accessControlTranslation) Sets the value ofCfnBucket.ReplicationDestinationProperty.getAccessControlTranslation()
Sets the value ofCfnBucket.ReplicationDestinationProperty.getAccount()
Sets the value ofCfnBucket.ReplicationDestinationProperty.getBucket()
build()
Builds the configured instance.encryptionConfiguration
(IResolvable encryptionConfiguration) Sets the value ofCfnBucket.ReplicationDestinationProperty.getEncryptionConfiguration()
encryptionConfiguration
(CfnBucket.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnBucket.ReplicationDestinationProperty.getEncryptionConfiguration()
metrics
(IResolvable metrics) Sets the value ofCfnBucket.ReplicationDestinationProperty.getMetrics()
metrics
(CfnBucket.MetricsProperty metrics) Sets the value ofCfnBucket.ReplicationDestinationProperty.getMetrics()
replicationTime
(IResolvable replicationTime) Sets the value ofCfnBucket.ReplicationDestinationProperty.getReplicationTime()
replicationTime
(CfnBucket.ReplicationTimeProperty replicationTime) Sets the value ofCfnBucket.ReplicationDestinationProperty.getReplicationTime()
storageClass
(String storageClass) Sets the value ofCfnBucket.ReplicationDestinationProperty.getStorageClass()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnBucket.ReplicationDestinationProperty.getBucket()
- Parameters:
bucket
- The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results. This parameter is required.- Returns:
this
-
accessControlTranslation
@Stability(Stable) public CfnBucket.ReplicationDestinationProperty.Builder accessControlTranslation(IResolvable accessControlTranslation) Sets the value ofCfnBucket.ReplicationDestinationProperty.getAccessControlTranslation()
- Parameters:
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.- Returns:
this
-
accessControlTranslation
@Stability(Stable) public CfnBucket.ReplicationDestinationProperty.Builder accessControlTranslation(CfnBucket.AccessControlTranslationProperty accessControlTranslation) Sets the value ofCfnBucket.ReplicationDestinationProperty.getAccessControlTranslation()
- Parameters:
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.- Returns:
this
-
account
Sets the value ofCfnBucket.ReplicationDestinationProperty.getAccount()
- Parameters:
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 theAccessControlTranslation
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, theAccount
property is required.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnBucket.ReplicationDestinationProperty.Builder encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnBucket.ReplicationDestinationProperty.getEncryptionConfiguration()
- Parameters:
encryptionConfiguration
- Specifies encryption-related information.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnBucket.ReplicationDestinationProperty.Builder encryptionConfiguration(CfnBucket.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnBucket.ReplicationDestinationProperty.getEncryptionConfiguration()
- Parameters:
encryptionConfiguration
- Specifies encryption-related information.- Returns:
this
-
metrics
@Stability(Stable) public CfnBucket.ReplicationDestinationProperty.Builder metrics(IResolvable metrics) Sets the value ofCfnBucket.ReplicationDestinationProperty.getMetrics()
- Parameters:
metrics
- A container specifying replication metrics-related settings enabling replication metrics and events.- Returns:
this
-
metrics
@Stability(Stable) public CfnBucket.ReplicationDestinationProperty.Builder metrics(CfnBucket.MetricsProperty metrics) Sets the value ofCfnBucket.ReplicationDestinationProperty.getMetrics()
- Parameters:
metrics
- A container specifying replication metrics-related settings enabling replication metrics and events.- Returns:
this
-
replicationTime
@Stability(Stable) public CfnBucket.ReplicationDestinationProperty.Builder replicationTime(IResolvable replicationTime) Sets the value ofCfnBucket.ReplicationDestinationProperty.getReplicationTime()
- Parameters:
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 aMetrics
block.- Returns:
this
-
replicationTime
@Stability(Stable) public CfnBucket.ReplicationDestinationProperty.Builder replicationTime(CfnBucket.ReplicationTimeProperty replicationTime) Sets the value ofCfnBucket.ReplicationDestinationProperty.getReplicationTime()
- Parameters:
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 aMetrics
block.- Returns:
this
-
storageClass
@Stability(Stable) public CfnBucket.ReplicationDestinationProperty.Builder storageClass(String storageClass) Sets the value ofCfnBucket.ReplicationDestinationProperty.getStorageClass()
- Parameters:
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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.ReplicationDestinationProperty>
- Returns:
- a new instance of
CfnBucket.ReplicationDestinationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-