Class BucketReplicationConfiguration

    • Constructor Detail

      • BucketReplicationConfiguration

        public BucketReplicationConfiguration()
    • Method Detail

      • getRoleARN

        public String getRoleARN()
        Returns the IAM role associated with this replication configuration.
      • setRoleARN

        public void setRoleARN​(String roleARN)
        Sets the IAM role that will be used by Amazon S3 while replication.
        Parameters:
        role - The IAM role for this configuration.
      • getRules

        public Map<String,​ReplicationRule> getRules()
        Returns the replication rules associated with this Amazon S3 bucket.
        Returns:
        the replication rules associated with this Amazon S3 bucket.
      • getRule

        public ReplicationRule getRule​(String id)
        Returns the replication rule for the given rule id.
        Parameters:
        id - the unique identifier representing a rule in the replication configuration.
        Returns:
        the replication rule for the given rule id.
      • setRules

        public void setRules​(Map<String,​ReplicationRule> rules)
        Sets the replication rules for the Amazon S3 bucket.
        Parameters:
        rules - the replication rules for the Amazon S3 bucket.
        Throws:
        IllegalArgumentException - if the rules are null.
      • removeRule

        public BucketReplicationConfiguration removeRule​(String id)
        Removes the replication rule with the given id from the replication configuration associated with Amazon S3 bucket. Returns the updated object.
        Parameters:
        id - the id of the replication rule to be removed.
        Returns:
        the updated BucketReplicationConfiguration object.