Class: AWSCDK::Lex::CfnBot::SlotTypeValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::SlotTypeValueProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Each slot type can have a set of values.
Each SlotTypeValue represents a value that the slot type can take.
Instance Attribute Summary collapse
-
#sample_value ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::SampleValueProperty
readonly
The value of the slot type entry.
-
#synonyms ⇒ AWSCDK::IResolvable, ...
readonly
Additional values related to the slot type entry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(sample_value:, synonyms: nil) ⇒ SlotTypeValueProperty
constructor
A new instance of SlotTypeValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(sample_value:, synonyms: nil) ⇒ SlotTypeValueProperty
Returns a new instance of SlotTypeValueProperty.
5707 5708 5709 5710 5711 5712 |
# File 'lex/cfn_bot.rb', line 5707 def initialize(sample_value:, synonyms: nil) @sample_value = sample_value.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::SampleValueProperty.new(**sample_value.transform_keys(&:to_sym)) : sample_value Jsii::Type.check_type(@sample_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlNhbXBsZVZhbHVlUHJvcGVydHkifV19fQ==")), "sampleValue") @synonyms = synonyms Jsii::Type.check_type(@synonyms, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5TYW1wbGVWYWx1ZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "synonyms") unless @synonyms.nil? end |
Instance Attribute Details
#sample_value ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::SampleValueProperty (readonly)
The value of the slot type entry.
5718 5719 5720 |
# File 'lex/cfn_bot.rb', line 5718 def sample_value @sample_value end |
#synonyms ⇒ AWSCDK::IResolvable, ... (readonly)
Additional values related to the slot type entry.
5723 5724 5725 |
# File 'lex/cfn_bot.rb', line 5723 def synonyms @synonyms end |
Class Method Details
.jsii_properties ⇒ Object
5725 5726 5727 5728 5729 5730 |
# File 'lex/cfn_bot.rb', line 5725 def self.jsii_properties { :sample_value => "sampleValue", :synonyms => "synonyms", } end |
Instance Method Details
#to_jsii ⇒ Object
5732 5733 5734 5735 5736 5737 5738 5739 |
# File 'lex/cfn_bot.rb', line 5732 def to_jsii result = {} result.merge!({ "sampleValue" => @sample_value, "synonyms" => @synonyms, }) result.compact end |