@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Statement extends Object implements Serializable, Cloneable, StructuredPojo
A collection of messages that convey information to the user. At runtime, Amazon Lex selects the message to convey.
Constructor and Description |
---|
Statement() |
Modifier and Type | Method and Description |
---|---|
Statement |
clone() |
boolean |
equals(Object obj) |
List<Message> |
getMessages()
A collection of message objects.
|
String |
getResponseCard()
At runtime, if the client is using the PostText API, Amazon Lex includes
the response card in the response.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMessages(Collection<Message> messages)
A collection of message objects.
|
void |
setResponseCard(String responseCard)
At runtime, if the client is using the PostText API, Amazon Lex includes
the response card in the response.
|
String |
toString()
Returns a string representation of this object.
|
Statement |
withMessages(Collection<Message> messages)
A collection of message objects.
|
Statement |
withMessages(Message... messages)
A collection of message objects.
|
Statement |
withResponseCard(String responseCard)
At runtime, if the client is using the PostText API, Amazon Lex includes
the response card in the response.
|
public List<Message> getMessages()
A collection of message objects.
public void setMessages(Collection<Message> messages)
A collection of message objects.
messages
- A collection of message objects.public Statement withMessages(Message... messages)
A collection of message objects.
NOTE: This method appends the values to the existing list (if any). Use
setMessages(java.util.Collection)
or withMessages(java.util.Collection)
if you want to override
the existing values.
messages
- A collection of message objects.public Statement withMessages(Collection<Message> messages)
A collection of message objects.
messages
- A collection of message objects.public void setResponseCard(String responseCard)
At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.
responseCard
- At runtime, if the client is using the PostText API, Amazon Lex
includes the response card in the response. It substitutes all of the session attributes and slot values
for placeholders in the response card.public String getResponseCard()
At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.
public Statement withResponseCard(String responseCard)
At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.
responseCard
- At runtime, if the client is using the PostText API, Amazon Lex
includes the response card in the response. It substitutes all of the session attributes and slot values
for placeholders in the response card.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.