Class: AWSCDK::Connect::CfnEvaluationForm::EvaluationFormQuestionTypePropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnEvaluationForm::EvaluationFormQuestionTypePropertiesProperty
- Defined in:
- connect/cfn_evaluation_form.rb
Overview
Information about properties for a question in an evaluation form.
The question type properties must be either for a numeric question or a single select question.
Instance Attribute Summary collapse
-
#multi_select ⇒ AWSCDK::IResolvable, ...
readonly
Properties for multi-select question types.
-
#numeric ⇒ AWSCDK::IResolvable, ...
readonly
The properties of the numeric question.
-
#single_select ⇒ AWSCDK::IResolvable, ...
readonly
The properties of the numeric question.
-
#text ⇒ AWSCDK::IResolvable, ...
readonly
The properties of the text question.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(multi_select: nil, numeric: nil, single_select: nil, text: nil) ⇒ EvaluationFormQuestionTypePropertiesProperty
constructor
A new instance of EvaluationFormQuestionTypePropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(multi_select: nil, numeric: nil, single_select: nil, text: nil) ⇒ EvaluationFormQuestionTypePropertiesProperty
Returns a new instance of EvaluationFormQuestionTypePropertiesProperty.
1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 |
# File 'connect/cfn_evaluation_form.rb', line 1619 def initialize(multi_select: nil, numeric: nil, single_select: nil, text: nil) @multi_select = multi_select.is_a?(Hash) ? ::AWSCDK::Connect::CfnEvaluationForm::EvaluationFormMultiSelectQuestionPropertiesProperty.new(**multi_select.transform_keys(&:to_sym)) : multi_select Jsii::Type.check_type(@multi_select, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkV2YWx1YXRpb25Gb3JtLkV2YWx1YXRpb25Gb3JtTXVsdGlTZWxlY3RRdWVzdGlvblByb3BlcnRpZXNQcm9wZXJ0eSJ9XX19")), "multiSelect") unless @multi_select.nil? @numeric = numeric.is_a?(Hash) ? ::AWSCDK::Connect::CfnEvaluationForm::EvaluationFormNumericQuestionPropertiesProperty.new(**numeric.transform_keys(&:to_sym)) : numeric Jsii::Type.check_type(@numeric, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkV2YWx1YXRpb25Gb3JtLkV2YWx1YXRpb25Gb3JtTnVtZXJpY1F1ZXN0aW9uUHJvcGVydGllc1Byb3BlcnR5In1dfX0=")), "numeric") unless @numeric.nil? @single_select = single_select.is_a?(Hash) ? ::AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSingleSelectQuestionPropertiesProperty.new(**single_select.transform_keys(&:to_sym)) : single_select Jsii::Type.check_type(@single_select, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkV2YWx1YXRpb25Gb3JtLkV2YWx1YXRpb25Gb3JtU2luZ2xlU2VsZWN0UXVlc3Rpb25Qcm9wZXJ0aWVzUHJvcGVydHkifV19fQ==")), "singleSelect") unless @single_select.nil? @text = text.is_a?(Hash) ? ::AWSCDK::Connect::CfnEvaluationForm::EvaluationFormTextQuestionPropertiesProperty.new(**text.transform_keys(&:to_sym)) : text Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkV2YWx1YXRpb25Gb3JtLkV2YWx1YXRpb25Gb3JtVGV4dFF1ZXN0aW9uUHJvcGVydGllc1Byb3BlcnR5In1dfX0=")), "text") unless @text.nil? end |
Instance Attribute Details
#multi_select ⇒ AWSCDK::IResolvable, ... (readonly)
Properties for multi-select question types.
1634 1635 1636 |
# File 'connect/cfn_evaluation_form.rb', line 1634 def multi_select @multi_select end |
#numeric ⇒ AWSCDK::IResolvable, ... (readonly)
The properties of the numeric question.
1639 1640 1641 |
# File 'connect/cfn_evaluation_form.rb', line 1639 def numeric @numeric end |
#single_select ⇒ AWSCDK::IResolvable, ... (readonly)
The properties of the numeric question.
1644 1645 1646 |
# File 'connect/cfn_evaluation_form.rb', line 1644 def single_select @single_select end |
#text ⇒ AWSCDK::IResolvable, ... (readonly)
The properties of the text question.
1649 1650 1651 |
# File 'connect/cfn_evaluation_form.rb', line 1649 def text @text end |
Class Method Details
.jsii_properties ⇒ Object
1651 1652 1653 1654 1655 1656 1657 1658 |
# File 'connect/cfn_evaluation_form.rb', line 1651 def self.jsii_properties { :multi_select => "multiSelect", :numeric => "numeric", :single_select => "singleSelect", :text => "text", } end |
Instance Method Details
#to_jsii ⇒ Object
1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 |
# File 'connect/cfn_evaluation_form.rb', line 1660 def to_jsii result = {} result.merge!({ "multiSelect" => @multi_select, "numeric" => @numeric, "singleSelect" => @single_select, "text" => @text, }) result.compact end |