Interface CfnEvaluationForm.EvaluationFormQuestionTypePropertiesProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEvaluationForm.EvaluationFormQuestionTypePropertiesProperty.Jsii$Proxy
- Enclosing class:
CfnEvaluationForm
@Stability(Stable)
public static interface CfnEvaluationForm.EvaluationFormQuestionTypePropertiesProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.connect.*;
EvaluationFormQuestionTypePropertiesProperty evaluationFormQuestionTypePropertiesProperty = EvaluationFormQuestionTypePropertiesProperty.builder()
.multiSelect(EvaluationFormMultiSelectQuestionPropertiesProperty.builder()
.options(List.of(EvaluationFormMultiSelectQuestionOptionProperty.builder()
.refId("refId")
.text("text")
.build()))
// the properties below are optional
.automation(EvaluationFormMultiSelectQuestionAutomationProperty.builder()
.options(List.of(EvaluationFormMultiSelectQuestionAutomationOptionProperty.builder()
.ruleCategory(MultiSelectQuestionRuleCategoryAutomationProperty.builder()
.category("category")
.condition("condition")
.optionRefIds(List.of("optionRefIds"))
.build())
.build()))
// the properties below are optional
.answerSource(EvaluationFormQuestionAutomationAnswerSourceProperty.builder()
.sourceType("sourceType")
.build())
.defaultOptionRefIds(List.of("defaultOptionRefIds"))
.build())
.displayAs("displayAs")
.build())
.numeric(EvaluationFormNumericQuestionPropertiesProperty.builder()
.maxValue(123)
.minValue(123)
// the properties below are optional
.automation(EvaluationFormNumericQuestionAutomationProperty.builder()
.answerSource(EvaluationFormQuestionAutomationAnswerSourceProperty.builder()
.sourceType("sourceType")
.build())
.propertyValue(NumericQuestionPropertyValueAutomationProperty.builder()
.label("label")
.build())
.build())
.options(List.of(EvaluationFormNumericQuestionOptionProperty.builder()
.maxValue(123)
.minValue(123)
// the properties below are optional
.automaticFail(false)
.automaticFailConfiguration(AutomaticFailConfigurationProperty.builder()
.targetSection("targetSection")
.build())
.score(123)
.build()))
.build())
.singleSelect(EvaluationFormSingleSelectQuestionPropertiesProperty.builder()
.options(List.of(EvaluationFormSingleSelectQuestionOptionProperty.builder()
.refId("refId")
.text("text")
// the properties below are optional
.automaticFail(false)
.automaticFailConfiguration(AutomaticFailConfigurationProperty.builder()
.targetSection("targetSection")
.build())
.score(123)
.build()))
// the properties below are optional
.automation(EvaluationFormSingleSelectQuestionAutomationProperty.builder()
.options(List.of(EvaluationFormSingleSelectQuestionAutomationOptionProperty.builder()
.ruleCategory(SingleSelectQuestionRuleCategoryAutomationProperty.builder()
.category("category")
.condition("condition")
.optionRefId("optionRefId")
.build())
.build()))
// the properties below are optional
.answerSource(EvaluationFormQuestionAutomationAnswerSourceProperty.builder()
.sourceType("sourceType")
.build())
.defaultOptionRefId("defaultOptionRefId")
.build())
.displayAs("displayAs")
.build())
.text(EvaluationFormTextQuestionPropertiesProperty.builder()
.automation(EvaluationFormTextQuestionAutomationProperty.builder()
.answerSource(EvaluationFormQuestionAutomationAnswerSourceProperty.builder()
.sourceType("sourceType")
.build())
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnEvaluationForm.EvaluationFormQuestionTypePropertiesProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectReturns union: eitherIResolvableorCfnEvaluationForm.EvaluationFormMultiSelectQuestionPropertiesPropertydefault ObjectThe properties of the numeric question.default ObjectThe properties of the numeric question.default ObjectgetText()The properties of the text question.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMultiSelect
Returns union: eitherIResolvableorCfnEvaluationForm.EvaluationFormMultiSelectQuestionPropertiesProperty- See Also:
-
getNumeric
The properties of the numeric question.Returns union: either
IResolvableorCfnEvaluationForm.EvaluationFormNumericQuestionPropertiesProperty- See Also:
-
getSingleSelect
The properties of the numeric question.Returns union: either
IResolvableorCfnEvaluationForm.EvaluationFormSingleSelectQuestionPropertiesProperty- See Also:
-
getText
The properties of the text question.Returns union: either
IResolvableorCfnEvaluationForm.EvaluationFormTextQuestionPropertiesProperty- See Also:
-
builder
@Stability(Stable) static CfnEvaluationForm.EvaluationFormQuestionTypePropertiesProperty.Builder builder()
-