Class: AWSCDK::Lex::CfnBot::ExactResponseFieldsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(answer_field: nil, question_field: nil) ⇒ ExactResponseFieldsProperty

Returns a new instance of ExactResponseFieldsProperty.

Parameters:

  • answer_field (String, nil) (defaults to: nil)

    The name of the field that contains the answer to the query made to the OpenSearch Service database.

  • question_field (String, nil) (defaults to: nil)

    The name of the field that contains the query made to the OpenSearch Service database.



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_fieldString? (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_fieldString? (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_propertiesObject



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_jsiiObject



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