@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplicationConfiguration extends Object implements Serializable, Cloneable
A container for one or more replication rules. A replication configuration must have at least one rule and you can add up to 100 rules. The maximum size of a replication configuration is 128 KB.
Constructor and Description |
---|
ReplicationConfiguration() |
Modifier and Type | Method and Description |
---|---|
ReplicationConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getRole()
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that S3 on Outposts assumes when
replicating objects.
|
List<ReplicationRule> |
getRules()
A container for one or more replication rules.
|
int |
hashCode() |
void |
setRole(String role)
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that S3 on Outposts assumes when
replicating objects.
|
void |
setRules(Collection<ReplicationRule> rules)
A container for one or more replication rules.
|
String |
toString()
Returns a string representation of this object.
|
ReplicationConfiguration |
withRole(String role)
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that S3 on Outposts assumes when
replicating objects.
|
ReplicationConfiguration |
withRules(Collection<ReplicationRule> rules)
A container for one or more replication rules.
|
ReplicationConfiguration |
withRules(ReplicationRule... rules)
A container for one or more replication rules.
|
public void setRole(String role)
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that S3 on Outposts assumes when replicating objects. For information about S3 replication on Outposts configuration, see Setting up replication in the Amazon S3 User Guide.
role
- The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that S3 on Outposts
assumes when replicating objects. For information about S3 replication on Outposts configuration, see Setting
up replication in the Amazon S3 User Guide.public String getRole()
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that S3 on Outposts assumes when replicating objects. For information about S3 replication on Outposts configuration, see Setting up replication in the Amazon S3 User Guide.
public ReplicationConfiguration withRole(String role)
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that S3 on Outposts assumes when replicating objects. For information about S3 replication on Outposts configuration, see Setting up replication in the Amazon S3 User Guide.
role
- The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that S3 on Outposts
assumes when replicating objects. For information about S3 replication on Outposts configuration, see Setting
up replication in the Amazon S3 User Guide.public List<ReplicationRule> getRules()
A container for one or more replication rules. A replication configuration must have at least one rule and can contain an array of 100 rules at the most.
public void setRules(Collection<ReplicationRule> rules)
A container for one or more replication rules. A replication configuration must have at least one rule and can contain an array of 100 rules at the most.
rules
- A container for one or more replication rules. A replication configuration must have at least one rule and
can contain an array of 100 rules at the most.public ReplicationConfiguration withRules(ReplicationRule... rules)
A container for one or more replication rules. A replication configuration must have at least one rule and can contain an array of 100 rules at the most.
NOTE: This method appends the values to the existing list (if any). Use
setRules(java.util.Collection)
or withRules(java.util.Collection)
if you want to override the
existing values.
rules
- A container for one or more replication rules. A replication configuration must have at least one rule and
can contain an array of 100 rules at the most.public ReplicationConfiguration withRules(Collection<ReplicationRule> rules)
A container for one or more replication rules. A replication configuration must have at least one rule and can contain an array of 100 rules at the most.
rules
- A container for one or more replication rules. A replication configuration must have at least one rule and
can contain an array of 100 rules at the most.public String toString()
toString
in class Object
Object.toString()
public ReplicationConfiguration clone()