Interface CfnEvaluationForm.EvaluationFormQuestionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnEvaluationForm.EvaluationFormQuestionProperty.Jsii$Proxy
Enclosing class:
CfnEvaluationForm

@Stability(Stable) public static interface CfnEvaluationForm.EvaluationFormQuestionProperty extends software.amazon.jsii.JsiiSerializable
Information about a question from an evaluation form.

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.*;
 EvaluationFormQuestionProperty evaluationFormQuestionProperty = EvaluationFormQuestionProperty.builder()
         .questionType("questionType")
         .refId("refId")
         .title("title")
         // the properties below are optional
         .instructions("instructions")
         .notApplicableEnabled(false)
         .questionTypeProperties(EvaluationFormQuestionTypePropertiesProperty.builder()
                 .numeric(EvaluationFormNumericQuestionPropertiesProperty.builder()
                         .maxValue(123)
                         .minValue(123)
                         // the properties below are optional
                         .automation(EvaluationFormNumericQuestionAutomationProperty.builder()
                                 .propertyValue(NumericQuestionPropertyValueAutomationProperty.builder()
                                         .label("label")
                                         .build())
                                 .build())
                         .options(List.of(EvaluationFormNumericQuestionOptionProperty.builder()
                                 .maxValue(123)
                                 .minValue(123)
                                 // the properties below are optional
                                 .automaticFail(false)
                                 .score(123)
                                 .build()))
                         .build())
                 .singleSelect(EvaluationFormSingleSelectQuestionPropertiesProperty.builder()
                         .options(List.of(EvaluationFormSingleSelectQuestionOptionProperty.builder()
                                 .refId("refId")
                                 .text("text")
                                 // the properties below are optional
                                 .automaticFail(false)
                                 .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
                                 .defaultOptionRefId("defaultOptionRefId")
                                 .build())
                         .displayAs("displayAs")
                         .build())
                 .build())
         .weight(123)
         .build();
 
  • Method Details

    • getQuestionType

      @Stability(Stable) @NotNull String getQuestionType()
      The type of the question.

      Allowed values : NUMERIC | SINGLESELECT | TEXT

    • getRefId

      @Stability(Stable) @NotNull String getRefId()
      The identifier of the question. An identifier must be unique within the evaluation form.

      Length Constraints : Minimum length of 1. Maximum length of 40.

    • getTitle

      @Stability(Stable) @NotNull String getTitle()
      The title of the question.

      Length Constraints : Minimum length of 1. Maximum length of 350.

    • getInstructions

      @Stability(Stable) @Nullable default String getInstructions()
      The instructions of the section.

      Length Constraints : Minimum length of 0. Maximum length of 1024.

    • getNotApplicableEnabled

      @Stability(Stable) @Nullable default Object getNotApplicableEnabled()
      The flag to enable not applicable answers to the question.
    • getQuestionTypeProperties

      @Stability(Stable) @Nullable default Object getQuestionTypeProperties()
      The properties of the type of question.

      Text questions do not have to define question type properties.

    • getWeight

      @Stability(Stable) @Nullable default Number getWeight()
      The scoring weight of the section.

      Minimum : 0

      Maximum : 100

    • builder

      @Stability(Stable) static CfnEvaluationForm.EvaluationFormQuestionProperty.Builder builder()
      Returns:
      a CfnEvaluationForm.EvaluationFormQuestionProperty.Builder of CfnEvaluationForm.EvaluationFormQuestionProperty