Interface Intent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Intent.Builder,Intent>,SdkBuilder<Intent.Builder,Intent>,SdkPojo
- Enclosing class:
- Intent
public static interface Intent.Builder extends SdkPojo, CopyableBuilder<Intent.Builder,Intent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Intent.BuilderconfirmationState(String confirmationState)Indicates whether the intent has beenConfirmed,Denied, orNoneif the confirmation stage has not yet been reached.Intent.BuilderconfirmationState(ConfirmationState confirmationState)Indicates whether the intent has beenConfirmed,Denied, orNoneif the confirmation stage has not yet been reached.Intent.Buildername(String name)The name of the intent.Intent.Builderslots(Map<String,Slot> slots)A map of all of the slots for the intent.Intent.Builderstate(String state)Indicates the fulfillment state for the intent.Intent.Builderstate(IntentState state)Indicates the fulfillment state for the intent.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
Intent.Builder name(String name)
The name of the intent.
- Parameters:
name- The name of the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slots
Intent.Builder slots(Map<String,Slot> slots)
A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot has not been filled, the value is null.
- Parameters:
slots- A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot has not been filled, the value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Intent.Builder state(String state)
Indicates the fulfillment state for the intent. The meanings of each value are as follows:
-
Failed– The bot failed to fulfill the intent. -
Fulfilled– The bot has completed fulfillment of the intent. -
FulfillmentInProgress– The bot is in the middle of fulfilling the intent. -
InProgress– The bot is in the middle of eliciting the slot values that are necessary to fulfill the intent. -
ReadyForFulfillment– The bot has elicited all the slot values for the intent and is ready to fulfill the intent. -
Waiting– The bot is waiting for a response from the user (limited to streaming conversations).
- Parameters:
state- Indicates the fulfillment state for the intent. The meanings of each value are as follows:-
Failed– The bot failed to fulfill the intent. -
Fulfilled– The bot has completed fulfillment of the intent. -
FulfillmentInProgress– The bot is in the middle of fulfilling the intent. -
InProgress– The bot is in the middle of eliciting the slot values that are necessary to fulfill the intent. -
ReadyForFulfillment– The bot has elicited all the slot values for the intent and is ready to fulfill the intent. -
Waiting– The bot is waiting for a response from the user (limited to streaming conversations).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IntentState,IntentState
-
-
state
Intent.Builder state(IntentState state)
Indicates the fulfillment state for the intent. The meanings of each value are as follows:
-
Failed– The bot failed to fulfill the intent. -
Fulfilled– The bot has completed fulfillment of the intent. -
FulfillmentInProgress– The bot is in the middle of fulfilling the intent. -
InProgress– The bot is in the middle of eliciting the slot values that are necessary to fulfill the intent. -
ReadyForFulfillment– The bot has elicited all the slot values for the intent and is ready to fulfill the intent. -
Waiting– The bot is waiting for a response from the user (limited to streaming conversations).
- Parameters:
state- Indicates the fulfillment state for the intent. The meanings of each value are as follows:-
Failed– The bot failed to fulfill the intent. -
Fulfilled– The bot has completed fulfillment of the intent. -
FulfillmentInProgress– The bot is in the middle of fulfilling the intent. -
InProgress– The bot is in the middle of eliciting the slot values that are necessary to fulfill the intent. -
ReadyForFulfillment– The bot has elicited all the slot values for the intent and is ready to fulfill the intent. -
Waiting– The bot is waiting for a response from the user (limited to streaming conversations).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IntentState,IntentState
-
-
confirmationState
Intent.Builder confirmationState(String confirmationState)
Indicates whether the intent has been
Confirmed,Denied, orNoneif the confirmation stage has not yet been reached.- Parameters:
confirmationState- Indicates whether the intent has beenConfirmed,Denied, orNoneif the confirmation stage has not yet been reached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConfirmationState,ConfirmationState
-
confirmationState
Intent.Builder confirmationState(ConfirmationState confirmationState)
Indicates whether the intent has been
Confirmed,Denied, orNoneif the confirmation stage has not yet been reached.- Parameters:
confirmationState- Indicates whether the intent has beenConfirmed,Denied, orNoneif the confirmation stage has not yet been reached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConfirmationState,ConfirmationState
-
-