Class LifecycleRuleFilter

    • Method Detail

      • prefix

        public final String prefix()

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

        Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.

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

        Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.

      • tag

        public final Tag tag()

        This tag must exist in the object's tag set in order for the rule to apply.

        Returns:
        This tag must exist in the object's tag set in order for the rule to apply.
      • 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.
      • and

        public final LifecycleRuleAndOperator and()
        Returns the value of the And property for this object.
        Returns:
        The value of the And property for this object.
      • 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)
      • fromPrefix

        public static LifecycleRuleFilter fromPrefix​(String prefix)
        Create an instance of this class with prefix() initialized to the given value.

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

        Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.

        Parameters:
        prefix - Prefix identifying one or more objects to which the rule applies.

        Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.

      • fromTag

        public static LifecycleRuleFilter fromTag​(Tag tag)
        Create an instance of this class with tag() initialized to the given value.

        This tag must exist in the object's tag set in order for the rule to apply.

        Parameters:
        tag - This tag must exist in the object's tag set in order for the rule to apply.
      • fromTag

        public static LifecycleRuleFilter fromTag​(Consumer<Tag.Builder> tag)
        Create an instance of this class with tag() initialized to the given value.

        This tag must exist in the object's tag set in order for the rule to apply.

        Parameters:
        tag - This tag must exist in the object's tag set in order for the rule to apply.
      • fromObjectSizeGreaterThan

        public static LifecycleRuleFilter fromObjectSizeGreaterThan​(Long objectSizeGreaterThan)
        Create an instance of this class with objectSizeGreaterThan() initialized to the given value.

        Minimum object size to which the rule applies.

        Parameters:
        objectSizeGreaterThan - Minimum object size to which the rule applies.
      • fromObjectSizeLessThan

        public static LifecycleRuleFilter fromObjectSizeLessThan​(Long objectSizeLessThan)
        Create an instance of this class with objectSizeLessThan() initialized to the given value.

        Maximum object size to which the rule applies.

        Parameters:
        objectSizeLessThan - Maximum object size to which the rule applies.
      • fromAnd

        public static LifecycleRuleFilter fromAnd​(LifecycleRuleAndOperator and)
        Create an instance of this class with and() initialized to the given value. Sets the value of the And property for this object.
        Parameters:
        and - The new value for the And property for this object.