Package io.github.cdklabs.projen.vscode
Class DevContainerOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.vscode.DevContainerOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DevContainerOptions>
- Enclosing interface:
- DevContainerOptions
@Stability(Experimental) public static final class DevContainerOptions.Builder extends Object implements software.amazon.jsii.Builder<DevContainerOptions>
A builder forDevContainerOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DevContainerOptionsbuild()Builds the configured instance.DevContainerOptions.BuilderdockerImage(DevEnvironmentDockerImage dockerImage)Sets the value ofDevEnvironmentOptions.getDockerImage()DevContainerOptions.Builderfeatures(List<? extends DevContainerFeature> features)Sets the value ofDevContainerOptions.getFeatures()DevContainerOptions.Builderports(List<String> ports)Sets the value ofDevEnvironmentOptions.getPorts()DevContainerOptions.Buildertasks(List<? extends Task> tasks)Sets the value ofDevEnvironmentOptions.getTasks()DevContainerOptions.BuildervscodeExtensions(List<String> vscodeExtensions)Sets the value ofDevEnvironmentOptions.getVscodeExtensions()
-
-
-
Method Detail
-
features
@Stability(Experimental) public DevContainerOptions.Builder features(List<? extends DevContainerFeature> features)
Sets the value ofDevContainerOptions.getFeatures()- Parameters:
features- An array of VSCode features that specify the features that should be installed inside the container when it is created.- Returns:
this
-
dockerImage
@Stability(Experimental) public DevContainerOptions.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 DevContainerOptions.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 DevContainerOptions.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 DevContainerOptions.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 DevContainerOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DevContainerOptions>- Returns:
- a new instance of
DevContainerOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-