Class CfnBotPropsMixin.SlotProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.SlotProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.SlotProperty>
- Enclosing interface:
CfnBotPropsMixin.SlotProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.SlotProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.SlotProperty>
A builder for
CfnBotPropsMixin.SlotProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnBotPropsMixin.SlotProperty.getDescription()multipleValuesSetting(CfnBotPropsMixin.MultipleValuesSettingProperty multipleValuesSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getMultipleValuesSetting()multipleValuesSetting(IResolvable multipleValuesSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getMultipleValuesSetting()Sets the value ofCfnBotPropsMixin.SlotProperty.getName()obfuscationSetting(CfnBotPropsMixin.ObfuscationSettingProperty obfuscationSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getObfuscationSetting()obfuscationSetting(IResolvable obfuscationSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getObfuscationSetting()slotTypeName(String slotTypeName) Sets the value ofCfnBotPropsMixin.SlotProperty.getSlotTypeName()subSlotSetting(CfnBotPropsMixin.SubSlotSettingProperty subSlotSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getSubSlotSetting()subSlotSetting(IResolvable subSlotSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getSubSlotSetting()valueElicitationSetting(CfnBotPropsMixin.SlotValueElicitationSettingProperty valueElicitationSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getValueElicitationSetting()valueElicitationSetting(IResolvable valueElicitationSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getValueElicitationSetting()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnBotPropsMixin.SlotProperty.getDescription()- Parameters:
description- The description of the slot.- Returns:
this
-
multipleValuesSetting
@Stability(Stable) public CfnBotPropsMixin.SlotProperty.Builder multipleValuesSetting(IResolvable multipleValuesSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getMultipleValuesSetting()- Parameters:
multipleValuesSetting- Indicates whether a slot can return multiple values.- Returns:
this
-
multipleValuesSetting
@Stability(Stable) public CfnBotPropsMixin.SlotProperty.Builder multipleValuesSetting(CfnBotPropsMixin.MultipleValuesSettingProperty multipleValuesSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getMultipleValuesSetting()- Parameters:
multipleValuesSetting- Indicates whether a slot can return multiple values.- Returns:
this
-
name
Sets the value ofCfnBotPropsMixin.SlotProperty.getName()- Parameters:
name- The name given to the slot.- Returns:
this
-
obfuscationSetting
@Stability(Stable) public CfnBotPropsMixin.SlotProperty.Builder obfuscationSetting(IResolvable obfuscationSetting) Sets the value ofCfnBotPropsMixin.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 CfnBotPropsMixin.SlotProperty.Builder obfuscationSetting(CfnBotPropsMixin.ObfuscationSettingProperty obfuscationSetting) Sets the value ofCfnBotPropsMixin.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
-
slotTypeName
Sets the value ofCfnBotPropsMixin.SlotProperty.getSlotTypeName()- Parameters:
slotTypeName- The name of the slot type that this slot is based on. The slot type defines the acceptable values for the slot.- Returns:
this
-
subSlotSetting
@Stability(Stable) public CfnBotPropsMixin.SlotProperty.Builder subSlotSetting(IResolvable subSlotSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getSubSlotSetting()- Parameters:
subSlotSetting- the value to be set.- Returns:
this
-
subSlotSetting
@Stability(Stable) public CfnBotPropsMixin.SlotProperty.Builder subSlotSetting(CfnBotPropsMixin.SubSlotSettingProperty subSlotSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getSubSlotSetting()- Parameters:
subSlotSetting- the value to be set.- Returns:
this
-
valueElicitationSetting
@Stability(Stable) public CfnBotPropsMixin.SlotProperty.Builder valueElicitationSetting(IResolvable valueElicitationSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getValueElicitationSetting()- Parameters:
valueElicitationSetting- 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 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 CfnBotPropsMixin.SlotProperty.Builder valueElicitationSetting(CfnBotPropsMixin.SlotValueElicitationSettingProperty valueElicitationSetting) Sets the value ofCfnBotPropsMixin.SlotProperty.getValueElicitationSetting()- Parameters:
valueElicitationSetting- 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 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.SlotProperty>- Returns:
- a new instance of
CfnBotPropsMixin.SlotProperty - Throws:
NullPointerException- if any required attribute was not provided
-