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.
|
ExistingObjectReplication |
getExistingObjectReplication()
Returns the status of existing object replication of current 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 status of delete marker replication of the current rule.
|
void |
setDestinationConfig(ReplicationDestinationConfig destinationConfig)
Sets the destination configuration for the replication rule.
|
void |
setExistingObjectReplication(ExistingObjectReplication existingObjectReplication)
Sets the status of existing object replication of current 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 |
withExistingObjectReplication(ExistingObjectReplication existingObjectReplication)
Fluent method to set the ExistingObjectReplication that is indicate if existing
objects are replicated in Replication configuration V2.
|
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 ExistingObjectReplication getExistingObjectReplication()
public void setExistingObjectReplication(ExistingObjectReplication existingObjectReplication)
existingObjectReplication
- Status of existing object replication.public ReplicationRule withExistingObjectReplication(ExistingObjectReplication existingObjectReplication)
existingObjectReplication
- Status of existing object replication.public 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
- ReplicationFilter
public 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
- ReplicationFilter
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 © 2020. All rights reserved.