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.void
setDestinationConfig
(ReplicationDestinationConfig destinationConfig) Sets the destination configuration for the replication rule.void
Sets the Amazon S3 Object prefix for the replication rule.void
setStatus
(ReplicationRuleStatus status) Sets the status of this replication rule.void
Sets 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
ReplicationRule
object. - 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
ReplicationRule
object.
-
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
ReplicationRule
object.
-
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
ReplicationRule
object. - Throws:
IllegalArgumentException
- if the destinationConfig is null.
-
toString
-