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
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofStageProps.getActions()
build()
Builds the configured instance.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(software.amazon.awscdk.services.codepipeline.IAction)
.- 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 iftransitionToEnabled
is 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:
build
in interfacesoftware.amazon.jsii.Builder<StageProps>
- Returns:
- a new instance of
StageProps
- Throws:
NullPointerException
- if any required attribute was not provided
-