Interface SingleSelectQuestionAutomationRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SingleSelectQuestionAutomationRule.Builder,,SingleSelectQuestionAutomationRule> SdkBuilder<SingleSelectQuestionAutomationRule.Builder,,SingleSelectQuestionAutomationRule> SdkPojo
- Enclosing class:
SingleSelectQuestionAutomationRule
@Mutable
@NotThreadSafe
public static interface SingleSelectQuestionAutomationRule.Builder
extends SdkPojo, CopyableBuilder<SingleSelectQuestionAutomationRule.Builder,SingleSelectQuestionAutomationRule>
-
Method Summary
Modifier and TypeMethodDescriptionThe condition that must be satisfied for the answer option to be selected.condition(EvaluationFormItemEnablementCondition condition) The condition that must be satisfied for the answer option to be selected.optionRefId(String optionRefId) The identifier of the answer option to select when the condition is satisfied.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
-
condition
SingleSelectQuestionAutomationRule.Builder condition(EvaluationFormItemEnablementCondition condition) The condition that must be satisfied for the answer option to be selected. The condition uses the same sources, comparators, and operators as item enablement conditions.
- Parameters:
condition- The condition that must be satisfied for the answer option to be selected. The condition uses the same sources, comparators, and operators as item enablement conditions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
default SingleSelectQuestionAutomationRule.Builder condition(Consumer<EvaluationFormItemEnablementCondition.Builder> condition) The condition that must be satisfied for the answer option to be selected. The condition uses the same sources, comparators, and operators as item enablement conditions.
This is a convenience method that creates an instance of theEvaluationFormItemEnablementCondition.Builderavoiding the need to create one manually viaEvaluationFormItemEnablementCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocondition(EvaluationFormItemEnablementCondition).- Parameters:
condition- a consumer that will call methods onEvaluationFormItemEnablementCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
optionRefId
The identifier of the answer option to select when the condition is satisfied.
- Parameters:
optionRefId- The identifier of the answer option to select when the condition is satisfied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-