Class StageProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.StageProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StageProps>
- Enclosing interface:
StageProps
@Stability(Stable)
public static final class StageProps.Builder
extends Object
implements software.amazon.jsii.Builder<StageProps>
A builder for
StageProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofStageProps.getActions()beforeEntry(Conditions beforeEntry) Sets the value ofStageProps.getBeforeEntry()build()Builds the configured instance.onFailure(FailureConditions onFailure) Sets the value ofStageProps.getOnFailure()onSuccess(Conditions onSuccess) Sets the value ofStageProps.getOnSuccess()Sets the value ofStageProps.getStageName()transitionDisabledReason(String transitionDisabledReason) Sets the value ofStageProps.getTransitionDisabledReason()transitionToEnabled(Boolean transitionToEnabled) Sets the value ofStageProps.getTransitionToEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stageName
Sets the value ofStageProps.getStageName()- Parameters:
stageName- The physical, human-readable name to assign to this Pipeline Stage. This parameter is required.- Returns:
this
-
actions
Sets the value ofStageProps.getActions()- Parameters:
actions- The list of Actions to create this Stage with. You can always add more Actions later by callingIStage#addAction.- Returns:
this
-
beforeEntry
Sets the value ofStageProps.getBeforeEntry()- Parameters:
beforeEntry- The method to use when a stage allows entry.- Returns:
this
-
onFailure
Sets the value ofStageProps.getOnFailure()- Parameters:
onFailure- The method to use when a stage has not completed successfully.- Returns:
this
-
onSuccess
Sets the value ofStageProps.getOnSuccess()- Parameters:
onSuccess- The method to use when a stage has succeeded.- Returns:
this
-
transitionDisabledReason
@Stability(Stable) public StageProps.Builder transitionDisabledReason(String transitionDisabledReason) Sets the value ofStageProps.getTransitionDisabledReason()- Parameters:
transitionDisabledReason- The reason for disabling transition to this stage. Only applicable iftransitionToEnabledis set tofalse.- Returns:
this
-
transitionToEnabled
Sets the value ofStageProps.getTransitionToEnabled()- Parameters:
transitionToEnabled- Whether to enable transition to this stage.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StageProps>- Returns:
- a new instance of
StageProps - Throws:
NullPointerException- if any required attribute was not provided
-