Interface ReplicationConfiguration.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ReplicationConfiguration.Builder,ReplicationConfiguration>, SdkBuilder<ReplicationConfiguration.Builder,ReplicationConfiguration>, SdkPojo
Enclosing class:
ReplicationConfiguration

public static interface ReplicationConfiguration.Builder extends SdkPojo, CopyableBuilder<ReplicationConfiguration.Builder,ReplicationConfiguration>
  • 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 the ReplicationRule.Builder avoiding the need to create one manually via ReplicationRule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rules(List<ReplicationRule>).

      Parameters:
      rules - a consumer that will call methods on ReplicationRule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: