Class Row
- java.lang.Object
-
- software.amazon.awssdk.services.mailmanager.model.Row
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Row.Builder,Row>
@Generated("software.amazon.awssdk:codegen") public final class Row extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Row.Builder,Row>
A result row containing metadata for an archived email message.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRow.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringarchivedMessageId()The unique identifier of the archived message.static Row.Builderbuilder()Stringcc()The email addresses in the CC header.Stringdate()The date the email was sent.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringfrom()The email address of the sender.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)BooleanhasAttachments()A flag indicating if the email has attachments.inthashCode()booleanhasReceivedHeaders()For responses, this returns true if the service returned a value for the ReceivedHeaders property.StringinReplyTo()The email message ID this is a reply to.StringmessageId()The unique message ID of the email.List<String>receivedHeaders()The received headers from the email delivery path.InstantreceivedTimestamp()The timestamp of when the email was received.List<SdkField<?>>sdkFields()static Class<? extends Row.Builder>serializableBuilderClass()Stringsubject()The subject header value of the email.Stringto()The email addresses in the To header.Row.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringxMailer()The user agent that sent the email.StringxOriginalMailer()The original user agent that sent the email.StringxPriority()The priority level of the email.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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 theisEmpty()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.
-
toBuilder
public Row.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Row.Builder,Row>
-
builder
public static Row.Builder builder()
-
serializableBuilderClass
public static Class<? extends Row.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-