Class RecordExpiration

    • Method Detail

      • expiration

        public final ExpirationState expiration()

        Specifies whether journal table record expiration is enabled or disabled.

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

        Returns:
        Specifies whether journal table record expiration is enabled or disabled.
        See Also:
        ExpirationState
      • expirationAsString

        public final String expirationAsString()

        Specifies whether journal table record expiration is enabled or disabled.

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

        Returns:
        Specifies whether journal table record expiration is enabled or disabled.
        See Also:
        ExpirationState
      • days

        public final Integer days()

        If you enable journal table record expiration, you can set the number of days to retain your journal table records. Journal table records must be retained for a minimum of 7 days. To set this value, specify any whole number from 7 to 2147483647. For example, to retain your journal table records for one year, set this value to 365.

        Returns:
        If you enable journal table record expiration, you can set the number of days to retain your journal table records. Journal table records must be retained for a minimum of 7 days. To set this value, specify any whole number from 7 to 2147483647. For example, to retain your journal table records for one year, set this value to 365.
      • 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)