@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Content extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the content of the email, and optionally a character set specification.
Constructor and Description |
---|
Content() |
Modifier and Type | Method and Description |
---|---|
Content |
clone() |
boolean |
equals(Object obj) |
String |
getCharset()
The character set for the content.
|
String |
getData()
The content of the message itself.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCharset(String charset)
The character set for the content.
|
void |
setData(String data)
The content of the message itself.
|
String |
toString()
Returns a string representation of this object.
|
Content |
withCharset(String charset)
The character set for the content.
|
Content |
withData(String data)
The content of the message itself.
|
public void setData(String data)
The content of the message itself.
data
- The content of the message itself.public String getData()
The content of the message itself.
public Content withData(String data)
The content of the message itself.
data
- The content of the message itself.public void setCharset(String charset)
The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses 7-bit
ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character
set. For example, you could specify UTF-8
, ISO-8859-1
, or Shift_JIS
.
charset
- The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses
7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a
character set. For example, you could specify UTF-8
, ISO-8859-1
, or
Shift_JIS
.public String getCharset()
The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses 7-bit
ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character
set. For example, you could specify UTF-8
, ISO-8859-1
, or Shift_JIS
.
UTF-8
, ISO-8859-1
, or
Shift_JIS
.public Content withCharset(String charset)
The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses 7-bit
ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character
set. For example, you could specify UTF-8
, ISO-8859-1
, or Shift_JIS
.
charset
- The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses
7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a
character set. For example, you could specify UTF-8
, ISO-8859-1
, or
Shift_JIS
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.