Class Content
java.lang.Object
com.amazonaws.services.simpleemail.model.Content
- All Implemented Interfaces:
Serializable, Cloneable
Represents textual data, plus an optional character set specification.
By default, the text must be 7-bit ASCII, due to the constraints of the SMTP protocol. If the text must contain any other characters, then you must also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe character set of the content.getData()The textual data of the content.inthashCode()voidsetCharset(String charset) The character set of the content.voidThe textual data of the content.toString()Returns a string representation of this object; useful for testing and debugging.withCharset(String charset) The character set of the content.The textual data of the content.
-
Constructor Details
-
Content
public Content()Default constructor for Content object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
Content
Constructs a new Content object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
data- The textual data of the content.
-
-
Method Details
-
setData
The textual data of the content.
- Parameters:
data- The textual data of the content.
-
getData
-
withData
-
setCharset
The character set of the content.
- Parameters:
charset- The character set of the content.
-
getCharset
The character set of the content.
- Returns:
- The character set of the content.
-
withCharset
-
toString
-
equals
-
hashCode
-
clone
-