Package io.github.cdklabs.projen.build
Class AddPostBuildJobCommandsOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.build.AddPostBuildJobCommandsOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddPostBuildJobCommandsOptions>
- Enclosing interface:
- AddPostBuildJobCommandsOptions
@Stability(Experimental) public static final class AddPostBuildJobCommandsOptions.Builder extends Object implements software.amazon.jsii.Builder<AddPostBuildJobCommandsOptions>
A builder forAddPostBuildJobCommandsOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddPostBuildJobCommandsOptionsbuild()Builds the configured instance.AddPostBuildJobCommandsOptions.BuildercheckoutRepo(Boolean checkoutRepo)Sets the value ofAddPostBuildJobCommandsOptions.getCheckoutRepo()AddPostBuildJobCommandsOptions.BuilderinstallDeps(Boolean installDeps)Sets the value ofAddPostBuildJobCommandsOptions.getInstallDeps()AddPostBuildJobCommandsOptions.BuilderrunsOn(List<String> runsOn)Sets the value ofAddPostBuildJobCommandsOptions.getRunsOn()AddPostBuildJobCommandsOptions.BuilderrunsOnGroup(GroupRunnerOptions runsOnGroup)Sets the value ofAddPostBuildJobCommandsOptions.getRunsOnGroup()AddPostBuildJobCommandsOptions.Buildertools(Tools tools)Sets the value ofAddPostBuildJobCommandsOptions.getTools()
-
-
-
Method Detail
-
checkoutRepo
@Stability(Experimental) public AddPostBuildJobCommandsOptions.Builder checkoutRepo(Boolean checkoutRepo)
Sets the value ofAddPostBuildJobCommandsOptions.getCheckoutRepo()- Parameters:
checkoutRepo- Check out the repository at the pull request branch before commands are run.- Returns:
this
-
installDeps
@Stability(Experimental) public AddPostBuildJobCommandsOptions.Builder installDeps(Boolean installDeps)
Sets the value ofAddPostBuildJobCommandsOptions.getInstallDeps()- Parameters:
installDeps- Install project dependencies before running commands.checkoutRepomust also be set to true. Currently only supported forNodeProject.- Returns:
this
-
runsOn
@Stability(Experimental) public AddPostBuildJobCommandsOptions.Builder runsOn(List<String> runsOn)
Sets the value ofAddPostBuildJobCommandsOptions.getRunsOn()- Parameters:
runsOn- Github Runner selection labels.- Returns:
this
-
runsOnGroup
@Stability(Experimental) public AddPostBuildJobCommandsOptions.Builder runsOnGroup(GroupRunnerOptions runsOnGroup)
Sets the value ofAddPostBuildJobCommandsOptions.getRunsOnGroup()- Parameters:
runsOnGroup- Github Runner Group selection options.- Returns:
this
-
tools
@Stability(Experimental) public AddPostBuildJobCommandsOptions.Builder tools(Tools tools)
Sets the value ofAddPostBuildJobCommandsOptions.getTools()- Parameters:
tools- Tools that should be installed before the commands are run.- Returns:
this
-
build
@Stability(Experimental) public AddPostBuildJobCommandsOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AddPostBuildJobCommandsOptions>- Returns:
- a new instance of
AddPostBuildJobCommandsOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-