Class Row

    • Method Detail

      • archivedMessageId

        public final String archivedMessageId()

        The unique identifier of the archived message.

        Returns:
        The unique identifier of the archived message.
      • cc

        public final String cc()

        The email addresses in the CC header.

        Returns:
        The email addresses in the CC header.
      • date

        public final String date()

        The date the email was sent.

        Returns:
        The date the email was sent.
      • from

        public final String from()

        The email address of the sender.

        Returns:
        The email address of the sender.
      • hasAttachments

        public final Boolean hasAttachments()

        A flag indicating if the email has attachments.

        Returns:
        A flag indicating if the email has attachments.
      • inReplyTo

        public final String inReplyTo()

        The email message ID this is a reply to.

        Returns:
        The email message ID this is a reply to.
      • messageId

        public final String messageId()

        The unique message ID of the email.

        Returns:
        The unique message ID of the email.
      • hasReceivedHeaders

        public final boolean hasReceivedHeaders()
        For responses, this returns true if the service returned a value for the ReceivedHeaders property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • receivedHeaders

        public final List<String> receivedHeaders()

        The received headers from the email delivery path.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasReceivedHeaders() method.

        Returns:
        The received headers from the email delivery path.
      • receivedTimestamp

        public final Instant receivedTimestamp()

        The timestamp of when the email was received.

        Returns:
        The timestamp of when the email was received.
      • subject

        public final String subject()

        The subject header value of the email.

        Returns:
        The subject header value of the email.
      • to

        public final String to()

        The email addresses in the To header.

        Returns:
        The email addresses in the To header.
      • xMailer

        public final String xMailer()

        The user agent that sent the email.

        Returns:
        The user agent that sent the email.
      • xOriginalMailer

        public final String xOriginalMailer()

        The original user agent that sent the email.

        Returns:
        The original user agent that sent the email.
      • xPriority

        public final String xPriority()

        The priority level of the email.

        Returns:
        The priority level of the email.
      • serializableBuilderClass

        public static Class<? extends Row.Builder> serializableBuilderClass()
      • 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)