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()
Returns the prefix associated with the replication rule.
|
Integer |
getPriority()
Returns the priority of current rule.
|
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 |
setFilter(ReplicationFilter filter)
Sets the
ReplicationFilter that is used to identify objects that a CRR Rule applies to. |
void |
setPrefix(String prefix)
Sets the Amazon S3 Object prefix for the replication rule.
|
void |
setPriority(Integer priority)
Set the priority of current 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()
Fluent method to set the ExistingObjectReplication that is indicate if existing
objects are replicated in Replication configuration V2.
|
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)
Sets the Amazon S3 Object prefix for the replication rule.
|
ReplicationRule |
withPriority(Integer priority)
Set the priority of current rule.
|
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()
The priority indicates which rule has precedence whenever two or more replication rules conflict. Amazon S3 will attempt to replicate objects according to all replication rules. However, if there are two or more rules with the same destination bucket, then objects will be replicated according to the rule with the highest priority. The higher the number, the higher the priority.
For more information, see Replication in the Amazon Simple Storage Service Developer Guide.
For more information, see Replication in the Amazon Simple Storage Service Developer Guide.
public void setPriority(Integer priority)
Priority must be unique in a configuration (you cannot have two different rules with the same priority). attempt to replicate objects according to all replication rules. However, if there are two or more rules with the same destination bucket, then objects will be replicated according to the rule with the highest priority. The higher the number, the higher the priority.
For more information, see Replication in the Amazon Simple Storage Service Developer Guide.priority
- intpublic ReplicationRule withPriority(Integer priority)
Priority must be unique in a configuration (you cannot have two different rules with the same priority). attempt to replicate objects according to all replication rules. However, if there are two or more rules with the same destination bucket, then objects will be replicated according to the rule with the highest priority. The higher the number, the higher the priority.
For more information, see Replication in the Amazon Simple Storage Service Developer Guide.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.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 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 ReplicationRule.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 ReplicationRule.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 String toString()
Copyright © 2024. All rights reserved.