Interface Slot.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Slot.Builder,Slot>,SdkBuilder<Slot.Builder,Slot>,SdkPojo
- Enclosing class:
- Slot
public static interface Slot.Builder extends SdkPojo, CopyableBuilder<Slot.Builder,Slot>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Slot.BuilderdefaultValueSpec(Consumer<SlotDefaultValueSpec.Builder> defaultValueSpec)A list of default values for the slot.Slot.BuilderdefaultValueSpec(SlotDefaultValueSpec defaultValueSpec)A list of default values for the slot.Slot.Builderdescription(String description)A description of the slot.Slot.Buildername(String name)The name of the slot.Slot.BuilderobfuscationSetting(String obfuscationSetting)Determines whether a slot is obfuscated in conversation logs and stored utterances.Slot.BuilderobfuscationSetting(ObfuscationSetting obfuscationSetting)Determines whether a slot is obfuscated in conversation logs and stored utterances.Slot.Builderpriority(Integer priority)Directs Amazon Lex the order in which to elicit this slot value from the user.Slot.BuilderresponseCard(String responseCard)A set of possible responses for the slot type used by text-based clients.Slot.BuildersampleUtterances(String... sampleUtterances)If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy.Slot.BuildersampleUtterances(Collection<String> sampleUtterances)If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy.Slot.BuilderslotConstraint(String slotConstraint)Specifies whether the slot is required or optional.Slot.BuilderslotConstraint(SlotConstraint slotConstraint)Specifies whether the slot is required or optional.Slot.BuilderslotType(String slotType)The type of the slot, either a custom slot type that you defined or one of the built-in slot types.Slot.BuilderslotTypeVersion(String slotTypeVersion)The version of the slot type.default Slot.BuildervalueElicitationPrompt(Consumer<Prompt.Builder> valueElicitationPrompt)The prompt that Amazon Lex uses to elicit the slot value from the user.Slot.BuildervalueElicitationPrompt(Prompt valueElicitationPrompt)The prompt that Amazon Lex uses to elicit the slot value from the user.-
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
Slot.Builder name(String name)
The name of the slot.
- Parameters:
name- The name of the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Slot.Builder description(String description)
A description of the slot.
- Parameters:
description- A description of the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slotConstraint
Slot.Builder slotConstraint(String slotConstraint)
Specifies whether the slot is required or optional.
- Parameters:
slotConstraint- Specifies whether the slot is required or optional.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SlotConstraint,SlotConstraint
-
slotConstraint
Slot.Builder slotConstraint(SlotConstraint slotConstraint)
Specifies whether the slot is required or optional.
- Parameters:
slotConstraint- Specifies whether the slot is required or optional.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SlotConstraint,SlotConstraint
-
slotType
Slot.Builder slotType(String slotType)
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
- Parameters:
slotType- The type of the slot, either a custom slot type that you defined or one of the built-in slot types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slotTypeVersion
Slot.Builder slotTypeVersion(String slotTypeVersion)
The version of the slot type.
- Parameters:
slotTypeVersion- The version of the slot type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueElicitationPrompt
Slot.Builder valueElicitationPrompt(Prompt valueElicitationPrompt)
The prompt that Amazon Lex uses to elicit the slot value from the user.
- Parameters:
valueElicitationPrompt- The prompt that Amazon Lex uses to elicit the slot value from the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueElicitationPrompt
default Slot.Builder valueElicitationPrompt(Consumer<Prompt.Builder> valueElicitationPrompt)
The prompt that Amazon Lex uses to elicit the slot value from the user.
This is a convenience method that creates an instance of thePrompt.Builderavoiding the need to create one manually viaPrompt.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalueElicitationPrompt(Prompt).- Parameters:
valueElicitationPrompt- a consumer that will call methods onPrompt.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
valueElicitationPrompt(Prompt)
-
priority
Slot.Builder priority(Integer priority)
Directs Amazon Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Amazon Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.
- Parameters:
priority- Directs Amazon Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Amazon Lex first elicits a value for the slot with priority 1.If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleUtterances
Slot.Builder sampleUtterances(Collection<String> sampleUtterances)
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
- Parameters:
sampleUtterances- If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleUtterances
Slot.Builder sampleUtterances(String... sampleUtterances)
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
- Parameters:
sampleUtterances- If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
responseCard
Slot.Builder responseCard(String responseCard)
A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.
- Parameters:
responseCard- A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
obfuscationSetting
Slot.Builder obfuscationSetting(String obfuscationSetting)
Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .
- Parameters:
obfuscationSetting- Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ObfuscationSetting,ObfuscationSetting
-
obfuscationSetting
Slot.Builder obfuscationSetting(ObfuscationSetting obfuscationSetting)
Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .
- Parameters:
obfuscationSetting- Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ObfuscationSetting,ObfuscationSetting
-
defaultValueSpec
Slot.Builder defaultValueSpec(SlotDefaultValueSpec defaultValueSpec)
A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
- Parameters:
defaultValueSpec- A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultValueSpec
default Slot.Builder defaultValueSpec(Consumer<SlotDefaultValueSpec.Builder> defaultValueSpec)
A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
This is a convenience method that creates an instance of theSlotDefaultValueSpec.Builderavoiding the need to create one manually viaSlotDefaultValueSpec.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefaultValueSpec(SlotDefaultValueSpec).- Parameters:
defaultValueSpec- a consumer that will call methods onSlotDefaultValueSpec.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
defaultValueSpec(SlotDefaultValueSpec)
-
-