Interface Condition.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Condition.Builder,Condition>,SdkBuilder<Condition.Builder,Condition>,SdkPojo
- Enclosing class:
- Condition
public static interface Condition.Builder extends SdkPojo, CopyableBuilder<Condition.Builder,Condition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Condition.Builderresult(String result)The action to be done when the condition is met.Condition.Builderresult(Result result)The action to be done when the condition is met.Condition.Builderrules(Collection<RuleDeclaration> rules)The rules that make up the condition.Condition.Builderrules(Consumer<RuleDeclaration.Builder>... rules)The rules that make up the condition.Condition.Builderrules(RuleDeclaration... rules)The rules that make up the condition.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
result
Condition.Builder result(String result)
The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
-
result
Condition.Builder result(Result result)
The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
-
rules
Condition.Builder rules(Collection<RuleDeclaration> rules)
The rules that make up the condition.
- Parameters:
rules- The rules that make up the condition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
Condition.Builder rules(RuleDeclaration... rules)
The rules that make up the condition.
- Parameters:
rules- The rules that make up the condition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
Condition.Builder rules(Consumer<RuleDeclaration.Builder>... rules)
The rules that make up the condition.
This is a convenience method that creates an instance of theRuleDeclaration.Builderavoiding the need to create one manually viaRuleDeclaration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rules(List.) - Parameters:
rules- a consumer that will call methods onRuleDeclaration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#rules(java.util.Collection)
-
-