Class CfnBucket.ReplicationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.ReplicationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.ReplicationConfigurationProperty>
- Enclosing interface:
CfnBucket.ReplicationConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.ReplicationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.ReplicationConfigurationProperty>
A builder for
CfnBucket.ReplicationConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.ReplicationConfigurationProperty.getRole()
Sets the value ofCfnBucket.ReplicationConfigurationProperty.getRules()
rules
(IResolvable rules) Sets the value ofCfnBucket.ReplicationConfigurationProperty.getRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
role
Sets the value ofCfnBucket.ReplicationConfigurationProperty.getRole()
- Parameters:
role
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. This parameter is required. For more information, see How to Set Up Replication in the Amazon S3 User Guide .- Returns:
this
-
rules
@Stability(Stable) public CfnBucket.ReplicationConfigurationProperty.Builder rules(IResolvable rules) Sets the value ofCfnBucket.ReplicationConfigurationProperty.getRules()
- Parameters:
rules
- A container for one or more replication rules. This parameter is required. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.- Returns:
this
-
rules
@Stability(Stable) public CfnBucket.ReplicationConfigurationProperty.Builder rules(List<? extends Object> rules) Sets the value ofCfnBucket.ReplicationConfigurationProperty.getRules()
- Parameters:
rules
- A container for one or more replication rules. This parameter is required. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.ReplicationConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.ReplicationConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-