Class: AWSCDK::Connect::CfnEvaluationForm::EvaluationFormNumericQuestionPropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnEvaluationForm::EvaluationFormNumericQuestionPropertiesProperty
- Defined in:
- connect/cfn_evaluation_form.rb
Overview
Information about properties for a numeric question in an evaluation form.
Instance Attribute Summary collapse
-
#automation ⇒ AWSCDK::IResolvable, ...
readonly
The automation properties of the numeric question.
-
#max_value ⇒ Numeric
readonly
The maximum answer value.
-
#min_value ⇒ Numeric
readonly
The minimum answer value.
-
#options ⇒ AWSCDK::IResolvable, ...
readonly
The scoring options of the numeric question.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max_value:, min_value:, automation: nil, options: nil) ⇒ EvaluationFormNumericQuestionPropertiesProperty
constructor
A new instance of EvaluationFormNumericQuestionPropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max_value:, min_value:, automation: nil, options: nil) ⇒ EvaluationFormNumericQuestionPropertiesProperty
Returns a new instance of EvaluationFormNumericQuestionPropertiesProperty.
1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 |
# File 'connect/cfn_evaluation_form.rb', line 1404 def initialize(max_value:, min_value:, automation: nil, options: nil) @max_value = max_value Jsii::Type.check_type(@max_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxValue") @min_value = min_value Jsii::Type.check_type(@min_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minValue") @automation = automation.is_a?(Hash) ? ::AWSCDK::Connect::CfnEvaluationForm::EvaluationFormNumericQuestionAutomationProperty.new(**automation.transform_keys(&:to_sym)) : automation Jsii::Type.check_type(@automation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkV2YWx1YXRpb25Gb3JtLkV2YWx1YXRpb25Gb3JtTnVtZXJpY1F1ZXN0aW9uQXV0b21hdGlvblByb3BlcnR5In1dfX0=")), "automation") unless @automation.nil? @options = Jsii::Type.check_type(@options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29ubmVjdC5DZm5FdmFsdWF0aW9uRm9ybS5FdmFsdWF0aW9uRm9ybU51bWVyaWNRdWVzdGlvbk9wdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "options") unless @options.nil? end |
Instance Attribute Details
#automation ⇒ AWSCDK::IResolvable, ... (readonly)
The automation properties of the numeric question.
1429 1430 1431 |
# File 'connect/cfn_evaluation_form.rb', line 1429 def automation @automation end |
#max_value ⇒ Numeric (readonly)
The maximum answer value.
1419 1420 1421 |
# File 'connect/cfn_evaluation_form.rb', line 1419 def max_value @max_value end |
#min_value ⇒ Numeric (readonly)
The minimum answer value.
1424 1425 1426 |
# File 'connect/cfn_evaluation_form.rb', line 1424 def min_value @min_value end |
#options ⇒ AWSCDK::IResolvable, ... (readonly)
The scoring options of the numeric question.
1434 1435 1436 |
# File 'connect/cfn_evaluation_form.rb', line 1434 def @options end |
Class Method Details
.jsii_properties ⇒ Object
1436 1437 1438 1439 1440 1441 1442 1443 |
# File 'connect/cfn_evaluation_form.rb', line 1436 def self.jsii_properties { :max_value => "maxValue", :min_value => "minValue", :automation => "automation", :options => "options", } end |
Instance Method Details
#to_jsii ⇒ Object
1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 |
# File 'connect/cfn_evaluation_form.rb', line 1445 def to_jsii result = {} result.merge!({ "maxValue" => @max_value, "minValue" => @min_value, "automation" => @automation, "options" => @options, }) result.compact end |