Package io.github.cdklabs.projen.github
Class GithubWorkflowOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.GithubWorkflowOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GithubWorkflowOptions>
- Enclosing interface:
- GithubWorkflowOptions
@Stability(Experimental) public static final class GithubWorkflowOptions.Builder extends Object implements software.amazon.jsii.Builder<GithubWorkflowOptions>
A builder forGithubWorkflowOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GithubWorkflowOptionsbuild()Builds the configured instance.GithubWorkflowOptions.Builderconcurrency(String concurrency)Sets the value ofGithubWorkflowOptions.getConcurrency()GithubWorkflowOptions.Builderforce(Boolean force)Sets the value ofGithubWorkflowOptions.getForce()
-
-
-
Method Detail
-
concurrency
@Stability(Experimental) public GithubWorkflowOptions.Builder concurrency(String concurrency)
Sets the value ofGithubWorkflowOptions.getConcurrency()- Parameters:
concurrency- Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. Currently in beta.- Returns:
this
-
force
@Stability(Experimental) public GithubWorkflowOptions.Builder force(Boolean force)
Sets the value ofGithubWorkflowOptions.getForce()- Parameters:
force- Force the creation of the workflow even ifworkflowsis disabled inGitHub.- Returns:
this
-
build
@Stability(Experimental) public GithubWorkflowOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GithubWorkflowOptions>- Returns:
- a new instance of
GithubWorkflowOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-