Class: AWSCDK::Connect::CfnEvaluationForm::EvaluationFormQuestionTypePropertiesProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(multi_select: nil, numeric: nil, single_select: nil, text: nil) ⇒ EvaluationFormQuestionTypePropertiesProperty

Returns a new instance of EvaluationFormQuestionTypePropertiesProperty.

Parameters:



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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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