public class ReplicationRule
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private ReplicationDestinationConfig |
destinationConfig
Destination configuration for the replication rule.
|
private java.lang.String |
prefix
The Amazon S3 object prefix for the replication rule.
|
private java.lang.String |
status
The status of this replication rule.
|
Constructor and Description |
---|
ReplicationRule() |
Modifier and Type | Method and Description |
---|---|
ReplicationDestinationConfig |
getDestinationConfig()
Returns the destination configuration for the replication rule.
|
java.lang.String |
getPrefix()
Returns the prefix associated with the replication rule.
|
java.lang.String |
getStatus()
Returns the status of the replication rule.
|
void |
setDestinationConfig(ReplicationDestinationConfig destinationConfig)
Sets the destination configuration for the replication rule.
|
void |
setPrefix(java.lang.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(java.lang.String status)
Sets the status of this replication rule.
|
java.lang.String |
toString() |
ReplicationRule |
withDestinationConfig(ReplicationDestinationConfig destinationConfig)
Sets the destination configuration for the replication rule.Returns the
updated object.
|
ReplicationRule |
withPrefix(java.lang.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(java.lang.String status)
Sets the status of this replication rule.
|
private java.lang.String prefix
private java.lang.String status
private ReplicationDestinationConfig destinationConfig
public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
java.lang.IllegalArgumentException
- if the prefix is null.public ReplicationRule withPrefix(java.lang.String prefix)
ReplicationRule
object.java.lang.IllegalArgumentException
- if the prefix is null.public java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- the status of the replication rule.public ReplicationRule withStatus(java.lang.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)
java.lang.IllegalArgumentException
- if the destinationConfig is null.public ReplicationRule withDestinationConfig(ReplicationDestinationConfig destinationConfig)
ReplicationRule
object.java.lang.IllegalArgumentException
- if the destinationConfig is null.public java.lang.String toString()
toString
in class java.lang.Object