public class SimpleEmail
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SimpleEmail() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
SimpleEmailPart |
getHtmlPart()
The content of the message, in HTML format.
|
SimpleEmailPart |
getSubject()
The subject of the message: A short summary of the content, which will
appear in the recipient's inbox.
|
SimpleEmailPart |
getTextPart()
The content of the message, in text format.
|
int |
hashCode() |
void |
setHtmlPart(SimpleEmailPart htmlPart)
The content of the message, in HTML format.
|
void |
setSubject(SimpleEmailPart subject)
The subject of the message: A short summary of the content, which will
appear in the recipient's inbox.
|
void |
setTextPart(SimpleEmailPart textPart)
The content of the message, in text format.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SimpleEmail |
withHtmlPart(SimpleEmailPart htmlPart)
The content of the message, in HTML format.
|
SimpleEmail |
withSubject(SimpleEmailPart subject)
The subject of the message: A short summary of the content, which will
appear in the recipient's inbox.
|
SimpleEmail |
withTextPart(SimpleEmailPart textPart)
The content of the message, in text format.
|
public SimpleEmailPart getHtmlPart()
public void setHtmlPart(SimpleEmailPart htmlPart)
htmlPart
- The content of the message, in HTML format. Use this for
email clients that can process HTML. You can include clickable
links, formatted text, and much more in an HTML message.public SimpleEmail withHtmlPart(SimpleEmailPart htmlPart)
Returns a reference to this object so that method calls can be chained together.
htmlPart
- The content of the message, in HTML format. Use this for
email clients that can process HTML. You can include clickable
links, formatted text, and much more in an HTML message.public SimpleEmailPart getSubject()
public void setSubject(SimpleEmailPart subject)
subject
- The subject of the message: A short summary of the
content, which will appear in the recipient's inbox.public SimpleEmail withSubject(SimpleEmailPart subject)
Returns a reference to this object so that method calls can be chained together.
subject
- The subject of the message: A short summary of the
content, which will appear in the recipient's inbox.public SimpleEmailPart getTextPart()
public void setTextPart(SimpleEmailPart textPart)
textPart
- The content of the message, in text format. Use this for
text-based email clients, or clients on high-latency networks
(such as mobile devices).public SimpleEmail withTextPart(SimpleEmailPart textPart)
Returns a reference to this object so that method calls can be chained together.
textPart
- The content of the message, in text format. Use this for
text-based email clients, or clients on high-latency networks
(such as mobile devices).public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.