Class CfnBotPropsMixin.MultipleValuesSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.MultipleValuesSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.MultipleValuesSettingProperty>
- Enclosing interface:
CfnBotPropsMixin.MultipleValuesSettingProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.MultipleValuesSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.MultipleValuesSettingProperty>
A builder for
CfnBotPropsMixin.MultipleValuesSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowMultipleValues(Boolean allowMultipleValues) Sets the value ofCfnBotPropsMixin.MultipleValuesSettingProperty.getAllowMultipleValues()allowMultipleValues(IResolvable allowMultipleValues) Sets the value ofCfnBotPropsMixin.MultipleValuesSettingProperty.getAllowMultipleValues()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowMultipleValues
@Stability(Stable) public CfnBotPropsMixin.MultipleValuesSettingProperty.Builder allowMultipleValues(Boolean allowMultipleValues) Sets the value ofCfnBotPropsMixin.MultipleValuesSettingProperty.getAllowMultipleValues()- Parameters:
allowMultipleValues- Indicates whether a slot can return multiple values. Whentrue, the slot may return more than one value in a response. Whenfalse, the slot returns only a single value.Multi-value slots are only available in the en-US locale. If you set this value to
truein any other locale, Amazon Lex throws aValidationException.If the
allowMutlipleValuesis not set, the default value isfalse.- Returns:
this
-
allowMultipleValues
@Stability(Stable) public CfnBotPropsMixin.MultipleValuesSettingProperty.Builder allowMultipleValues(IResolvable allowMultipleValues) Sets the value ofCfnBotPropsMixin.MultipleValuesSettingProperty.getAllowMultipleValues()- Parameters:
allowMultipleValues- Indicates whether a slot can return multiple values. Whentrue, the slot may return more than one value in a response. Whenfalse, the slot returns only a single value.Multi-value slots are only available in the en-US locale. If you set this value to
truein any other locale, Amazon Lex throws aValidationException.If the
allowMutlipleValuesis not set, the default value isfalse.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.MultipleValuesSettingProperty>- Returns:
- a new instance of
CfnBotPropsMixin.MultipleValuesSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-