Class StageOptions.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.StageOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StageOptions>
- Enclosing interface:
StageOptions
@Stability(Stable)
public static final class StageOptions.Builder
extends Object
implements software.amazon.jsii.Builder<StageOptions>
A builder for
StageOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofStageProps.getActions()
build()
Builds the configured instance.placement
(StagePlacement placement) Sets the value ofStageOptions.getPlacement()
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
-
placement
Sets the value ofStageOptions.getPlacement()
- Parameters:
placement
- the value to be set.- Returns:
this
-
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 StageOptions.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<StageOptions>
- Returns:
- a new instance of
StageOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-