Package io.github.cdklabs.projen
Class GitpodOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.GitpodOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitpodOptions>
- Enclosing interface:
- GitpodOptions
@Stability(Experimental) public static final class GitpodOptions.Builder extends Object implements software.amazon.jsii.Builder<GitpodOptions>
A builder forGitpodOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitpodOptionsbuild()Builds the configured instance.GitpodOptions.BuilderdockerImage(DevEnvironmentDockerImage dockerImage)Sets the value ofDevEnvironmentOptions.getDockerImage()GitpodOptions.Builderports(List<String> ports)Sets the value ofDevEnvironmentOptions.getPorts()GitpodOptions.Builderprebuilds(GitpodPrebuilds prebuilds)Sets the value ofGitpodOptions.getPrebuilds()GitpodOptions.Buildertasks(List<? extends Task> tasks)Sets the value ofDevEnvironmentOptions.getTasks()GitpodOptions.BuildervscodeExtensions(List<String> vscodeExtensions)Sets the value ofDevEnvironmentOptions.getVscodeExtensions()
-
-
-
Method Detail
-
prebuilds
@Stability(Experimental) public GitpodOptions.Builder prebuilds(GitpodPrebuilds prebuilds)
Sets the value ofGitpodOptions.getPrebuilds()- Parameters:
prebuilds- Optional Gitpod's Github App integration for prebuilds If this is not set and Gitpod's Github App is installed, then Gitpod will apply these defaults: https://www.gitpod.io/docs/prebuilds/#configure-the-github-app.- Returns:
this
-
dockerImage
@Stability(Experimental) public GitpodOptions.Builder dockerImage(DevEnvironmentDockerImage dockerImage)
Sets the value ofDevEnvironmentOptions.getDockerImage()- Parameters:
dockerImage- A Docker image or Dockerfile for the container.- Returns:
this
-
ports
@Stability(Experimental) public GitpodOptions.Builder ports(List<String> ports)
Sets the value ofDevEnvironmentOptions.getPorts()- Parameters:
ports- An array of ports that should be exposed from the container.- Returns:
this
-
tasks
@Stability(Experimental) public GitpodOptions.Builder tasks(List<? extends Task> tasks)
Sets the value ofDevEnvironmentOptions.getTasks()- Parameters:
tasks- An array of tasks that should be run when the container starts.- Returns:
this
-
vscodeExtensions
@Stability(Experimental) public GitpodOptions.Builder vscodeExtensions(List<String> vscodeExtensions)
Sets the value ofDevEnvironmentOptions.getVscodeExtensions()- Parameters:
vscodeExtensions- An array of extension IDs that specify the extensions that should be installed inside the container when it is created.- Returns:
this
-
build
@Stability(Experimental) public GitpodOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GitpodOptions>- Returns:
- a new instance of
GitpodOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-