public class ReplicationRule extends Object implements Serializable
| Constructor and Description |
|---|
ReplicationRule() |
| Modifier and Type | Method and Description |
|---|---|
DeleteMarkerReplication |
getDeleteMarkerReplication()
Returns the status of delete marker replication of current rule.
|
ReplicationDestinationConfig |
getDestinationConfig()
Returns the destination configuration for the replication rule.
|
ReplicationFilter |
getFilter()
Returns a
ReplicationFilter that is used to identify objects that a CRR Rule applies to. |
String |
getPrefix()
Deprecated.
Use
ReplicationFilter instead. |
Integer |
getPriority()
Returns the priority of current rule.
|
SourceSelectionCriteria |
getSourceSelectionCriteria() |
String |
getStatus()
Returns the status of the replication rule.
|
void |
setDeleteMarkerReplication(DeleteMarkerReplication deleteMarkerReplication)
Sets the Amazon S3 Object prefix for the replication rule.
|
void |
setDestinationConfig(ReplicationDestinationConfig destinationConfig)
Sets the destination configuration for the replication rule.
|
void |
setFilter(ReplicationFilter filter)
Sets the
ReplicationFilter that is used to identify objects that a CRR Rule applies to. |
void |
setPrefix(String prefix)
Deprecated.
Use
ReplicationFilter. |
void |
setPriority(Integer priority)
Set the priority of current 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 |
withDeleteMarkerReplication(DeleteMarkerReplication deleteMarkerReplication)
Fluent method to set the DeleteMarkerReplication that is indicate if delete
markers have or don't have to be replicated in Replication configuration V2.
|
ReplicationRule |
withDestinationConfig(ReplicationDestinationConfig destinationConfig)
Sets the destination configuration for the replication rule.Returns the
updated object.
|
ReplicationRule |
withFilter(ReplicationFilter filter)
Fluent method to set the
ReplicationFilter that is used to identify objects
that a CRR Rule applies to. |
ReplicationRule |
withPrefix(String prefix)
Deprecated.
Use
ReplicationFilter. |
ReplicationRule |
withPriority(Integer priority)
Fluent method to set the priority of current 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 Integer getPriority()
public void setPriority(Integer priority)
priority - intpublic ReplicationRule withPriority(Integer priority)
priority - intpublic DeleteMarkerReplication getDeleteMarkerReplication()
public void setDeleteMarkerReplication(DeleteMarkerReplication deleteMarkerReplication)
deleteMarkerReplication - Status of delete markers replication.public ReplicationRule withDeleteMarkerReplication(DeleteMarkerReplication deleteMarkerReplication)
deleteMarkerReplication - Status of delete markers replication.@Deprecated public String getPrefix()
ReplicationFilter instead.@Deprecated public void setPrefix(String prefix)
ReplicationFilter.IllegalArgumentException - if the prefix is null.@Deprecated public ReplicationRule withPrefix(String prefix)
ReplicationFilter.ReplicationRule object.IllegalArgumentException - if the prefix is null.public ReplicationFilter getFilter()
ReplicationFilter that is used to identify objects that a CRR Rule applies to.public void setFilter(ReplicationFilter filter)
ReplicationFilter that is used to identify objects that a CRR Rule applies to.
A rule cannot have both ReplicationFilter and the deprecated prefix.filter - ReplicationFilterpublic ReplicationRule withFilter(ReplicationFilter filter)
ReplicationFilter that is used to identify objects
that a CRR Rule applies to. A rule cannot have both ReplicationFilter
and the deprecated prefix.filter - ReplicationFilterpublic 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.