Class: AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSingleSelectQuestionPropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSingleSelectQuestionPropertiesProperty
- Defined in:
- connect/cfn_evaluation_form.rb
Overview
Information about the options in single select questions.
Instance Attribute Summary collapse
-
#automation ⇒ AWSCDK::IResolvable, ...
readonly
The display mode of the single select question.
-
#display_as ⇒ String?
readonly
The display mode of the single select question.
-
#options ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSingleSelectQuestionOptionProperty>
readonly
The answer options of the single select question.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options:, automation: nil, display_as: nil) ⇒ EvaluationFormSingleSelectQuestionPropertiesProperty
constructor
A new instance of EvaluationFormSingleSelectQuestionPropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(options:, automation: nil, display_as: nil) ⇒ EvaluationFormSingleSelectQuestionPropertiesProperty
Returns a new instance of EvaluationFormSingleSelectQuestionPropertiesProperty.
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 = 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
#automation ⇒ AWSCDK::IResolvable, ... (readonly)
The display mode of the single select question.
1965 1966 1967 |
# File 'connect/cfn_evaluation_form.rb', line 1965 def automation @automation end |
#display_as ⇒ String? (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 |
#options ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSingleSelectQuestionOptionProperty> (readonly)
The answer options of the single select question.
Minimum : 2
Maximum : 256
1960 1961 1962 |
# File 'connect/cfn_evaluation_form.rb', line 1960 def @options end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |