Interface SlotSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SlotSummary.Builder,SlotSummary>,SdkBuilder<SlotSummary.Builder,SlotSummary>,SdkPojo
- Enclosing class:
- SlotSummary
public static interface SlotSummary.Builder extends SdkPojo, CopyableBuilder<SlotSummary.Builder,SlotSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SlotSummary.Builderdescription(String description)The description of the slot.SlotSummary.BuilderlastUpdatedDateTime(Instant lastUpdatedDateTime)The timestamp of the last date and time that the slot was updated.SlotSummary.BuilderslotConstraint(String slotConstraint)Whether the slot is required or optional.SlotSummary.BuilderslotConstraint(SlotConstraint slotConstraint)Whether the slot is required or optional.SlotSummary.BuilderslotId(String slotId)The unique identifier of the slot.SlotSummary.BuilderslotName(String slotName)The name given to the slot.SlotSummary.BuilderslotTypeId(String slotTypeId)The unique identifier for the slot type that defines the values for the slot.default SlotSummary.BuildervalueElicitationPromptSpecification(Consumer<PromptSpecification.Builder> valueElicitationPromptSpecification)Prompts that are sent to the user to elicit a value for the slot.SlotSummary.BuildervalueElicitationPromptSpecification(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 Detail
-
slotId
SlotSummary.Builder slotId(String 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
SlotSummary.Builder slotName(String 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
SlotSummary.Builder description(String 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
SlotSummary.Builder slotConstraint(String 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,SlotConstraint
-
slotConstraint
SlotSummary.Builder slotConstraint(SlotConstraint 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,SlotConstraint
-
slotTypeId
SlotSummary.Builder slotTypeId(String 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.Builderavoiding the need to create one manually viaPromptSpecification.builder().When the
Consumercompletes,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:
valueElicitationPromptSpecification(PromptSpecification)
-
lastUpdatedDateTime
SlotSummary.Builder lastUpdatedDateTime(Instant 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.
-
-