Class AddGitHubStageOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.cdkpipelines.github.AddGitHubStageOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddGitHubStageOptions>
- Enclosing interface:
- AddGitHubStageOptions
@Stability(Stable) public static final class AddGitHubStageOptions.Builder extends Object implements software.amazon.jsii.Builder<AddGitHubStageOptions>
A builder forAddGitHubStageOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddGitHubStageOptionsbuild()Builds the configured instance.AddGitHubStageOptions.BuildergitHubEnvironment(String gitHubEnvironment)Sets the value ofAddGitHubStageOptions.getGitHubEnvironment()AddGitHubStageOptions.Builderpost(List<? extends software.amazon.awscdk.pipelines.Step> post)Sets the value ofAddStageOpts.getPost()AddGitHubStageOptions.Builderpre(List<? extends software.amazon.awscdk.pipelines.Step> pre)Sets the value ofAddStageOpts.getPre()AddGitHubStageOptions.BuilderstackCapabilities(List<? extends StackCapabilities> stackCapabilities)Sets the value ofAddGitHubStageOptions.getStackCapabilities()AddGitHubStageOptions.BuilderstackSteps(List<? extends software.amazon.awscdk.pipelines.StackSteps> stackSteps)Sets the value ofAddStageOpts.getStackSteps()
-
-
-
Method Detail
-
gitHubEnvironment
@Stability(Stable) public AddGitHubStageOptions.Builder gitHubEnvironment(String gitHubEnvironment)
Sets the value ofAddGitHubStageOptions.getGitHubEnvironment()- Parameters:
gitHubEnvironment- Run the stage in a specific GitHub Environment. If specified, any protection rules configured for the environment must pass before the job is set to a runner. For example, if the environment has a manual approval rule configured, then the workflow will wait for the approval before sending the job to the runner.Running a workflow that references an environment that does not exist will create an environment with the referenced name.
- Returns:
this
-
stackCapabilities
@Stability(Stable) public AddGitHubStageOptions.Builder stackCapabilities(List<? extends StackCapabilities> stackCapabilities)
Sets the value ofAddGitHubStageOptions.getStackCapabilities()- Parameters:
stackCapabilities- In some cases, you must explicitly acknowledge that your CloudFormation stack template contains certain capabilities in order for CloudFormation to create the stack. If insufficiently specified, CloudFormation returns anInsufficientCapabilitieserror.- Returns:
this
-
post
@Stability(Stable) public AddGitHubStageOptions.Builder post(List<? extends software.amazon.awscdk.pipelines.Step> post)
Sets the value ofAddStageOpts.getPost()- Parameters:
post- Additional steps to run after all of the stacks in the stage.- Returns:
this
-
pre
@Stability(Stable) public AddGitHubStageOptions.Builder pre(List<? extends software.amazon.awscdk.pipelines.Step> pre)
Sets the value ofAddStageOpts.getPre()- Parameters:
pre- Additional steps to run before any of the stacks in the stage.- Returns:
this
-
stackSteps
@Stability(Stable) public AddGitHubStageOptions.Builder stackSteps(List<? extends software.amazon.awscdk.pipelines.StackSteps> stackSteps)
Sets the value ofAddStageOpts.getStackSteps()- Parameters:
stackSteps- Instructions for stack level steps.- Returns:
this
-
build
@Stability(Stable) public AddGitHubStageOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AddGitHubStageOptions>- Returns:
- a new instance of
AddGitHubStageOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-