Interface CreateSlotTypeRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateSlotTypeRequest.Builder,CreateSlotTypeRequest>,LexModelsV2Request.Builder,SdkBuilder<CreateSlotTypeRequest.Builder,CreateSlotTypeRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateSlotTypeRequest
public static interface CreateSlotTypeRequest.Builder extends LexModelsV2Request.Builder, SdkPojo, CopyableBuilder<CreateSlotTypeRequest.Builder,CreateSlotTypeRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateSlotTypeRequest.BuilderbotId(String botId)The identifier of the bot associated with this slot type.CreateSlotTypeRequest.BuilderbotVersion(String botVersion)The identifier of the bot version associated with this slot type.default CreateSlotTypeRequest.BuildercompositeSlotTypeSetting(Consumer<CompositeSlotTypeSetting.Builder> compositeSlotTypeSetting)Specifications for a composite slot type.CreateSlotTypeRequest.BuildercompositeSlotTypeSetting(CompositeSlotTypeSetting compositeSlotTypeSetting)Specifications for a composite slot type.CreateSlotTypeRequest.Builderdescription(String description)A description of the slot type.default CreateSlotTypeRequest.BuilderexternalSourceSetting(Consumer<ExternalSourceSetting.Builder> externalSourceSetting)Sets the type of external information used to create the slot type.CreateSlotTypeRequest.BuilderexternalSourceSetting(ExternalSourceSetting externalSourceSetting)Sets the type of external information used to create the slot type.CreateSlotTypeRequest.BuilderlocaleId(String localeId)The identifier of the language and locale that the slot type will be used in.CreateSlotTypeRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateSlotTypeRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateSlotTypeRequest.BuilderparentSlotTypeSignature(String parentSlotTypeSignature)The built-in slot type used as a parent of this slot type.CreateSlotTypeRequest.BuilderslotTypeName(String slotTypeName)The name for the slot.CreateSlotTypeRequest.BuilderslotTypeValues(Collection<SlotTypeValue> slotTypeValues)A list ofSlotTypeValueobjects that defines the values that the slot type can take.CreateSlotTypeRequest.BuilderslotTypeValues(Consumer<SlotTypeValue.Builder>... slotTypeValues)A list ofSlotTypeValueobjects that defines the values that the slot type can take.CreateSlotTypeRequest.BuilderslotTypeValues(SlotTypeValue... slotTypeValues)A list ofSlotTypeValueobjects that defines the values that the slot type can take.default CreateSlotTypeRequest.BuildervalueSelectionSetting(Consumer<SlotValueSelectionSetting.Builder> valueSelectionSetting)Determines the strategy that Amazon Lex uses to select a value from the list of possible values.CreateSlotTypeRequest.BuildervalueSelectionSetting(SlotValueSelectionSetting valueSelectionSetting)Determines the strategy that Amazon Lex uses to select a value from the list of possible values.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Request.Builder
build
-
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
-
slotTypeName
CreateSlotTypeRequest.Builder slotTypeName(String slotTypeName)
The name for the slot. A slot type name must be unique within the intent.
- Parameters:
slotTypeName- The name for the slot. A slot type name must be unique within the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateSlotTypeRequest.Builder description(String description)
A description of the slot type. Use the description to help identify the slot type in lists.
- Parameters:
description- A description of the slot type. Use the description to help identify the slot type in lists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slotTypeValues
CreateSlotTypeRequest.Builder slotTypeValues(Collection<SlotTypeValue> slotTypeValues)
A list of
SlotTypeValueobjects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.- Parameters:
slotTypeValues- A list ofSlotTypeValueobjects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slotTypeValues
CreateSlotTypeRequest.Builder slotTypeValues(SlotTypeValue... slotTypeValues)
A list of
SlotTypeValueobjects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.- Parameters:
slotTypeValues- A list ofSlotTypeValueobjects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slotTypeValues
CreateSlotTypeRequest.Builder slotTypeValues(Consumer<SlotTypeValue.Builder>... slotTypeValues)
A list of
This is a convenience method that creates an instance of theSlotTypeValueobjects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot.SlotTypeValue.Builderavoiding the need to create one manually viaSlotTypeValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#slotTypeValues(List.) - Parameters:
slotTypeValues- a consumer that will call methods onSlotTypeValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#slotTypeValues(java.util.Collection)
-
valueSelectionSetting
CreateSlotTypeRequest.Builder valueSelectionSetting(SlotValueSelectionSetting valueSelectionSetting)
Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
-
ORIGINAL_VALUE- Returns the value entered by the user, if the user value is similar to the slot value. -
TOP_RESOLUTION- If there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null.
If you don't specify the
valueSelectionSettingparameter, the default isORIGINAL_VALUE.- Parameters:
valueSelectionSetting- Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:-
ORIGINAL_VALUE- Returns the value entered by the user, if the user value is similar to the slot value. -
TOP_RESOLUTION- If there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null.
If you don't specify the
valueSelectionSettingparameter, the default isORIGINAL_VALUE.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
valueSelectionSetting
default CreateSlotTypeRequest.Builder valueSelectionSetting(Consumer<SlotValueSelectionSetting.Builder> valueSelectionSetting)
Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
-
ORIGINAL_VALUE- Returns the value entered by the user, if the user value is similar to the slot value. -
TOP_RESOLUTION- If there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null.
If you don't specify the
This is a convenience method that creates an instance of thevalueSelectionSettingparameter, the default isORIGINAL_VALUE.SlotValueSelectionSetting.Builderavoiding the need to create one manually viaSlotValueSelectionSetting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalueSelectionSetting(SlotValueSelectionSetting).- Parameters:
valueSelectionSetting- a consumer that will call methods onSlotValueSelectionSetting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
valueSelectionSetting(SlotValueSelectionSetting)
-
-
parentSlotTypeSignature
CreateSlotTypeRequest.Builder parentSlotTypeSignature(String parentSlotTypeSignature)
The built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type.
Only
AMAZON.AlphaNumericis supported.- Parameters:
parentSlotTypeSignature- The built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type.Only
AMAZON.AlphaNumericis supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
botId
CreateSlotTypeRequest.Builder botId(String botId)
The identifier of the bot associated with this slot type.
- Parameters:
botId- The identifier of the bot associated with this slot type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
botVersion
CreateSlotTypeRequest.Builder botVersion(String botVersion)
The identifier of the bot version associated with this slot type.
- Parameters:
botVersion- The identifier of the bot version associated with this slot type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localeId
CreateSlotTypeRequest.Builder localeId(String localeId)
The identifier of the language and locale that the slot type will be used in. The string must match one of the supported locales. All of the bots, intents, and slots used by the slot type must have the same locale. For more information, see Supported languages.
- Parameters:
localeId- The identifier of the language and locale that the slot type will be used in. The string must match one of the supported locales. All of the bots, intents, and slots used by the slot type must have the same locale. For more information, see Supported languages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalSourceSetting
CreateSlotTypeRequest.Builder externalSourceSetting(ExternalSourceSetting externalSourceSetting)
Sets the type of external information used to create the slot type.
- Parameters:
externalSourceSetting- Sets the type of external information used to create the slot type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalSourceSetting
default CreateSlotTypeRequest.Builder externalSourceSetting(Consumer<ExternalSourceSetting.Builder> externalSourceSetting)
Sets the type of external information used to create the slot type.
This is a convenience method that creates an instance of theExternalSourceSetting.Builderavoiding the need to create one manually viaExternalSourceSetting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexternalSourceSetting(ExternalSourceSetting).- Parameters:
externalSourceSetting- a consumer that will call methods onExternalSourceSetting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
externalSourceSetting(ExternalSourceSetting)
-
compositeSlotTypeSetting
CreateSlotTypeRequest.Builder compositeSlotTypeSetting(CompositeSlotTypeSetting compositeSlotTypeSetting)
Specifications for a composite slot type.
- Parameters:
compositeSlotTypeSetting- Specifications for a composite slot type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compositeSlotTypeSetting
default CreateSlotTypeRequest.Builder compositeSlotTypeSetting(Consumer<CompositeSlotTypeSetting.Builder> compositeSlotTypeSetting)
Specifications for a composite slot type.
This is a convenience method that creates an instance of theCompositeSlotTypeSetting.Builderavoiding the need to create one manually viaCompositeSlotTypeSetting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocompositeSlotTypeSetting(CompositeSlotTypeSetting).- Parameters:
compositeSlotTypeSetting- a consumer that will call methods onCompositeSlotTypeSetting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
compositeSlotTypeSetting(CompositeSlotTypeSetting)
-
overrideConfiguration
CreateSlotTypeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateSlotTypeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-