Interface SlotSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SlotSummary.Builder,
,SlotSummary> SdkBuilder<SlotSummary.Builder,
,SlotSummary> SdkPojo
- Enclosing class:
SlotSummary
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The description of the slot.lastUpdatedDateTime
(Instant lastUpdatedDateTime) The timestamp of the last date and time that the slot was updated.slotConstraint
(String slotConstraint) Whether the slot is required or optional.slotConstraint
(SlotConstraint slotConstraint) Whether the slot is required or optional.The unique identifier of the slot.The name given to the slot.slotTypeId
(String slotTypeId) The unique identifier for the slot type that defines the values for the slot.default SlotSummary.Builder
valueElicitationPromptSpecification
(Consumer<PromptSpecification.Builder> valueElicitationPromptSpecification) Prompts that are sent to the user to elicit a value for the slot.valueElicitationPromptSpecification
(PromptSpecification valueElicitationPromptSpecification) Prompts that are sent to the user to elicit a value for the slot.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, sdkFields
-
Method Details
-
slotId
The unique identifier of the slot.
- Parameters:
slotId
- The unique identifier of the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slotName
The name given to the slot.
- Parameters:
slotName
- The name given to the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the slot.
- Parameters:
description
- The description of the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slotConstraint
Whether the slot is required or optional. An intent is complete when all required slots are filled.
- Parameters:
slotConstraint
- Whether the slot is required or optional. An intent is complete when all required slots are filled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
slotConstraint
Whether the slot is required or optional. An intent is complete when all required slots are filled.
- Parameters:
slotConstraint
- Whether the slot is required or optional. An intent is complete when all required slots are filled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
slotTypeId
The unique identifier for the slot type that defines the values for the slot.
- Parameters:
slotTypeId
- The unique identifier for the slot type that defines the values for the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueElicitationPromptSpecification
SlotSummary.Builder valueElicitationPromptSpecification(PromptSpecification valueElicitationPromptSpecification) Prompts that are sent to the user to elicit a value for the slot.
- Parameters:
valueElicitationPromptSpecification
- Prompts that are sent to the user to elicit a value for the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueElicitationPromptSpecification
default SlotSummary.Builder valueElicitationPromptSpecification(Consumer<PromptSpecification.Builder> valueElicitationPromptSpecification) Prompts that are sent to the user to elicit a value for the slot.
This is a convenience method that creates an instance of thePromptSpecification.Builder
avoiding the need to create one manually viaPromptSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovalueElicitationPromptSpecification(PromptSpecification)
.- Parameters:
valueElicitationPromptSpecification
- a consumer that will call methods onPromptSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastUpdatedDateTime
The timestamp of the last date and time that the slot was updated.
- Parameters:
lastUpdatedDateTime
- The timestamp of the last date and time that the slot was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-