public class ReplicationRule extends Object implements Serializable
Constructor and Description |
---|
ReplicationRule() |
Modifier and Type | Method and Description |
---|---|
ReplicationDestinationConfig |
getDestinationConfig()
Returns the destination configuration for the replication rule.
|
String |
getPrefix()
Returns the prefix associated with the replication rule.
|
SourceSelectionCriteria |
getSourceSelectionCriteria() |
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 |
setSourceSelectionCriteria(SourceSelectionCriteria sourceSelectionCriteria)
Sets the container for filters that define which source objects should be replicated.
|
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 |
withSourceSelectionCriteria(SourceSelectionCriteria sourceSelectionCriteria)
Sets the container for filters that define which source objects should be replicated.
|
ReplicationRule |
withStatus(ReplicationRuleStatus status)
Sets the status of this replication rule.
|
ReplicationRule |
withStatus(String status)
Sets the status of this replication rule.
|
public String getPrefix()
public void setPrefix(String prefix)
IllegalArgumentException
- if the prefix is null.public ReplicationRule withPrefix(String prefix)
ReplicationRule
object.IllegalArgumentException
- if the prefix is null.public String getStatus()
public void setStatus(String status)
status
- the status of the replication rule.public ReplicationRule withStatus(String status)
status
- the status of replication rule.ReplicationRule
object.public void setStatus(ReplicationRuleStatus status)
status
- the status of the replication rule.public ReplicationRule withStatus(ReplicationRuleStatus status)
status
- the status of replication rule.ReplicationRule
object.public ReplicationDestinationConfig getDestinationConfig()
public void setDestinationConfig(ReplicationDestinationConfig destinationConfig)
IllegalArgumentException
- if the destinationConfig is null.public ReplicationRule withDestinationConfig(ReplicationDestinationConfig destinationConfig)
ReplicationRule
object.IllegalArgumentException
- if the destinationConfig is null.public SourceSelectionCriteria getSourceSelectionCriteria()
public void setSourceSelectionCriteria(SourceSelectionCriteria sourceSelectionCriteria)
sourceSelectionCriteria
- New source selection criteriapublic ReplicationRule withSourceSelectionCriteria(SourceSelectionCriteria sourceSelectionCriteria)
sourceSelectionCriteria
- New source selection criteriaCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.