Class EmailContact

    • Method Detail

      • arn

        public final String arn()

        The Amazon Resource Name (ARN) of the email contact.

        Returns:
        The Amazon Resource Name (ARN) of the email contact.
      • name

        public final String name()

        The name of the email contact.

        Returns:
        The name of the email contact.
      • address

        public final String address()

        The email address this email contact points to. The activation email and any subscribed emails are sent here.

        Returns:
        The email address this email contact points to. The activation email and any subscribed emails are sent here.
      • status

        public final EmailContactStatus status()

        The status of the email contact. Only activated email contacts receive emails.

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

        Returns:
        The status of the email contact. Only activated email contacts receive emails.
        See Also:
        EmailContactStatus
      • statusAsString

        public final String statusAsString()

        The status of the email contact. Only activated email contacts receive emails.

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

        Returns:
        The status of the email contact. Only activated email contacts receive emails.
        See Also:
        EmailContactStatus
      • creationTime

        public final Instant creationTime()

        The creation time of the resource.

        Returns:
        The creation time of the resource.
      • updateTime

        public final Instant updateTime()

        The time the resource was last updated.

        Returns:
        The time the resource was last updated.
      • 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)