Class RecencyDimension

    • Method Detail

      • duration

        public final Duration duration()

        The duration to use when determining whether an endpoint is active or inactive.

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

        Returns:
        The duration to use when determining whether an endpoint is active or inactive.
        See Also:
        Duration
      • durationAsString

        public final String durationAsString()

        The duration to use when determining whether an endpoint is active or inactive.

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

        Returns:
        The duration to use when determining whether an endpoint is active or inactive.
        See Also:
        Duration
      • recencyType

        public final RecencyType recencyType()

        The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

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

        Returns:
        The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.
        See Also:
        RecencyType
      • recencyTypeAsString

        public final String recencyTypeAsString()

        The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

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

        Returns:
        The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.
        See Also:
        RecencyType
      • 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)