Class FailureConditions.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.FailureConditions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FailureConditions>
- Enclosing interface:
FailureConditions
@Stability(Stable)
public static final class FailureConditions.Builder
extends Object
implements software.amazon.jsii.Builder<FailureConditions>
A builder for
FailureConditions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.conditions(List<? extends Condition> conditions) Sets the value ofConditions.getConditions()Sets the value ofFailureConditions.getResult()Sets the value ofFailureConditions.getRetryMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
result
Sets the value ofFailureConditions.getResult()- Parameters:
result- The specified result for when the failure conditions are met, such as rolling back the stage.- Returns:
this
-
retryMode
Sets the value ofFailureConditions.getRetryMode()- Parameters:
retryMode- The method that you want to configure for automatic stage retry on stage failure.- Returns:
this
-
conditions
@Stability(Stable) public FailureConditions.Builder conditions(List<? extends Condition> conditions) Sets the value ofConditions.getConditions()- Parameters:
conditions- The conditions that are configured as entry conditions, making check to succeed the stage, or fail the stage.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FailureConditions>- Returns:
- a new instance of
FailureConditions - Throws:
NullPointerException- if any required attribute was not provided
-