Class: AWSCDK::Lex::CfnBot::ExactResponseFieldsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::ExactResponseFieldsProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Contains the names of the fields used for an exact response to the user.
Instance Attribute Summary collapse
-
#answer_field ⇒ String?
readonly
The name of the field that contains the answer to the query made to the OpenSearch Service database.
-
#question_field ⇒ String?
readonly
The name of the field that contains the query made to the OpenSearch Service database.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(answer_field: nil, question_field: nil) ⇒ ExactResponseFieldsProperty
constructor
A new instance of ExactResponseFieldsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(answer_field: nil, question_field: nil) ⇒ ExactResponseFieldsProperty
Returns a new instance of ExactResponseFieldsProperty.
2598 2599 2600 2601 2602 2603 |
# File 'lex/cfn_bot.rb', line 2598 def initialize(answer_field: nil, question_field: nil) @answer_field = answer_field Jsii::Type.check_type(@answer_field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "answerField") unless @answer_field.nil? @question_field = question_field Jsii::Type.check_type(@question_field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "questionField") unless @question_field.nil? end |
Instance Attribute Details
#answer_field ⇒ String? (readonly)
The name of the field that contains the answer to the query made to the OpenSearch Service database.
2609 2610 2611 |
# File 'lex/cfn_bot.rb', line 2609 def answer_field @answer_field end |
#question_field ⇒ String? (readonly)
The name of the field that contains the query made to the OpenSearch Service database.
2614 2615 2616 |
# File 'lex/cfn_bot.rb', line 2614 def question_field @question_field end |
Class Method Details
.jsii_properties ⇒ Object
2616 2617 2618 2619 2620 2621 |
# File 'lex/cfn_bot.rb', line 2616 def self.jsii_properties { :answer_field => "answerField", :question_field => "questionField", } end |
Instance Method Details
#to_jsii ⇒ Object
2623 2624 2625 2626 2627 2628 2629 2630 |
# File 'lex/cfn_bot.rb', line 2623 def to_jsii result = {} result.merge!({ "answerField" => @answer_field, "questionField" => @question_field, }) result.compact end |