Interface ReplicationRuleFilter.Builder

    • Method Detail

      • prefix

        ReplicationRuleFilter.Builder prefix​(String prefix)

        An object key name prefix that identifies the subset of objects that the rule applies to.

        When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.

        Parameters:
        prefix - An object key name prefix that identifies the subset of objects that the rule applies to.

        When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tag

        ReplicationRuleFilter.Builder tag​(S3Tag tag)
        Sets the value of the Tag property for this object.
        Parameters:
        tag - The new value for the Tag property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • and

        ReplicationRuleFilter.Builder and​(ReplicationRuleAndOperator and)

        A container for specifying rule filters. The filters determine the subset of objects that the rule applies to. This element is required only if you specify more than one filter. For example:

        • If you specify both a Prefix and a Tag filter, wrap these filters in an And element.

        • If you specify a filter based on multiple tags, wrap the Tag elements in an And element.

        Parameters:
        and - A container for specifying rule filters. The filters determine the subset of objects that the rule applies to. This element is required only if you specify more than one filter. For example:

        • If you specify both a Prefix and a Tag filter, wrap these filters in an And element.

        • If you specify a filter based on multiple tags, wrap the Tag elements in an And element.

        Returns:
        Returns a reference to this object so that method calls can be chained together.