Class SuppressedDestination

    • Method Detail

      • emailAddress

        public final String emailAddress()

        The email address that is on the suppression list for your account.

        Returns:
        The email address that is on the suppression list for your account.
      • reasonAsString

        public final String reasonAsString()

        The reason that the address was added to the suppression list for your account.

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

        Returns:
        The reason that the address was added to the suppression list for your account.
        See Also:
        SuppressionListReason
      • lastUpdateTime

        public final Instant lastUpdateTime()

        The date and time when the suppressed destination was last updated, shown in Unix time format.

        Returns:
        The date and time when the suppressed destination was last updated, shown in Unix time format.
      • attributes

        public final SuppressedDestinationAttributes attributes()

        An optional value that can contain additional information about the reasons that the address was added to the suppression list for your account.

        Returns:
        An optional value that can contain additional information about the reasons that the address was added to the suppression list for your account.
      • 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)