Class CfnPipeline.StageDeclarationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.CfnPipeline.StageDeclarationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipeline.StageDeclarationProperty>
- Enclosing interface:
CfnPipeline.StageDeclarationProperty
@Stability(Stable)
public static final class CfnPipeline.StageDeclarationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipeline.StageDeclarationProperty>
A builder for
CfnPipeline.StageDeclarationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPipeline.StageDeclarationProperty.getActions()actions(IResolvable actions) Sets the value ofCfnPipeline.StageDeclarationProperty.getActions()beforeEntry(IResolvable beforeEntry) Sets the value ofCfnPipeline.StageDeclarationProperty.getBeforeEntry()beforeEntry(CfnPipeline.BeforeEntryConditionsProperty beforeEntry) Sets the value ofCfnPipeline.StageDeclarationProperty.getBeforeEntry()Sets the value ofCfnPipeline.StageDeclarationProperty.getBlockers()blockers(IResolvable blockers) Sets the value ofCfnPipeline.StageDeclarationProperty.getBlockers()build()Builds the configured instance.Sets the value ofCfnPipeline.StageDeclarationProperty.getName()onFailure(IResolvable onFailure) Sets the value ofCfnPipeline.StageDeclarationProperty.getOnFailure()onFailure(CfnPipeline.FailureConditionsProperty onFailure) Sets the value ofCfnPipeline.StageDeclarationProperty.getOnFailure()onSuccess(IResolvable onSuccess) Sets the value ofCfnPipeline.StageDeclarationProperty.getOnSuccess()onSuccess(CfnPipeline.SuccessConditionsProperty onSuccess) Sets the value ofCfnPipeline.StageDeclarationProperty.getOnSuccess()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnPipeline.StageDeclarationProperty.getActions()- Parameters:
actions- The actions included in a stage. This parameter is required.- Returns:
this
-
actions
@Stability(Stable) public CfnPipeline.StageDeclarationProperty.Builder actions(List<? extends Object> actions) Sets the value ofCfnPipeline.StageDeclarationProperty.getActions()- Parameters:
actions- The actions included in a stage. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnPipeline.StageDeclarationProperty.getName()- Parameters:
name- The name of the stage. This parameter is required.- Returns:
this
-
beforeEntry
@Stability(Stable) public CfnPipeline.StageDeclarationProperty.Builder beforeEntry(IResolvable beforeEntry) Sets the value ofCfnPipeline.StageDeclarationProperty.getBeforeEntry()- Parameters:
beforeEntry- The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.- Returns:
this
-
beforeEntry
@Stability(Stable) public CfnPipeline.StageDeclarationProperty.Builder beforeEntry(CfnPipeline.BeforeEntryConditionsProperty beforeEntry) Sets the value ofCfnPipeline.StageDeclarationProperty.getBeforeEntry()- Parameters:
beforeEntry- The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.- Returns:
this
-
blockers
@Stability(Stable) public CfnPipeline.StageDeclarationProperty.Builder blockers(IResolvable blockers) Sets the value ofCfnPipeline.StageDeclarationProperty.getBlockers()- Parameters:
blockers- Reserved for future use.- Returns:
this
-
blockers
@Stability(Stable) public CfnPipeline.StageDeclarationProperty.Builder blockers(List<? extends Object> blockers) Sets the value ofCfnPipeline.StageDeclarationProperty.getBlockers()- Parameters:
blockers- Reserved for future use.- Returns:
this
-
onFailure
@Stability(Stable) public CfnPipeline.StageDeclarationProperty.Builder onFailure(IResolvable onFailure) Sets the value ofCfnPipeline.StageDeclarationProperty.getOnFailure()- Parameters:
onFailure- The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.- Returns:
this
-
onFailure
@Stability(Stable) public CfnPipeline.StageDeclarationProperty.Builder onFailure(CfnPipeline.FailureConditionsProperty onFailure) Sets the value ofCfnPipeline.StageDeclarationProperty.getOnFailure()- Parameters:
onFailure- The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.- Returns:
this
-
onSuccess
@Stability(Stable) public CfnPipeline.StageDeclarationProperty.Builder onSuccess(IResolvable onSuccess) Sets the value ofCfnPipeline.StageDeclarationProperty.getOnSuccess()- Parameters:
onSuccess- The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.- Returns:
this
-
onSuccess
@Stability(Stable) public CfnPipeline.StageDeclarationProperty.Builder onSuccess(CfnPipeline.SuccessConditionsProperty onSuccess) Sets the value ofCfnPipeline.StageDeclarationProperty.getOnSuccess()- Parameters:
onSuccess- The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipeline.StageDeclarationProperty>- Returns:
- a new instance of
CfnPipeline.StageDeclarationProperty - Throws:
NullPointerException- if any required attribute was not provided
-