public static interface ConditionalSpecification.Builder extends SdkPojo, CopyableBuilder<ConditionalSpecification.Builder,ConditionalSpecification>
| Modifier and Type | Method and Description |
|---|---|
ConditionalSpecification.Builder |
active(Boolean active)
Determines whether a conditional branch is active.
|
ConditionalSpecification.Builder |
conditionalBranches(Collection<ConditionalBranch> conditionalBranches)
A list of conditional branches.
|
ConditionalSpecification.Builder |
conditionalBranches(ConditionalBranch... conditionalBranches)
A list of conditional branches.
|
ConditionalSpecification.Builder |
conditionalBranches(Consumer<ConditionalBranch.Builder>... 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.
|
ConditionalSpecification.Builder |
defaultBranch(DefaultConditionalBranch defaultBranch)
The conditional branch that should be followed when the conditions for other branches are not satisfied.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildConditionalSpecification.Builder active(Boolean active)
Determines whether a conditional branch is active. When active is false, the conditions are not
evaluated.
active - Determines whether a conditional branch is active. When active is false, the conditions
are not evaluated.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.
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.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.
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.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 via ConditionalBranch.builder()
.
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #conditionalBranches(List.
conditionalBranches - a consumer that will call methods on
ConditionalBranch.Builder#conditionalBranches(java.util.Collection) 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.
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.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 via DefaultConditionalBranch.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to defaultBranch(DefaultConditionalBranch).
defaultBranch - a consumer that will call methods on DefaultConditionalBranch.BuilderdefaultBranch(DefaultConditionalBranch)Copyright © 2023. All rights reserved.