Class CfnBucketPropsMixin.ReplicationDestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.ReplicationDestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.ReplicationDestinationProperty>
- Enclosing interface:
CfnBucketPropsMixin.ReplicationDestinationProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.ReplicationDestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.ReplicationDestinationProperty>
A builder for
CfnBucketPropsMixin.ReplicationDestinationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessControlTranslation(CfnBucketPropsMixin.AccessControlTranslationProperty accessControlTranslation) accessControlTranslation(IResolvable accessControlTranslation) Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getAccount()Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getBucket()bucket(IBucketRef bucket) Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getBucket()build()Builds the configured instance.encryptionConfiguration(CfnBucketPropsMixin.EncryptionConfigurationProperty encryptionConfiguration) encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getMetrics()metrics(IResolvable metrics) Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getMetrics()replicationTime(CfnBucketPropsMixin.ReplicationTimeProperty replicationTime) Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getReplicationTime()replicationTime(IResolvable replicationTime) Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getReplicationTime()storageClass(String storageClass) Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getStorageClass()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessControlTranslation
@Stability(Stable) public CfnBucketPropsMixin.ReplicationDestinationProperty.Builder accessControlTranslation(IResolvable accessControlTranslation) - 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 CfnBucketPropsMixin.ReplicationDestinationProperty.Builder accessControlTranslation(CfnBucketPropsMixin.AccessControlTranslationProperty accessControlTranslation) - 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
@Stability(Stable) public CfnBucketPropsMixin.ReplicationDestinationProperty.Builder account(String account) Sets the value ofCfnBucketPropsMixin.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 theAccessControlTranslationproperty, 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
AccessControlTranslationproperty, theAccountproperty is required.- Returns:
this
-
bucket
@Stability(Stable) public CfnBucketPropsMixin.ReplicationDestinationProperty.Builder bucket(String bucket) Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getBucket()- Parameters:
bucket- The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.- Returns:
this
-
bucket
@Stability(Stable) public CfnBucketPropsMixin.ReplicationDestinationProperty.Builder bucket(IBucketRef bucket) Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getBucket()- Parameters:
bucket- The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnBucketPropsMixin.ReplicationDestinationProperty.Builder encryptionConfiguration(IResolvable encryptionConfiguration) - Parameters:
encryptionConfiguration- Specifies encryption-related information.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnBucketPropsMixin.ReplicationDestinationProperty.Builder encryptionConfiguration(CfnBucketPropsMixin.EncryptionConfigurationProperty encryptionConfiguration) - Parameters:
encryptionConfiguration- Specifies encryption-related information.- Returns:
this
-
metrics
@Stability(Stable) public CfnBucketPropsMixin.ReplicationDestinationProperty.Builder metrics(IResolvable metrics) Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getMetrics()- Parameters:
metrics- A container specifying replication metrics-related settings enabling replication metrics and events.- Returns:
this
-
metrics
@Stability(Stable) public CfnBucketPropsMixin.ReplicationDestinationProperty.Builder metrics(CfnBucketPropsMixin.MetricsProperty metrics) Sets the value ofCfnBucketPropsMixin.ReplicationDestinationProperty.getMetrics()- Parameters:
metrics- A container specifying replication metrics-related settings enabling replication metrics and events.- Returns:
this
-
replicationTime
@Stability(Stable) public CfnBucketPropsMixin.ReplicationDestinationProperty.Builder replicationTime(IResolvable replicationTime) Sets the value ofCfnBucketPropsMixin.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 aMetricsblock.- Returns:
this
-
replicationTime
@Stability(Stable) public CfnBucketPropsMixin.ReplicationDestinationProperty.Builder replicationTime(CfnBucketPropsMixin.ReplicationTimeProperty replicationTime) Sets the value ofCfnBucketPropsMixin.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 aMetricsblock.- Returns:
this
-
storageClass
@Stability(Stable) public CfnBucketPropsMixin.ReplicationDestinationProperty.Builder storageClass(String storageClass) Sets the value ofCfnBucketPropsMixin.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
StorageClasselement of the PUT Bucket replication action in the Amazon S3 API Reference .FSX_OPENZFSis not an accepted value when replicating objects.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.ReplicationDestinationProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.ReplicationDestinationProperty - Throws:
NullPointerException- if any required attribute was not provided
-