public static interface CreateSlotTypeRequest.Builder extends LexModelsV2Request.Builder, SdkPojo, CopyableBuilder<CreateSlotTypeRequest.Builder,CreateSlotTypeRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateSlotTypeRequest.Builder |
botId(String botId)
The identifier of the bot associated with this slot type.
|
CreateSlotTypeRequest.Builder |
botVersion(String botVersion)
The identifier of the bot version associated with this slot type.
|
CreateSlotTypeRequest.Builder |
description(String description)
A description of the slot type.
|
default CreateSlotTypeRequest.Builder |
externalSourceSetting(Consumer<ExternalSourceSetting.Builder> externalSourceSetting)
Sets the type of external information used to create the slot type.
|
CreateSlotTypeRequest.Builder |
externalSourceSetting(ExternalSourceSetting externalSourceSetting)
Sets the type of external information used to create the slot type.
|
CreateSlotTypeRequest.Builder |
localeId(String localeId)
The identifier of the language and locale that the slot type will be used in.
|
CreateSlotTypeRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateSlotTypeRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateSlotTypeRequest.Builder |
parentSlotTypeSignature(String parentSlotTypeSignature)
The built-in slot type used as a parent of this slot type.
|
CreateSlotTypeRequest.Builder |
slotTypeName(String slotTypeName)
The name for the slot.
|
CreateSlotTypeRequest.Builder |
slotTypeValues(Collection<SlotTypeValue> slotTypeValues)
A list of
SlotTypeValue objects that defines the values that the slot type can take. |
CreateSlotTypeRequest.Builder |
slotTypeValues(Consumer<SlotTypeValue.Builder>... slotTypeValues)
A list of
SlotTypeValue objects that defines the values that the slot type can take. |
CreateSlotTypeRequest.Builder |
slotTypeValues(SlotTypeValue... slotTypeValues)
A list of
SlotTypeValue objects that defines the values that the slot type can take. |
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.
|
CreateSlotTypeRequest.Builder |
valueSelectionSetting(SlotValueSelectionSetting valueSelectionSetting)
Determines the strategy that Amazon Lex uses to select a value from the list of possible values.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateSlotTypeRequest.Builder slotTypeName(String slotTypeName)
The name for the slot. A slot type name must be unique within the account.
slotTypeName - The name for the slot. A slot type name must be unique within the account.CreateSlotTypeRequest.Builder description(String description)
A description of the slot type. Use the description to help identify the slot type in lists.
description - A description of the slot type. Use the description to help identify the slot type in lists.CreateSlotTypeRequest.Builder slotTypeValues(Collection<SlotTypeValue> slotTypeValues)
A list of SlotTypeValue objects 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.
slotTypeValues - A list of SlotTypeValue objects 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.CreateSlotTypeRequest.Builder slotTypeValues(SlotTypeValue... slotTypeValues)
A list of SlotTypeValue objects 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.
slotTypeValues - A list of SlotTypeValue objects 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.CreateSlotTypeRequest.Builder slotTypeValues(Consumer<SlotTypeValue.Builder>... slotTypeValues)
A list of SlotTypeValue objects 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.
List.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #slotTypeValues(List) .slotTypeValues - a consumer that will call methods on List.Builder #slotTypeValues(List) 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:
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot
value.
TopResolution - 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 valueSelectionSetting parameter, the default is
OriginalValue.
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:
OriginalValue - Returns the value entered by the user, if the user value is similar to
the slot value.
TopResolution - 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 valueSelectionSetting parameter, the default is
OriginalValue.
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:
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot
value.
TopResolution - 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 valueSelectionSetting parameter, the default is
OriginalValue.
SlotValueSelectionSetting.Builder avoiding the
need to create one manually via SlotValueSelectionSetting.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to valueSelectionSetting(SlotValueSelectionSetting).valueSelectionSetting - a consumer that will call methods on SlotValueSelectionSetting.BuildervalueSelectionSetting(SlotValueSelectionSetting)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.AlphaNumeric is supported.
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.AlphaNumeric is supported.
CreateSlotTypeRequest.Builder botId(String botId)
The identifier of the bot associated with this slot type.
botId - The identifier of the bot associated with this slot type.CreateSlotTypeRequest.Builder botVersion(String botVersion)
The identifier of the bot version associated with this slot type.
botVersion - The identifier of the bot version associated with this slot type.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.
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.CreateSlotTypeRequest.Builder externalSourceSetting(ExternalSourceSetting externalSourceSetting)
Sets the type of external information used to create the slot type.
externalSourceSetting - Sets the type of external information used to create the slot type.default CreateSlotTypeRequest.Builder externalSourceSetting(Consumer<ExternalSourceSetting.Builder> externalSourceSetting)
Sets the type of external information used to create the slot type.
This is a convenience that creates an instance of theExternalSourceSetting.Builder avoiding the need
to create one manually via ExternalSourceSetting.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to externalSourceSetting(ExternalSourceSetting).externalSourceSetting - a consumer that will call methods on ExternalSourceSetting.BuilderexternalSourceSetting(ExternalSourceSetting)CreateSlotTypeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateSlotTypeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.