Class ReplicationRule

    • Constructor Detail

      • ReplicationRule

        public ReplicationRule()
    • Method Detail

      • 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.
      • 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.