Class: AWSCDK::Lex::CfnBot::SampleUtteranceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::SampleUtteranceProperty
- Defined in:
- lex/cfn_bot.rb
Overview
A sample utterance that invokes an intent or respond to a slot elicitation prompt.
Instance Attribute Summary collapse
-
#utterance ⇒ String
readonly
A sample utterance that invokes an intent or respond to a slot elicitation prompt.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(utterance:) ⇒ SampleUtteranceProperty
constructor
A new instance of SampleUtteranceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(utterance:) ⇒ SampleUtteranceProperty
Returns a new instance of SampleUtteranceProperty.
5091 5092 5093 5094 |
# File 'lex/cfn_bot.rb', line 5091 def initialize(utterance:) @utterance = utterance Jsii::Type.check_type(@utterance, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "utterance") end |
Instance Attribute Details
#utterance ⇒ String (readonly)
A sample utterance that invokes an intent or respond to a slot elicitation prompt.
5100 5101 5102 |
# File 'lex/cfn_bot.rb', line 5100 def utterance @utterance end |
Class Method Details
.jsii_properties ⇒ Object
5102 5103 5104 5105 5106 |
# File 'lex/cfn_bot.rb', line 5102 def self.jsii_properties { :utterance => "utterance", } end |
Instance Method Details
#to_jsii ⇒ Object
5108 5109 5110 5111 5112 5113 5114 |
# File 'lex/cfn_bot.rb', line 5108 def to_jsii result = {} result.merge!({ "utterance" => @utterance, }) result.compact end |