@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ShortFormatText extends Object implements Serializable, Cloneable, StructuredPojo
The text format for the title.
This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
| Constructor and Description |
|---|
ShortFormatText() |
| Modifier and Type | Method and Description |
|---|---|
ShortFormatText |
clone() |
boolean |
equals(Object obj) |
String |
getPlainText()
Plain text format.
|
String |
getRichText()
Rich text.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPlainText(String plainText)
Plain text format.
|
void |
setRichText(String richText)
Rich text.
|
String |
toString()
Returns a string representation of this object.
|
ShortFormatText |
withPlainText(String plainText)
Plain text format.
|
ShortFormatText |
withRichText(String richText)
Rich text.
|
public void setPlainText(String plainText)
Plain text format.
plainText - Plain text format.public String getPlainText()
Plain text format.
public ShortFormatText withPlainText(String plainText)
Plain text format.
plainText - Plain text format.public void setRichText(String richText)
Rich text. Examples of rich text include bold, underline, and italics.
richText - Rich text. Examples of rich text include bold, underline, and italics.public String getRichText()
Rich text. Examples of rich text include bold, underline, and italics.
public ShortFormatText withRichText(String richText)
Rich text. Examples of rich text include bold, underline, and italics.
richText - Rich text. Examples of rich text include bold, underline, and italics.public String toString()
toString in class ObjectObject.toString()public ShortFormatText clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.