Package io.github.cdklabs.projen
Class DevEnvironmentOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.DevEnvironmentOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DevEnvironmentOptions>
- Enclosing interface:
- DevEnvironmentOptions
@Stability(Experimental) public static final class DevEnvironmentOptions.Builder extends Object implements software.amazon.jsii.Builder<DevEnvironmentOptions>
A builder forDevEnvironmentOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DevEnvironmentOptionsbuild()Builds the configured instance.DevEnvironmentOptions.BuilderdockerImage(DevEnvironmentDockerImage dockerImage)Sets the value ofDevEnvironmentOptions.getDockerImage()DevEnvironmentOptions.Builderports(List<String> ports)Sets the value ofDevEnvironmentOptions.getPorts()DevEnvironmentOptions.Buildertasks(List<? extends Task> tasks)Sets the value ofDevEnvironmentOptions.getTasks()DevEnvironmentOptions.BuildervscodeExtensions(List<String> vscodeExtensions)Sets the value ofDevEnvironmentOptions.getVscodeExtensions()
-
-
-
Method Detail
-
dockerImage
@Stability(Experimental) public DevEnvironmentOptions.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 DevEnvironmentOptions.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 DevEnvironmentOptions.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 DevEnvironmentOptions.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 DevEnvironmentOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DevEnvironmentOptions>- Returns:
- a new instance of
DevEnvironmentOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-