Interface ConditionalSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ConditionalSpecification.Builder,
,ConditionalSpecification> SdkBuilder<ConditionalSpecification.Builder,
,ConditionalSpecification> SdkPojo
- Enclosing class:
ConditionalSpecification
-
Method Summary
Modifier and TypeMethodDescriptionDetermines whether a conditional branch is active.conditionalBranches
(Collection<ConditionalBranch> conditionalBranches) A list of conditional branches.conditionalBranches
(Consumer<ConditionalBranch.Builder>... conditionalBranches) A list of conditional branches.conditionalBranches
(ConditionalBranch... conditionalBranches) A list of conditional branches.default ConditionalSpecification.Builder
defaultBranch
(Consumer<DefaultConditionalBranch.Builder> defaultBranch) The conditional branch that should be followed when the conditions for other branches are not satisfied.defaultBranch
(DefaultConditionalBranch defaultBranch) The conditional branch that should be followed when the conditions for other branches are not satisfied.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
active
Determines whether a conditional branch is active. When
active
is false, the conditions are not evaluated.- Parameters:
active
- Determines whether a conditional branch is active. Whenactive
is false, the conditions are not evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditionalBranches
ConditionalSpecification.Builder conditionalBranches(Collection<ConditionalBranch> conditionalBranches) A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
- Parameters:
conditionalBranches
- A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditionalBranches
A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
- Parameters:
conditionalBranches
- A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditionalBranches
ConditionalSpecification.Builder conditionalBranches(Consumer<ConditionalBranch.Builder>... conditionalBranches) A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
This is a convenience method that creates an instance of theConditionalBranch.Builder
avoiding the need to create one manually viaConditionalBranch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconditionalBranches(List<ConditionalBranch>)
.- Parameters:
conditionalBranches
- a consumer that will call methods onConditionalBranch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultBranch
The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.
- Parameters:
defaultBranch
- The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultBranch
default ConditionalSpecification.Builder defaultBranch(Consumer<DefaultConditionalBranch.Builder> defaultBranch) The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.
This is a convenience method that creates an instance of theDefaultConditionalBranch.Builder
avoiding the need to create one manually viaDefaultConditionalBranch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultBranch(DefaultConditionalBranch)
.- Parameters:
defaultBranch
- a consumer that will call methods onDefaultConditionalBranch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-