Interface EvaluationFormSingleSelectQuestionOption.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EvaluationFormSingleSelectQuestionOption.Builder,,EvaluationFormSingleSelectQuestionOption> SdkBuilder<EvaluationFormSingleSelectQuestionOption.Builder,,EvaluationFormSingleSelectQuestionOption> SdkPojo
- Enclosing class:
EvaluationFormSingleSelectQuestionOption
-
Method Summary
Modifier and TypeMethodDescriptionautomaticFail(Boolean automaticFail) The flag to mark the option as automatic fail.automaticFailConfiguration(Consumer<AutomaticFailConfiguration.Builder> automaticFailConfiguration) Whether automatic fail is configured on a single select question.automaticFailConfiguration(AutomaticFailConfiguration automaticFailConfiguration) Whether automatic fail is configured on a single select question.pointsConfiguration(Consumer<QuestionOptionPointsConfiguration.Builder> pointsConfiguration) The points configuration for point-based scoring.pointsConfiguration(QuestionOptionPointsConfiguration pointsConfiguration) The points configuration for point-based scoring.The identifier of the answer option.The score assigned to the answer option.The title of the answer option.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
refId
The identifier of the answer option. An identifier must be unique within the question.
- Parameters:
refId- The identifier of the answer option. An identifier must be unique within the question.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
The title of the answer option.
- Parameters:
text- The title of the answer option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
score
The score assigned to the answer option.
- Parameters:
score- The score assigned to the answer option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
automaticFailConfiguration
EvaluationFormSingleSelectQuestionOption.Builder automaticFailConfiguration(AutomaticFailConfiguration automaticFailConfiguration) Whether automatic fail is configured on a single select question.
- Parameters:
automaticFailConfiguration- Whether automatic fail is configured on a single select question.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
automaticFailConfiguration
default EvaluationFormSingleSelectQuestionOption.Builder automaticFailConfiguration(Consumer<AutomaticFailConfiguration.Builder> automaticFailConfiguration) Whether automatic fail is configured on a single select question.
This is a convenience method that creates an instance of theAutomaticFailConfiguration.Builderavoiding the need to create one manually viaAutomaticFailConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toautomaticFailConfiguration(AutomaticFailConfiguration).- Parameters:
automaticFailConfiguration- a consumer that will call methods onAutomaticFailConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pointsConfiguration
EvaluationFormSingleSelectQuestionOption.Builder pointsConfiguration(QuestionOptionPointsConfiguration pointsConfiguration) The points configuration for point-based scoring.
- Parameters:
pointsConfiguration- The points configuration for point-based scoring.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pointsConfiguration
default EvaluationFormSingleSelectQuestionOption.Builder pointsConfiguration(Consumer<QuestionOptionPointsConfiguration.Builder> pointsConfiguration) The points configuration for point-based scoring.
This is a convenience method that creates an instance of theQuestionOptionPointsConfiguration.Builderavoiding the need to create one manually viaQuestionOptionPointsConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topointsConfiguration(QuestionOptionPointsConfiguration).- Parameters:
pointsConfiguration- a consumer that will call methods onQuestionOptionPointsConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-