@Generated(value="software.amazon.awssdk:codegen") public final class ReplicationConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReplicationConfiguration.Builder,ReplicationConfiguration>
A container for replication rules. You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
Modifier and Type | Class and Description |
---|---|
static interface |
ReplicationConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
static ReplicationConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRules()
Returns true if the Rules property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
role()
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when
replicating objects.
|
List<ReplicationRule> |
rules()
A container for one or more replication rules.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ReplicationConfiguration.Builder> |
serializableBuilderClass() |
ReplicationConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String role()
The Amazon Resource Name (ARN) of the AWS 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.
public final boolean hasRules()
public final List<ReplicationRule> 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRules()
to see if a value was sent in this field.
public ReplicationConfiguration.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<ReplicationConfiguration.Builder,ReplicationConfiguration>
public static ReplicationConfiguration.Builder builder()
public static Class<? extends ReplicationConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.