Class ReplicationRule

java.lang.Object
com.amazonaws.services.s3.model.ReplicationRule
All Implemented Interfaces:
Serializable

public class ReplicationRule extends Object implements Serializable
Rule that specifies the replication configuration.
See Also:
  • Constructor Details

    • ReplicationRule

      public ReplicationRule()
  • Method Details

    • getPrefix

      public String getPrefix()
      Returns the prefix associated with the replication rule.
    • setPrefix

      public void setPrefix(String prefix)
      Sets the Amazon S3 Object prefix for the replication rule.
      Throws:
      IllegalArgumentException - if the prefix is null.
    • withPrefix

      public ReplicationRule withPrefix(String prefix)
      Sets the Amazon S3 Object prefix for the replication rule. Returns the updated object.
      Returns:
      the updated ReplicationRule object.
      Throws:
      IllegalArgumentException - if the prefix is null.
    • getStatus

      public String getStatus()
      Returns the status of the replication rule.
    • setStatus

      public void setStatus(String status)
      Sets the status of this replication rule. Valid values are Enabled, Disabled. The rule will be applied only if the status is Enabled.
      Parameters:
      status - the status of the replication rule.
    • withStatus

      public ReplicationRule withStatus(String status)
      Sets the status of this replication rule. Valid values are Enabled, Disabled. The rule will be applied only if the status is Enabled.
      Parameters:
      status - the status of replication rule.
      Returns:
      the updated ReplicationRule object.
    • setStatus

      public void setStatus(ReplicationRuleStatus status)
      Sets the status of this replication rule. Valid values are Enabled, Disabled. The rule will be applied only if the status is Enabled.
      Parameters:
      status - the status of the replication rule.
    • withStatus

      public ReplicationRule withStatus(ReplicationRuleStatus status)
      Sets the status of this replication rule. Valid values are Enabled, Disabled. The rule will be applied only if the status is Enabled.
      Parameters:
      status - the status of replication rule.
      Returns:
      the updated ReplicationRule object.
    • getDestinationConfig

      public ReplicationDestinationConfig getDestinationConfig()
      Returns the destination configuration for the replication rule.
    • setDestinationConfig

      public void setDestinationConfig(ReplicationDestinationConfig destinationConfig)
      Sets the destination configuration for the replication rule.
      Throws:
      IllegalArgumentException - if the destinationConfig is null.
    • withDestinationConfig

      public ReplicationRule withDestinationConfig(ReplicationDestinationConfig destinationConfig)
      Sets the destination configuration for the replication rule.Returns the updated object.
      Returns:
      the updated ReplicationRule object.
      Throws:
      IllegalArgumentException - if the destinationConfig is null.
    • toString

      public String toString()
      Overrides:
      toString in class Object