Class CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.connect.CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty>
- Enclosing interface:
CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty
@Stability(Stable)
public static final class CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautomaticFail(Boolean automaticFail) automaticFail(IResolvable automaticFail) automaticFailConfiguration(CfnEvaluationFormPropsMixin.AutomaticFailConfigurationProperty automaticFailConfiguration) automaticFailConfiguration(IResolvable automaticFailConfiguration) build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
automaticFail
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.Builder automaticFail(Boolean automaticFail) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.getAutomaticFail()- Parameters:
automaticFail- The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.- Returns:
this
-
automaticFail
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.Builder automaticFail(IResolvable automaticFail) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.getAutomaticFail()- Parameters:
automaticFail- The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.- Returns:
this
-
automaticFailConfiguration
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.Builder automaticFailConfiguration(IResolvable automaticFailConfiguration) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.getAutomaticFailConfiguration()- Parameters:
automaticFailConfiguration- Whether automatic fail is configured on a single select question.- Returns:
this
-
automaticFailConfiguration
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.Builder automaticFailConfiguration(CfnEvaluationFormPropsMixin.AutomaticFailConfigurationProperty automaticFailConfiguration) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.getAutomaticFailConfiguration()- Parameters:
automaticFailConfiguration- Whether automatic fail is configured on a single select question.- Returns:
this
-
refId
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.Builder refId(String refId) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.getRefId()- Parameters:
refId- The identifier of the answer option. An identifier must be unique within the question. Length Constraints : Minimum length of 1. Maximum length of 40.- Returns:
this
-
score
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.Builder score(Number score) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.getScore()- Parameters:
score- The score assigned to the answer option. Minimum : 0Maximum : 10
- Returns:
this
-
text
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.Builder text(String text) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty.getText()- Parameters:
text- The title of the answer option. Length Constraints : Minimum length of 1. Maximum length of 128.- Returns:
this
-
build
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty>- Returns:
- a new instance of
CfnEvaluationFormPropsMixin.EvaluationFormSingleSelectQuestionOptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-