Interface ReplicationConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReplicationConfiguration.Builder,
,ReplicationConfiguration> SdkBuilder<ReplicationConfiguration.Builder,
,ReplicationConfiguration> SdkPojo
- Enclosing class:
ReplicationConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects.rules
(Collection<ReplicationRule> rules) A container for one or more replication rules.rules
(Consumer<ReplicationRule.Builder>... rules) A container for one or more replication rules.rules
(ReplicationRule... rules) A container for one or more replication rules.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
role
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. For more information, see How to Set Up Replication in the Amazon S3 User Guide.
- Parameters:
role
- The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. For more information, see How to Set Up Replication in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.
- Parameters:
rules
- A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.
- Parameters:
rules
- A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.
This is a convenience method that creates an instance of theReplicationRule.Builder
avoiding the need to create one manually viaReplicationRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torules(List<ReplicationRule>)
.- Parameters:
rules
- a consumer that will call methods onReplicationRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-