Interface ConditionalSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ConditionalSpecification.Builder,ConditionalSpecification>,SdkBuilder<ConditionalSpecification.Builder,ConditionalSpecification>,SdkPojo
- Enclosing class:
- ConditionalSpecification
public static interface ConditionalSpecification.Builder extends SdkPojo, CopyableBuilder<ConditionalSpecification.Builder,ConditionalSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ConditionalSpecification.Builderactive(Boolean active)Determines whether a conditional branch is active.ConditionalSpecification.BuilderconditionalBranches(Collection<ConditionalBranch> conditionalBranches)A list of conditional branches.ConditionalSpecification.BuilderconditionalBranches(Consumer<ConditionalBranch.Builder>... conditionalBranches)A list of conditional branches.ConditionalSpecification.BuilderconditionalBranches(ConditionalBranch... conditionalBranches)A list of conditional branches.default ConditionalSpecification.BuilderdefaultBranch(Consumer<DefaultConditionalBranch.Builder> defaultBranch)The conditional branch that should be followed when the conditions for other branches are not satisfied.ConditionalSpecification.BuilderdefaultBranch(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 Detail
-
active
ConditionalSpecification.Builder active(Boolean active)
Determines whether a conditional branch is active. When
activeis false, the conditions are not evaluated.- Parameters:
active- Determines whether a conditional branch is active. Whenactiveis 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
ConditionalSpecification.Builder conditionalBranches(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
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.Builderavoiding the need to create one manually viaConditionalBranch.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#conditionalBranches(List.) - 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:
#conditionalBranches(java.util.Collection)
-
defaultBranch
ConditionalSpecification.Builder defaultBranch(DefaultConditionalBranch 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.Builderavoiding the need to create one manually viaDefaultConditionalBranch.builder().When the
Consumercompletes,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:
defaultBranch(DefaultConditionalBranch)
-
-