Package com.amazonaws.services.s3.model
Class ReplicationRule
java.lang.Object
com.amazonaws.services.s3.model.ReplicationRule
- All Implemented Interfaces:
Serializable
Rule that specifies the replication configuration.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the destination configuration for the replication rule.Returns the prefix associated with the replication rule.Returns the status of the replication rule.voidsetDestinationConfig(ReplicationDestinationConfig destinationConfig) Sets the destination configuration for the replication rule.voidSets the Amazon S3 Object prefix for the replication rule.voidsetStatus(ReplicationRuleStatus status) Sets the status of this replication rule.voidSets the status of this replication rule.toString()withDestinationConfig(ReplicationDestinationConfig destinationConfig) Sets the destination configuration for the replication rule.Returns the updated object.withPrefix(String prefix) Sets the Amazon S3 Object prefix for the replication rule.withStatus(ReplicationRuleStatus status) Sets the status of this replication rule.withStatus(String status) Sets the status of this replication rule.
-
Constructor Details
-
ReplicationRule
public ReplicationRule()
-
-
Method Details
-
getPrefix
Returns the prefix associated with the replication rule. -
setPrefix
Sets the Amazon S3 Object prefix for the replication rule.- Throws:
IllegalArgumentException- if the prefix is null.
-
withPrefix
Sets the Amazon S3 Object prefix for the replication rule. Returns the updated object.- Returns:
- the updated
ReplicationRuleobject. - Throws:
IllegalArgumentException- if the prefix is null.
-
getStatus
Returns the status of the replication rule. -
setStatus
Sets the status of this replication rule. Valid values are Enabled, Disabled. The rule will be applied only if the status is Enabled.- Parameters:
status- the status of the replication rule.
-
withStatus
Sets the status of this replication rule. Valid values are Enabled, Disabled. The rule will be applied only if the status is Enabled.- Parameters:
status- the status of replication rule.- Returns:
- the updated
ReplicationRuleobject.
-
setStatus
Sets the status of this replication rule. Valid values are Enabled, Disabled. The rule will be applied only if the status is Enabled.- Parameters:
status- the status of the replication rule.
-
withStatus
Sets the status of this replication rule. Valid values are Enabled, Disabled. The rule will be applied only if the status is Enabled.- Parameters:
status- the status of replication rule.- Returns:
- the updated
ReplicationRuleobject.
-
getDestinationConfig
Returns the destination configuration for the replication rule. -
setDestinationConfig
Sets the destination configuration for the replication rule.- Throws:
IllegalArgumentException- if the destinationConfig is null.
-
withDestinationConfig
Sets the destination configuration for the replication rule.Returns the updated object.- Returns:
- the updated
ReplicationRuleobject. - Throws:
IllegalArgumentException- if the destinationConfig is null.
-
toString
-