@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FollowUpPrompt extends Object implements Serializable, Cloneable, StructuredPojo
After an intent is fulfilled, you might prompt the user for additional activity. For example, after the
OrderPizza intent is fulfilled (the pizza order is placed with a pizzeria), you might prompt the user to
find out whether the user wants to order drinks (another intent you defined in your bot).
| Constructor and Description |
|---|
FollowUpPrompt() |
| Modifier and Type | Method and Description |
|---|---|
FollowUpPrompt |
clone() |
boolean |
equals(Object obj) |
Prompt |
getPrompt()
Obtains information from the user.
|
Statement |
getRejectionStatement()
If the user answers "no" to the question defined in
confirmationPrompt, Amazon Lex responds with
this statement to acknowledge that the intent was canceled. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setPrompt(Prompt prompt)
Obtains information from the user.
|
void |
setRejectionStatement(Statement rejectionStatement)
If the user answers "no" to the question defined in
confirmationPrompt, Amazon Lex responds with
this statement to acknowledge that the intent was canceled. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
FollowUpPrompt |
withPrompt(Prompt prompt)
Obtains information from the user.
|
FollowUpPrompt |
withRejectionStatement(Statement rejectionStatement)
If the user answers "no" to the question defined in
confirmationPrompt, Amazon Lex responds with
this statement to acknowledge that the intent was canceled. |
public void setPrompt(Prompt prompt)
Obtains information from the user.
prompt - Obtains information from the user.public Prompt getPrompt()
Obtains information from the user.
public FollowUpPrompt withPrompt(Prompt prompt)
Obtains information from the user.
prompt - Obtains information from the user.public void setRejectionStatement(Statement rejectionStatement)
If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with
this statement to acknowledge that the intent was canceled.
rejectionStatement - If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds
with this statement to acknowledge that the intent was canceled.public Statement getRejectionStatement()
If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with
this statement to acknowledge that the intent was canceled.
confirmationPrompt, Amazon Lex responds
with this statement to acknowledge that the intent was canceled.public FollowUpPrompt withRejectionStatement(Statement rejectionStatement)
If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with
this statement to acknowledge that the intent was canceled.
rejectionStatement - If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds
with this statement to acknowledge that the intent was canceled.public String toString()
toString in class ObjectObject.toString()public FollowUpPrompt clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2017. All rights reserved.