@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) |
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 |
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 |
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 String toString()
toString
in class Object
Object.toString()
public SimpleEmail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.