Class CfnBot.SlotProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.SlotProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.SlotProperty>
- Enclosing interface:
CfnBot.SlotProperty
@Stability(Stable)
public static final class CfnBot.SlotProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.SlotProperty>
A builder for
CfnBot.SlotProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnBot.SlotProperty.getDescription()
multipleValuesSetting
(IResolvable multipleValuesSetting) Sets the value ofCfnBot.SlotProperty.getMultipleValuesSetting()
multipleValuesSetting
(CfnBot.MultipleValuesSettingProperty multipleValuesSetting) Sets the value ofCfnBot.SlotProperty.getMultipleValuesSetting()
Sets the value ofCfnBot.SlotProperty.getName()
obfuscationSetting
(IResolvable obfuscationSetting) Sets the value ofCfnBot.SlotProperty.getObfuscationSetting()
obfuscationSetting
(CfnBot.ObfuscationSettingProperty obfuscationSetting) Sets the value ofCfnBot.SlotProperty.getObfuscationSetting()
slotTypeName
(String slotTypeName) Sets the value ofCfnBot.SlotProperty.getSlotTypeName()
valueElicitationSetting
(IResolvable valueElicitationSetting) Sets the value ofCfnBot.SlotProperty.getValueElicitationSetting()
valueElicitationSetting
(CfnBot.SlotValueElicitationSettingProperty valueElicitationSetting) Sets the value ofCfnBot.SlotProperty.getValueElicitationSetting()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnBot.SlotProperty.getName()
- Parameters:
name
- The name given to the slot. This parameter is required.- Returns:
this
-
slotTypeName
Sets the value ofCfnBot.SlotProperty.getSlotTypeName()
- Parameters:
slotTypeName
- The name of the slot type that this slot is based on. This parameter is required. The slot type defines the acceptable values for the slot.- Returns:
this
-
valueElicitationSetting
@Stability(Stable) public CfnBot.SlotProperty.Builder valueElicitationSetting(IResolvable valueElicitationSetting) Sets the value ofCfnBot.SlotProperty.getValueElicitationSetting()
- Parameters:
valueElicitationSetting
- Determines the slot resolution strategy that Amazon Lex uses to return slot type values. This parameter is required. 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 a 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
-
valueElicitationSetting
@Stability(Stable) public CfnBot.SlotProperty.Builder valueElicitationSetting(CfnBot.SlotValueElicitationSettingProperty valueElicitationSetting) Sets the value ofCfnBot.SlotProperty.getValueElicitationSetting()
- Parameters:
valueElicitationSetting
- Determines the slot resolution strategy that Amazon Lex uses to return slot type values. This parameter is required. 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 a 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
-
description
Sets the value ofCfnBot.SlotProperty.getDescription()
- Parameters:
description
- The description of the slot.- Returns:
this
-
multipleValuesSetting
@Stability(Stable) public CfnBot.SlotProperty.Builder multipleValuesSetting(IResolvable multipleValuesSetting) Sets the value ofCfnBot.SlotProperty.getMultipleValuesSetting()
- Parameters:
multipleValuesSetting
- Indicates whether a slot can return multiple values.- Returns:
this
-
multipleValuesSetting
@Stability(Stable) public CfnBot.SlotProperty.Builder multipleValuesSetting(CfnBot.MultipleValuesSettingProperty multipleValuesSetting) Sets the value ofCfnBot.SlotProperty.getMultipleValuesSetting()
- Parameters:
multipleValuesSetting
- Indicates whether a slot can return multiple values.- Returns:
this
-
obfuscationSetting
@Stability(Stable) public CfnBot.SlotProperty.Builder obfuscationSetting(IResolvable obfuscationSetting) Sets the value ofCfnBot.SlotProperty.getObfuscationSetting()
- Parameters:
obfuscationSetting
- Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs. Use obfuscated slots to protect information such as personally identifiable information (PII) in logs.- Returns:
this
-
obfuscationSetting
@Stability(Stable) public CfnBot.SlotProperty.Builder obfuscationSetting(CfnBot.ObfuscationSettingProperty obfuscationSetting) Sets the value ofCfnBot.SlotProperty.getObfuscationSetting()
- Parameters:
obfuscationSetting
- Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs. Use obfuscated slots to protect information such as personally identifiable information (PII) in logs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.SlotProperty>
- Returns:
- a new instance of
CfnBot.SlotProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-