Class CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty>
- Enclosing interface:
CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty
@Stability(Stable)
public static final class CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautomaticFail
(Boolean automaticFail) automaticFail
(IResolvable automaticFail) build()
Builds the configured instance.Sets the value ofCfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty.getScore()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxValue
@Stability(Stable) public CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty.Builder maxValue(Number maxValue) - Parameters:
maxValue
- The maximum answer value of the range option. This parameter is required.- Returns:
this
-
minValue
@Stability(Stable) public CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty.Builder minValue(Number minValue) - Parameters:
minValue
- The minimum answer value of the range option. This parameter is required.- Returns:
this
-
automaticFail
@Stability(Stable) public CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty.Builder automaticFail(Boolean automaticFail) - 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 CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty.Builder automaticFail(IResolvable automaticFail) - 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
-
score
@Stability(Stable) public CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty.Builder score(Number score) Sets the value ofCfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty.getScore()
- Parameters:
score
- The score assigned to answer values within the range option. Minimum : 0Maximum : 10
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty>
- Returns:
- a new instance of
CfnEvaluationForm.EvaluationFormNumericQuestionOptionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-