Class: AWSCDK::Connect::CfnEvaluationForm::EvaluationFormMultiSelectQuestionOptionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_evaluation_form.rb

Overview

An option for a multi-select question in an evaluation form.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ref_id:, text:) ⇒ EvaluationFormMultiSelectQuestionOptionProperty

Returns a new instance of EvaluationFormMultiSelectQuestionOptionProperty.

Parameters:

  • ref_id (String)

    Reference identifier for this option.

  • text (String)

    Display text for this option.



1184
1185
1186
1187
1188
1189
# File 'connect/cfn_evaluation_form.rb', line 1184

def initialize(ref_id:, text:)
  @ref_id = ref_id
  Jsii::Type.check_type(@ref_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "refId")
  @text = text
  Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "text")
end

Instance Attribute Details

#ref_idString (readonly)

Reference identifier for this option.



1195
1196
1197
# File 'connect/cfn_evaluation_form.rb', line 1195

def ref_id
  @ref_id
end

#textString (readonly)

Display text for this option.



1200
1201
1202
# File 'connect/cfn_evaluation_form.rb', line 1200

def text
  @text
end

Class Method Details

.jsii_propertiesObject



1202
1203
1204
1205
1206
1207
# File 'connect/cfn_evaluation_form.rb', line 1202

def self.jsii_properties
  {
    :ref_id => "refId",
    :text => "text",
  }
end

Instance Method Details

#to_jsiiObject



1209
1210
1211
1212
1213
1214
1215
1216
# File 'connect/cfn_evaluation_form.rb', line 1209

def to_jsii
  result = {}
  result.merge!({
    "refId" => @ref_id,
    "text" => @text,
  })
  result.compact
end