Class RetentionPeriod

    • Method Detail

      • numberOfDays

        public final Integer numberOfDays()

        The number of days that your data is kept.

        If you specified a value for this parameter, the unlimited parameter must be false.

        Returns:
        The number of days that your data is kept.

        If you specified a value for this parameter, the unlimited parameter must be false.

      • unlimited

        public final Boolean unlimited()

        If true, your data is kept indefinitely.

        If configured to true, you must not specify a value for the numberOfDays parameter.

        Returns:
        If true, your data is kept indefinitely.

        If configured to true, you must not specify a value for the numberOfDays parameter.

      • 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)