public class CampaignEmailMessage
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CampaignEmailMessage() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBody()
The email text body.
|
java.lang.String |
getFromAddress()
The email address used to send the email from.
|
java.lang.String |
getHtmlBody()
The email html body.
|
java.lang.String |
getTitle()
The email title (Or subject).
|
int |
hashCode() |
void |
setBody(java.lang.String body)
The email text body.
|
void |
setFromAddress(java.lang.String fromAddress)
The email address used to send the email from.
|
void |
setHtmlBody(java.lang.String htmlBody)
The email html body.
|
void |
setTitle(java.lang.String title)
The email title (Or subject).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CampaignEmailMessage |
withBody(java.lang.String body)
The email text body.
|
CampaignEmailMessage |
withFromAddress(java.lang.String fromAddress)
The email address used to send the email from.
|
CampaignEmailMessage |
withHtmlBody(java.lang.String htmlBody)
The email html body.
|
CampaignEmailMessage |
withTitle(java.lang.String title)
The email title (Or subject).
|
public java.lang.String getBody()
public void setBody(java.lang.String body)
body
- The email text body.public CampaignEmailMessage withBody(java.lang.String body)
Returns a reference to this object so that method calls can be chained together.
body
- The email text body.public java.lang.String getFromAddress()
public void setFromAddress(java.lang.String fromAddress)
fromAddress
- The email address used to send the email from.
Defaults to use FromAddress specified in the Email Channel.public CampaignEmailMessage withFromAddress(java.lang.String fromAddress)
Returns a reference to this object so that method calls can be chained together.
fromAddress
- The email address used to send the email from.
Defaults to use FromAddress specified in the Email Channel.public java.lang.String getHtmlBody()
public void setHtmlBody(java.lang.String htmlBody)
htmlBody
- The email html body.public CampaignEmailMessage withHtmlBody(java.lang.String htmlBody)
Returns a reference to this object so that method calls can be chained together.
htmlBody
- The email html body.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- The email title (Or subject).public CampaignEmailMessage withTitle(java.lang.String title)
Returns a reference to this object so that method calls can be chained together.
title
- The email title (Or subject).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.