@Generated(value="software.amazon.awssdk:codegen") public final class EmailMessage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EmailMessage.Builder,EmailMessage>
Specifies the default settings and content for a one-time email message that's sent directly to an endpoint.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EmailMessage.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
body()
The body of the email message.
|
static EmailMessage.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
feedbackForwardingAddress()
The email address to forward bounces and complaints to, if feedback forwarding is enabled.
|
String |
fromAddress()
The verified email address to send the email message from.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasReplyToAddresses()
Returns true if the ReplyToAddresses property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasSubstitutions()
Returns true if the Substitutions property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
RawEmail |
rawEmail()
The email message, represented as a raw MIME message.
|
List<String> |
replyToAddresses()
The reply-to email address(es) for the email message.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EmailMessage.Builder> |
serializableBuilderClass() |
SimpleEmail |
simpleEmail()
The email message, composed of a subject, a text part, and an HTML part.
|
Map<String,List<String>> |
substitutions()
The default message variables to use in the email message.
|
EmailMessage.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String body()
The body of the email message.
public String feedbackForwardingAddress()
The email address to forward bounces and complaints to, if feedback forwarding is enabled.
public String fromAddress()
The verified email address to send the email message from. The default value is the FromAddress specified for the email channel.
public RawEmail rawEmail()
The email message, represented as a raw MIME message.
public boolean hasReplyToAddresses()
public List<String> replyToAddresses()
The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasReplyToAddresses() to see if a value was sent in this field.
public SimpleEmail simpleEmail()
The email message, composed of a subject, a text part, and an HTML part.
public boolean hasSubstitutions()
public Map<String,List<String>> substitutions()
The default message variables to use in the email message. You can override the default variables with individual address variables.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSubstitutions() to see if a value was sent in this field.
public EmailMessage.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EmailMessage.Builder,EmailMessage>public static EmailMessage.Builder builder()
public static Class<? extends EmailMessage.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.