Class CfnBot.SlotTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.SlotTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.SlotTypeProperty>
- Enclosing interface:
CfnBot.SlotTypeProperty
@Stability(Stable)
public static final class CfnBot.SlotTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.SlotTypeProperty>
A builder for
CfnBot.SlotTypeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnBot.SlotTypeProperty.getDescription()
externalSourceSetting
(IResolvable externalSourceSetting) Sets the value ofCfnBot.SlotTypeProperty.getExternalSourceSetting()
externalSourceSetting
(CfnBot.ExternalSourceSettingProperty externalSourceSetting) Sets the value ofCfnBot.SlotTypeProperty.getExternalSourceSetting()
Sets the value ofCfnBot.SlotTypeProperty.getName()
parentSlotTypeSignature
(String parentSlotTypeSignature) Sets the value ofCfnBot.SlotTypeProperty.getParentSlotTypeSignature()
slotTypeValues
(List<? extends Object> slotTypeValues) Sets the value ofCfnBot.SlotTypeProperty.getSlotTypeValues()
slotTypeValues
(IResolvable slotTypeValues) Sets the value ofCfnBot.SlotTypeProperty.getSlotTypeValues()
valueSelectionSetting
(IResolvable valueSelectionSetting) Sets the value ofCfnBot.SlotTypeProperty.getValueSelectionSetting()
valueSelectionSetting
(CfnBot.SlotValueSelectionSettingProperty valueSelectionSetting) Sets the value ofCfnBot.SlotTypeProperty.getValueSelectionSetting()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnBot.SlotTypeProperty.getName()
- Parameters:
name
- The name of the slot type. This parameter is required. A slot type name must be unique withing the account.- Returns:
this
-
description
Sets the value ofCfnBot.SlotTypeProperty.getDescription()
- Parameters:
description
- A description of the slot type. Use the description to help identify the slot type in lists.- Returns:
this
-
externalSourceSetting
@Stability(Stable) public CfnBot.SlotTypeProperty.Builder externalSourceSetting(IResolvable externalSourceSetting) Sets the value ofCfnBot.SlotTypeProperty.getExternalSourceSetting()
- Parameters:
externalSourceSetting
- Sets the type of external information used to create the slot type.- Returns:
this
-
externalSourceSetting
@Stability(Stable) public CfnBot.SlotTypeProperty.Builder externalSourceSetting(CfnBot.ExternalSourceSettingProperty externalSourceSetting) Sets the value ofCfnBot.SlotTypeProperty.getExternalSourceSetting()
- Parameters:
externalSourceSetting
- Sets the type of external information used to create the slot type.- Returns:
this
-
parentSlotTypeSignature
@Stability(Stable) public CfnBot.SlotTypeProperty.Builder parentSlotTypeSignature(String parentSlotTypeSignature) Sets the value ofCfnBot.SlotTypeProperty.getParentSlotTypeSignature()
- 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 lot type.Only
AMAZON.AlphaNumeric
is supported.- Returns:
this
-
slotTypeValues
@Stability(Stable) public CfnBot.SlotTypeProperty.Builder slotTypeValues(IResolvable slotTypeValues) Sets the value ofCfnBot.SlotTypeProperty.getSlotTypeValues()
- Parameters:
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 the slot.- Returns:
this
-
slotTypeValues
@Stability(Stable) public CfnBot.SlotTypeProperty.Builder slotTypeValues(List<? extends Object> slotTypeValues) Sets the value ofCfnBot.SlotTypeProperty.getSlotTypeValues()
- Parameters:
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 the slot.- Returns:
this
-
valueSelectionSetting
@Stability(Stable) public CfnBot.SlotTypeProperty.Builder valueSelectionSetting(IResolvable valueSelectionSetting) Sets the value ofCfnBot.SlotTypeProperty.getValueSelectionSetting()
- Parameters:
valueSelectionSetting
- Determines the slot resolution strategy that Amazon Lex uses to return slot type 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 as the slot type value. If there is no resolution list, null is returned.
If you don't specify the
valueSelectionStrategy
, the default isORIGINAL_VALUE
.- Returns:
this
-
valueSelectionSetting
@Stability(Stable) public CfnBot.SlotTypeProperty.Builder valueSelectionSetting(CfnBot.SlotValueSelectionSettingProperty valueSelectionSetting) Sets the value ofCfnBot.SlotTypeProperty.getValueSelectionSetting()
- Parameters:
valueSelectionSetting
- Determines the slot resolution strategy that Amazon Lex uses to return slot type 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 as the slot type value. If there is no resolution list, null is returned.
If you don't specify the
valueSelectionStrategy
, the default isORIGINAL_VALUE
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.SlotTypeProperty>
- Returns:
- a new instance of
CfnBot.SlotTypeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-