Class: AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSingleSelectQuestionPropertiesProperty

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

Overview

Information about the options in single select questions.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options:, automation: nil, display_as: nil) ⇒ EvaluationFormSingleSelectQuestionPropertiesProperty

Returns a new instance of EvaluationFormSingleSelectQuestionPropertiesProperty.

Parameters:



1943
1944
1945
1946
1947
1948
1949
1950
# File 'connect/cfn_evaluation_form.rb', line 1943

def initialize(options:, automation: nil, display_as: nil)
  @options = options
  Jsii::Type.check_type(@options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29ubmVjdC5DZm5FdmFsdWF0aW9uRm9ybS5FdmFsdWF0aW9uRm9ybVNpbmdsZVNlbGVjdFF1ZXN0aW9uT3B0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "options")
  @automation = automation.is_a?(Hash) ? ::AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSingleSelectQuestionAutomationProperty.new(**automation.transform_keys(&:to_sym)) : automation
  Jsii::Type.check_type(@automation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkV2YWx1YXRpb25Gb3JtLkV2YWx1YXRpb25Gb3JtU2luZ2xlU2VsZWN0UXVlc3Rpb25BdXRvbWF0aW9uUHJvcGVydHkifV19fQ==")), "automation") unless @automation.nil?
  @display_as = display_as
  Jsii::Type.check_type(@display_as, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "displayAs") unless @display_as.nil?
end

Instance Attribute Details

#display_asString? (readonly)

The display mode of the single select question.

Allowed values : DROPDOWN | RADIO



1972
1973
1974
# File 'connect/cfn_evaluation_form.rb', line 1972

def display_as
  @display_as
end

Class Method Details

.jsii_propertiesObject



1974
1975
1976
1977
1978
1979
1980
# File 'connect/cfn_evaluation_form.rb', line 1974

def self.jsii_properties
  {
    :options => "options",
    :automation => "automation",
    :display_as => "displayAs",
  }
end

Instance Method Details

#to_jsiiObject



1982
1983
1984
1985
1986
1987
1988
1989
1990
# File 'connect/cfn_evaluation_form.rb', line 1982

def to_jsii
  result = {}
  result.merge!({
    "options" => @options,
    "automation" => @automation,
    "displayAs" => @display_as,
  })
  result.compact
end