@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SimpleEmail extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the contents of an email message, composed of a subject, a text part, and an HTML part.
Constructor and Description |
---|
SimpleEmail() |
Modifier and Type | Method and Description |
---|---|
SimpleEmail |
clone() |
boolean |
equals(Object obj) |
List<MessageHeader> |
getHeaders()
The list of MessageHeaders for the email.
|
SimpleEmailPart |
getHtmlPart()
The body of the email message, in HTML format.
|
SimpleEmailPart |
getSubject()
The subject line, or title, of the email.
|
SimpleEmailPart |
getTextPart()
The body of the email message, in plain text format.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setHeaders(Collection<MessageHeader> headers)
The list of MessageHeaders for the email.
|
void |
setHtmlPart(SimpleEmailPart htmlPart)
The body of the email message, in HTML format.
|
void |
setSubject(SimpleEmailPart subject)
The subject line, or title, of the email.
|
void |
setTextPart(SimpleEmailPart textPart)
The body of the email message, in plain text format.
|
String |
toString()
Returns a string representation of this object.
|
SimpleEmail |
withHeaders(Collection<MessageHeader> headers)
The list of MessageHeaders for the email.
|
SimpleEmail |
withHeaders(MessageHeader... headers)
The list of MessageHeaders for the email.
|
SimpleEmail |
withHtmlPart(SimpleEmailPart htmlPart)
The body of the email message, in HTML format.
|
SimpleEmail |
withSubject(SimpleEmailPart subject)
The subject line, or title, of the email.
|
SimpleEmail |
withTextPart(SimpleEmailPart textPart)
The body of the email message, in plain text format.
|
public void setHtmlPart(SimpleEmailPart htmlPart)
The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
htmlPart
- The body of the email message, in HTML format. We recommend using HTML format for email clients that
render HTML content. You can include links, formatted text, and more in an HTML message.public SimpleEmailPart getHtmlPart()
The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
public SimpleEmail withHtmlPart(SimpleEmailPart htmlPart)
The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
htmlPart
- The body of the email message, in HTML format. We recommend using HTML format for email clients that
render HTML content. You can include links, formatted text, and more in an HTML message.public void setSubject(SimpleEmailPart subject)
The subject line, or title, of the email.
subject
- The subject line, or title, of the email.public SimpleEmailPart getSubject()
The subject line, or title, of the email.
public SimpleEmail withSubject(SimpleEmailPart subject)
The subject line, or title, of the email.
subject
- The subject line, or title, of the email.public void setTextPart(SimpleEmailPart textPart)
The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
textPart
- The body of the email message, in plain text format. We recommend using plain text format for email
clients that don't render HTML content and clients that are connected to high-latency networks, such as
mobile devices.public SimpleEmailPart getTextPart()
The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
public SimpleEmail withTextPart(SimpleEmailPart textPart)
The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
textPart
- The body of the email message, in plain text format. We recommend using plain text format for email
clients that don't render HTML content and clients that are connected to high-latency networks, such as
mobile devices.public List<MessageHeader> getHeaders()
The list of MessageHeaders for the email. You can have up to 15 Headers.
public void setHeaders(Collection<MessageHeader> headers)
The list of MessageHeaders for the email. You can have up to 15 Headers.
headers
- The list of MessageHeaders for the email. You can have up to 15 Headers.public SimpleEmail withHeaders(MessageHeader... headers)
The list of MessageHeaders for the email. You can have up to 15 Headers.
NOTE: This method appends the values to the existing list (if any). Use
setHeaders(java.util.Collection)
or withHeaders(java.util.Collection)
if you want to override
the existing values.
headers
- The list of MessageHeaders for the email. You can have up to 15 Headers.public SimpleEmail withHeaders(Collection<MessageHeader> headers)
The list of MessageHeaders for the email. You can have up to 15 Headers.
headers
- The list of MessageHeaders for the email. You can have up to 15 Headers.public String toString()
toString
in class Object
Object.toString()
public SimpleEmail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2024. All rights reserved.