Class CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.connect.CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty>
- Enclosing interface:
CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty
@Stability(Stable)
public static final class CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enablement(CfnEvaluationFormPropsMixin.EvaluationFormItemEnablementConfigurationProperty enablement) enablement(IResolvable enablement) instructions(String instructions) notApplicableEnabled(Boolean notApplicableEnabled) notApplicableEnabled(IResolvable notApplicableEnabled) questionType(String questionType) questionTypeProperties(CfnEvaluationFormPropsMixin.EvaluationFormQuestionTypePropertiesProperty questionTypeProperties) questionTypeProperties(IResolvable questionTypeProperties) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.getRefId()Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.getTitle()Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enablement
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder enablement(IResolvable enablement) - Parameters:
enablement- A question conditional enablement.- Returns:
this
-
enablement
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder enablement(CfnEvaluationFormPropsMixin.EvaluationFormItemEnablementConfigurationProperty enablement) - Parameters:
enablement- A question conditional enablement.- Returns:
this
-
instructions
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder instructions(String instructions) - Parameters:
instructions- The instructions of the section. Length Constraints : Minimum length of 0. Maximum length of 1024.- Returns:
this
-
notApplicableEnabled
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder notApplicableEnabled(Boolean notApplicableEnabled) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.getNotApplicableEnabled()- Parameters:
notApplicableEnabled- The flag to enable not applicable answers to the question.- Returns:
this
-
notApplicableEnabled
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder notApplicableEnabled(IResolvable notApplicableEnabled) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.getNotApplicableEnabled()- Parameters:
notApplicableEnabled- The flag to enable not applicable answers to the question.- Returns:
this
-
questionType
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder questionType(String questionType) - Parameters:
questionType- The type of the question. Allowed values :NUMERIC|SINGLESELECT|TEXT- Returns:
this
-
questionTypeProperties
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder questionTypeProperties(IResolvable questionTypeProperties) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.getQuestionTypeProperties()- Parameters:
questionTypeProperties- The properties of the type of question. Text questions do not have to define question type properties.- Returns:
this
-
questionTypeProperties
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder questionTypeProperties(CfnEvaluationFormPropsMixin.EvaluationFormQuestionTypePropertiesProperty questionTypeProperties) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.getQuestionTypeProperties()- Parameters:
questionTypeProperties- The properties of the type of question. Text questions do not have to define question type properties.- Returns:
this
-
refId
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder refId(String refId) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.getRefId()- Parameters:
refId- The identifier of the question. An identifier must be unique within the evaluation form. Length Constraints : Minimum length of 1. Maximum length of 40.- Returns:
this
-
title
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder title(String title) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.getTitle()- Parameters:
title- The title of the question. Length Constraints : Minimum length of 1. Maximum length of 350.- Returns:
this
-
weight
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.Builder weight(Number weight) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty.getWeight()- Parameters:
weight- The scoring weight of the section. Minimum : 0Maximum : 100
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty>- Returns:
- a new instance of
CfnEvaluationFormPropsMixin.EvaluationFormQuestionProperty - Throws:
NullPointerException- if any required attribute was not provided
-