Class CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.connect.CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty>
- Enclosing interface:
CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty
@Stability(Stable)
public static final class CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty>
-
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.EvaluationFormNumericQuestionOptionProperty.Builder automaticFail(Boolean automaticFail) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.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.EvaluationFormNumericQuestionOptionProperty.Builder automaticFail(IResolvable automaticFail) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.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.EvaluationFormNumericQuestionOptionProperty.Builder automaticFailConfiguration(IResolvable automaticFailConfiguration) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.getAutomaticFailConfiguration()- Parameters:
automaticFailConfiguration- A configuration for automatic fail.- Returns:
this
-
automaticFailConfiguration
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.Builder automaticFailConfiguration(CfnEvaluationFormPropsMixin.AutomaticFailConfigurationProperty automaticFailConfiguration) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.getAutomaticFailConfiguration()- Parameters:
automaticFailConfiguration- A configuration for automatic fail.- Returns:
this
-
maxValue
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.Builder maxValue(Number maxValue) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.getMaxValue()- Parameters:
maxValue- The maximum answer value of the range option.- Returns:
this
-
minValue
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.Builder minValue(Number minValue) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.getMinValue()- Parameters:
minValue- The minimum answer value of the range option.- Returns:
this
-
score
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.Builder score(Number score) Sets the value ofCfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty.getScore()- Parameters:
score- The score assigned to answer values within the range option. Minimum : 0Maximum : 10
- Returns:
this
-
build
@Stability(Stable) public CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty>- Returns:
- a new instance of
CfnEvaluationFormPropsMixin.EvaluationFormNumericQuestionOptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-