Class ReplicationRuleFilter

    • Method Detail

      • prefix

        public final 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.

        Returns:
        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.

      • tag

        public final S3Tag tag()
        Returns the value of the Tag property for this object.
        Returns:
        The value of the Tag property for this object.
      • and

        public final 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.

        Returns:
        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.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)