Class CfnBot.MultipleValuesSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.MultipleValuesSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.MultipleValuesSettingProperty>
- Enclosing interface:
CfnBot.MultipleValuesSettingProperty
@Stability(Stable)
public static final class CfnBot.MultipleValuesSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.MultipleValuesSettingProperty>
A builder for
CfnBot.MultipleValuesSettingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowMultipleValues
(Boolean allowMultipleValues) Sets the value ofCfnBot.MultipleValuesSettingProperty.getAllowMultipleValues()
allowMultipleValues
(IResolvable allowMultipleValues) Sets the value ofCfnBot.MultipleValuesSettingProperty.getAllowMultipleValues()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowMultipleValues
@Stability(Stable) public CfnBot.MultipleValuesSettingProperty.Builder allowMultipleValues(Boolean allowMultipleValues) Sets the value ofCfnBot.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
true
in any other locale, Amazon Lex throws aValidationException
.If the
allowMutlipleValues
is not set, the default value isfalse
.- Returns:
this
-
allowMultipleValues
@Stability(Stable) public CfnBot.MultipleValuesSettingProperty.Builder allowMultipleValues(IResolvable allowMultipleValues) Sets the value ofCfnBot.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
true
in any other locale, Amazon Lex throws aValidationException
.If the
allowMutlipleValues
is not set, the default value isfalse
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.MultipleValuesSettingProperty>
- Returns:
- a new instance of
CfnBot.MultipleValuesSettingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-