Class: AWSCDK::Connect::CfnEvaluationForm::EvaluationFormNumericQuestionAutomationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnEvaluationForm::EvaluationFormNumericQuestionAutomationProperty
- Defined in:
- connect/cfn_evaluation_form.rb
Overview
Information about the automation configuration in numeric questions.
Instance Attribute Summary collapse
-
#answer_source ⇒ AWSCDK::IResolvable, ...
readonly
A source of automation answer for numeric question.
-
#property_value ⇒ AWSCDK::IResolvable, ...
readonly
The property value of the automation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(answer_source: nil, property_value: nil) ⇒ EvaluationFormNumericQuestionAutomationProperty
constructor
A new instance of EvaluationFormNumericQuestionAutomationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(answer_source: nil, property_value: nil) ⇒ EvaluationFormNumericQuestionAutomationProperty
Returns a new instance of EvaluationFormNumericQuestionAutomationProperty.
1280 1281 1282 1283 1284 1285 |
# File 'connect/cfn_evaluation_form.rb', line 1280 def initialize(answer_source: nil, property_value: nil) @answer_source = answer_source.is_a?(Hash) ? ::AWSCDK::Connect::CfnEvaluationForm::EvaluationFormQuestionAutomationAnswerSourceProperty.new(**answer_source.transform_keys(&:to_sym)) : answer_source Jsii::Type.check_type(@answer_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkV2YWx1YXRpb25Gb3JtLkV2YWx1YXRpb25Gb3JtUXVlc3Rpb25BdXRvbWF0aW9uQW5zd2VyU291cmNlUHJvcGVydHkifV19fQ==")), "answerSource") unless @answer_source.nil? @property_value = property_value.is_a?(Hash) ? ::AWSCDK::Connect::CfnEvaluationForm::NumericQuestionPropertyValueAutomationProperty.new(**property_value.transform_keys(&:to_sym)) : property_value Jsii::Type.check_type(@property_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkV2YWx1YXRpb25Gb3JtLk51bWVyaWNRdWVzdGlvblByb3BlcnR5VmFsdWVBdXRvbWF0aW9uUHJvcGVydHkifV19fQ==")), "propertyValue") unless @property_value.nil? end |
Instance Attribute Details
#answer_source ⇒ AWSCDK::IResolvable, ... (readonly)
A source of automation answer for numeric question.
1291 1292 1293 |
# File 'connect/cfn_evaluation_form.rb', line 1291 def answer_source @answer_source end |
#property_value ⇒ AWSCDK::IResolvable, ... (readonly)
The property value of the automation.
1296 1297 1298 |
# File 'connect/cfn_evaluation_form.rb', line 1296 def property_value @property_value end |
Class Method Details
.jsii_properties ⇒ Object
1298 1299 1300 1301 1302 1303 |
# File 'connect/cfn_evaluation_form.rb', line 1298 def self.jsii_properties { :answer_source => "answerSource", :property_value => "propertyValue", } end |
Instance Method Details
#to_jsii ⇒ Object
1305 1306 1307 1308 1309 1310 1311 1312 |
# File 'connect/cfn_evaluation_form.rb', line 1305 def to_jsii result = {} result.merge!({ "answerSource" => @answer_source, "propertyValue" => @property_value, }) result.compact end |