Interface EvaluationFormSingleSelectQuestionOption.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EvaluationFormSingleSelectQuestionOption.Builder,,EvaluationFormSingleSelectQuestionOption> SdkBuilder<EvaluationFormSingleSelectQuestionOption.Builder,,EvaluationFormSingleSelectQuestionOption> SdkPojo
- Enclosing class:
EvaluationFormSingleSelectQuestionOption
@Mutable
@NotThreadSafe
public static interface EvaluationFormSingleSelectQuestionOption.Builder
extends SdkPojo, CopyableBuilder<EvaluationFormSingleSelectQuestionOption.Builder,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.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:
-