Class: AWSCDK::Lex::CfnBot::MultipleValuesSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::MultipleValuesSettingProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Indicates whether a slot can return multiple values.
Instance Attribute Summary collapse
-
#allow_multiple_values ⇒ Boolean, ...
readonly
Indicates whether a slot can return multiple values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allow_multiple_values: nil) ⇒ MultipleValuesSettingProperty
constructor
A new instance of MultipleValuesSettingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allow_multiple_values: nil) ⇒ MultipleValuesSettingProperty
Returns a new instance of MultipleValuesSettingProperty.
3968 3969 3970 3971 |
# File 'lex/cfn_bot.rb', line 3968 def initialize(allow_multiple_values: nil) @allow_multiple_values = allow_multiple_values Jsii::Type.check_type(@allow_multiple_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "allowMultipleValues") unless @allow_multiple_values.nil? end |
Instance Attribute Details
#allow_multiple_values ⇒ Boolean, ... (readonly)
Indicates whether a slot can return multiple values.
When true , the slot may return more than one value in a response. When false , 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 a ValidationException .
If the allow_mutliple_values is not set, the default value is false .
3983 3984 3985 |
# File 'lex/cfn_bot.rb', line 3983 def allow_multiple_values @allow_multiple_values end |
Class Method Details
.jsii_properties ⇒ Object
3985 3986 3987 3988 3989 |
# File 'lex/cfn_bot.rb', line 3985 def self.jsii_properties { :allow_multiple_values => "allowMultipleValues", } end |
Instance Method Details
#to_jsii ⇒ Object
3991 3992 3993 3994 3995 3996 3997 |
# File 'lex/cfn_bot.rb', line 3991 def to_jsii result = {} result.merge!({ "allowMultipleValues" => @allow_multiple_values, }) result.compact end |