Package software.amazon.awscdk.pipelines
Class StageDeploymentProps.Builder
java.lang.Object
software.amazon.awscdk.pipelines.StageDeploymentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StageDeploymentProps>
- Enclosing interface:
StageDeploymentProps
@Stability(Stable)
public static final class StageDeploymentProps.Builder
extends Object
implements software.amazon.jsii.Builder<StageDeploymentProps>
A builder for
StageDeploymentProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofStageDeploymentProps.getPost()
Sets the value ofStageDeploymentProps.getPre()
stackSteps
(List<? extends StackSteps> stackSteps) Sets the value ofStageDeploymentProps.getStackSteps()
Sets the value ofStageDeploymentProps.getStageName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
post
Sets the value ofStageDeploymentProps.getPost()
- Parameters:
post
- Additional steps to run after all of the stacks in the stage.- Returns:
this
-
pre
Sets the value ofStageDeploymentProps.getPre()
- Parameters:
pre
- Additional steps to run before any of the stacks in the stage.- Returns:
this
-
stackSteps
@Stability(Stable) public StageDeploymentProps.Builder stackSteps(List<? extends StackSteps> stackSteps) Sets the value ofStageDeploymentProps.getStackSteps()
- Parameters:
stackSteps
- Instructions for additional steps that are run at the stack level.- Returns:
this
-
stageName
Sets the value ofStageDeploymentProps.getStageName()
- Parameters:
stageName
- Stage name to use in the pipeline.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StageDeploymentProps>
- Returns:
- a new instance of
StageDeploymentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-