Package io.github.cdklabs.projen
Class GitpodTask.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.GitpodTask.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitpodTask>
- Enclosing interface:
- GitpodTask
@Stability(Experimental) public static final class GitpodTask.Builder extends Object implements software.amazon.jsii.Builder<GitpodTask>
A builder forGitpodTask
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitpodTask.Builderbefore(String before)Sets the value ofGitpodTask.getBefore()GitpodTaskbuild()Builds the configured instance.GitpodTask.Buildercommand(String command)Sets the value ofGitpodTask.getCommand()GitpodTask.Builderinit(String init)Sets the value ofGitpodTask.getInit()GitpodTask.Buildername(String name)Sets the value ofGitpodTask.getName()GitpodTask.BuilderopenIn(GitpodOpenIn openIn)Sets the value ofGitpodTask.getOpenIn()GitpodTask.BuilderopenMode(GitpodOpenMode openMode)Sets the value ofGitpodTask.getOpenMode()GitpodTask.Builderprebuild(String prebuild)Sets the value ofGitpodTask.getPrebuild()
-
-
-
Method Detail
-
command
@Stability(Experimental) public GitpodTask.Builder command(String command)
Sets the value ofGitpodTask.getCommand()- Parameters:
command- Required. This parameter is required. The shell command to run- Returns:
this
-
before
@Stability(Experimental) public GitpodTask.Builder before(String before)
Sets the value ofGitpodTask.getBefore()- Parameters:
before- In case you need to run something even before init, that is a requirement for both init and command, you can use the before property.- Returns:
this
-
init
@Stability(Experimental) public GitpodTask.Builder init(String init)
Sets the value ofGitpodTask.getInit()- Parameters:
init- The init property can be used to specify shell commands that should only be executed after a workspace was freshly cloned and needs to be initialized somehow. Such tasks are usually builds or downloading dependencies. Anything you only want to do once but not when you restart a workspace or start a snapshot.- Returns:
this
-
name
@Stability(Experimental) public GitpodTask.Builder name(String name)
Sets the value ofGitpodTask.getName()- Parameters:
name- A name for this task.- Returns:
this
-
openIn
@Stability(Experimental) public GitpodTask.Builder openIn(GitpodOpenIn openIn)
Sets the value ofGitpodTask.getOpenIn()- Parameters:
openIn- You can configure where in the IDE the terminal should be opened.- Returns:
this
-
openMode
@Stability(Experimental) public GitpodTask.Builder openMode(GitpodOpenMode openMode)
Sets the value ofGitpodTask.getOpenMode()- Parameters:
openMode- You can configure how the terminal should be opened relative to the previous task.- Returns:
this
-
prebuild
@Stability(Experimental) public GitpodTask.Builder prebuild(String prebuild)
Sets the value ofGitpodTask.getPrebuild()- Parameters:
prebuild- The optional prebuild command will be executed during prebuilds. It is meant to run additional long running processes that could be useful, e.g. running test suites.- Returns:
this
-
build
@Stability(Experimental) public GitpodTask build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GitpodTask>- Returns:
- a new instance of
GitpodTask - Throws:
NullPointerException- if any required attribute was not provided
-
-