@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 text format.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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 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 text format.
|
public void setHtmlPart(SimpleEmailPart htmlPart)
The body of the email message, in HTML format. We recommend using an HTML part for email clients that support HTML. 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 an HTML part for email clients that
support HTML. 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 an HTML part for email clients that support HTML. 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 an HTML part for email clients that support HTML. 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 an HTML part for email clients that
support HTML. 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 text format. We recommend using a text part for email clients that don't support HTML and clients that are connected to high-latency networks, such as mobile devices.
textPart
- The body of the email message, in text format. We recommend using a text part for email clients that don't
support HTML and clients that are connected to high-latency networks, such as mobile devices.public SimpleEmailPart getTextPart()
The body of the email message, in text format. We recommend using a text part for email clients that don't support HTML 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 text format. We recommend using a text part for email clients that don't support HTML and clients that are connected to high-latency networks, such as mobile devices.
textPart
- The body of the email message, in text format. We recommend using a text part for email clients that don't
support HTML 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)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.