Class CfnPipeline.StageTransitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.CfnPipeline.StageTransitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipeline.StageTransitionProperty>
- Enclosing interface:
CfnPipeline.StageTransitionProperty
@Stability(Stable)
public static final class CfnPipeline.StageTransitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipeline.StageTransitionProperty>
A builder for
CfnPipeline.StageTransitionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPipeline.StageTransitionProperty.getReason()
Sets the value ofCfnPipeline.StageTransitionProperty.getStageName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
reason
Sets the value ofCfnPipeline.StageTransitionProperty.getReason()
- Parameters:
reason
- The reason given to the user that a stage is disabled, such as waiting for manual approval or manual tests. This parameter is required. This message is displayed in the pipeline console UI.- Returns:
this
-
stageName
Sets the value ofCfnPipeline.StageTransitionProperty.getStageName()
- Parameters:
stageName
- The name of the stage where you want to disable the inbound or outbound transition of artifacts. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipeline.StageTransitionProperty>
- Returns:
- a new instance of
CfnPipeline.StageTransitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-