StructuredPojo
, ToCopyableBuilder<FollowUpPrompt.Builder,FollowUpPrompt>
@Generated("software.amazon.awssdk:codegen") public class FollowUpPrompt extends Object implements StructuredPojo, ToCopyableBuilder<FollowUpPrompt.Builder,FollowUpPrompt>
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).
Modifier and Type | Class | Description |
---|---|---|
static interface |
FollowUpPrompt.Builder |
Modifier and Type | Method | Description |
---|---|---|
static FollowUpPrompt.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
Prompt |
prompt() |
Obtains information from the user.
|
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. |
static Class<? extends FollowUpPrompt.Builder> |
serializableBuilderClass() |
|
FollowUpPrompt.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
public Prompt prompt()
Obtains information from the user.
public 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.
confirmationPrompt
, Amazon Lex responds
with this statement to acknowledge that the intent was canceled.public FollowUpPrompt.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<FollowUpPrompt.Builder,FollowUpPrompt>
public static FollowUpPrompt.Builder builder()
public static Class<? extends FollowUpPrompt.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.