@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Content extends Object implements Serializable, Cloneable, StructuredPojo
The content definition. This can contain only one text, SSML, or audio list object.
Constructor and Description |
---|
Content() |
Modifier and Type | Method and Description |
---|---|
Content |
clone() |
boolean |
equals(Object obj) |
List<Audio> |
getAudioList()
The list of audio messages.
|
List<Ssml> |
getSsmlList()
The list of SSML messages.
|
List<Text> |
getTextList()
The list of text messages.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAudioList(Collection<Audio> audioList)
The list of audio messages.
|
void |
setSsmlList(Collection<Ssml> ssmlList)
The list of SSML messages.
|
void |
setTextList(Collection<Text> textList)
The list of text messages.
|
String |
toString()
Returns a string representation of this object.
|
Content |
withAudioList(Audio... audioList)
The list of audio messages.
|
Content |
withAudioList(Collection<Audio> audioList)
The list of audio messages.
|
Content |
withSsmlList(Collection<Ssml> ssmlList)
The list of SSML messages.
|
Content |
withSsmlList(Ssml... ssmlList)
The list of SSML messages.
|
Content |
withTextList(Collection<Text> textList)
The list of text messages.
|
Content |
withTextList(Text... textList)
The list of text messages.
|
public List<Text> getTextList()
The list of text messages.
public void setTextList(Collection<Text> textList)
The list of text messages.
textList
- The list of text messages.public Content withTextList(Text... textList)
The list of text messages.
NOTE: This method appends the values to the existing list (if any). Use
setTextList(java.util.Collection)
or withTextList(java.util.Collection)
if you want to override
the existing values.
textList
- The list of text messages.public Content withTextList(Collection<Text> textList)
The list of text messages.
textList
- The list of text messages.public List<Ssml> getSsmlList()
The list of SSML messages.
public void setSsmlList(Collection<Ssml> ssmlList)
The list of SSML messages.
ssmlList
- The list of SSML messages.public Content withSsmlList(Ssml... ssmlList)
The list of SSML messages.
NOTE: This method appends the values to the existing list (if any). Use
setSsmlList(java.util.Collection)
or withSsmlList(java.util.Collection)
if you want to override
the existing values.
ssmlList
- The list of SSML messages.public Content withSsmlList(Collection<Ssml> ssmlList)
The list of SSML messages.
ssmlList
- The list of SSML messages.public List<Audio> getAudioList()
The list of audio messages.
public void setAudioList(Collection<Audio> audioList)
The list of audio messages.
audioList
- The list of audio messages.public Content withAudioList(Audio... audioList)
The list of audio messages.
NOTE: This method appends the values to the existing list (if any). Use
setAudioList(java.util.Collection)
or withAudioList(java.util.Collection)
if you want to
override the existing values.
audioList
- The list of audio messages.public Content withAudioList(Collection<Audio> audioList)
The list of audio messages.
audioList
- The list of audio messages.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.