Class LifecycleRuleFilter

    • Method Detail

      • prefix

        public final String prefix()

        Prefix identifying one or more objects to which the rule applies.

        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:
        Prefix identifying one or more objects to which the rule applies.

        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 LifecycleRuleAndOperator and()

        The container for the AND condition for the lifecycle rule.

        Returns:
        The container for the AND condition for the lifecycle rule.
      • objectSizeGreaterThan

        public final Long objectSizeGreaterThan()

        Minimum object size to which the rule applies.

        Returns:
        Minimum object size to which the rule applies.
      • objectSizeLessThan

        public final Long objectSizeLessThan()

        Maximum object size to which the rule applies.

        Returns:
        Maximum object size to which the rule applies.
      • 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)