Package com.amazonaws.services.s3.model
Class ReplicationRule
- java.lang.Object
-
- com.amazonaws.services.s3.model.ReplicationRule
-
- All Implemented Interfaces:
Serializable
public class ReplicationRule extends Object implements Serializable
Rule that specifies the replication configuration.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplicationRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicationDestinationConfig
getDestinationConfig()
Returns the destination configuration for the replication rule.String
getPrefix()
Returns the prefix associated with the replication rule.String
getStatus()
Returns the status of the replication rule.void
setDestinationConfig(ReplicationDestinationConfig destinationConfig)
Sets the destination configuration for the replication rule.void
setPrefix(String prefix)
Sets the Amazon S3 Object prefix for the replication rule.void
setStatus(ReplicationRuleStatus status)
Sets the status of this replication rule.void
setStatus(String status)
Sets the status of this replication rule.String
toString()
ReplicationRule
withDestinationConfig(ReplicationDestinationConfig destinationConfig)
Sets the destination configuration for the replication rule.Returns the updated object.ReplicationRule
withPrefix(String prefix)
Sets the Amazon S3 Object prefix for the replication rule.ReplicationRule
withStatus(ReplicationRuleStatus status)
Sets the status of this replication rule.ReplicationRule
withStatus(String status)
Sets the status of this replication rule.
-
-
-
Method Detail
-
getPrefix
public String getPrefix()
Returns the prefix associated with the replication rule.
-
setPrefix
public void setPrefix(String prefix)
Sets the Amazon S3 Object prefix for the replication rule.- Throws:
IllegalArgumentException
- if the prefix is null.
-
withPrefix
public ReplicationRule withPrefix(String prefix)
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
public String getStatus()
Returns the status of the replication rule.
-
setStatus
public void setStatus(String status)
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
public ReplicationRule withStatus(String status)
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
public void setStatus(ReplicationRuleStatus status)
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
public ReplicationRule withStatus(ReplicationRuleStatus status)
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
public ReplicationDestinationConfig getDestinationConfig()
Returns the destination configuration for the replication rule.
-
setDestinationConfig
public void setDestinationConfig(ReplicationDestinationConfig destinationConfig)
Sets the destination configuration for the replication rule.- Throws:
IllegalArgumentException
- if the destinationConfig is null.
-
withDestinationConfig
public ReplicationRule withDestinationConfig(ReplicationDestinationConfig destinationConfig)
Sets the destination configuration for the replication rule.Returns the updated object.- Returns:
- the updated
ReplicationRule
object. - Throws:
IllegalArgumentException
- if the destinationConfig is null.
-
-