Class PITPolicyRule

    • Method Detail

      • enabled

        public final Boolean enabled()

        Whether this rule is enabled or not.

        Returns:
        Whether this rule is enabled or not.
      • interval

        public final Integer interval()

        How often, in the chosen units, a snapshot should be taken.

        Returns:
        How often, in the chosen units, a snapshot should be taken.
      • retentionDuration

        public final Integer retentionDuration()

        The duration to retain a snapshot for, in the chosen units.

        Returns:
        The duration to retain a snapshot for, in the chosen units.
      • ruleID

        public final Long ruleID()

        The ID of the rule.

        Returns:
        The ID of the rule.
      • unitsAsString

        public final String unitsAsString()

        The units used to measure the interval and retentionDuration.

        If the service returns an enum value that is not available in the current SDK version, units will return PITPolicyRuleUnits.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from unitsAsString().

        Returns:
        The units used to measure the interval and retentionDuration.
        See Also:
        PITPolicyRuleUnits
      • 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)