@Stability(value=Experimental) public static final class BundlingOptions.Builder extends Object implements software.amazon.jsii.Builder<BundlingOptions>
BundlingOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
BundlingOptions |
build()
Builds the configured instance.
|
BundlingOptions.Builder |
command(List<String> command)
Sets the value of
BundlingOptions.getCommand() |
BundlingOptions.Builder |
environment(Map<String,String> environment)
Sets the value of
BundlingOptions.getEnvironment() |
BundlingOptions.Builder |
image(BundlingDockerImage image)
Sets the value of
BundlingOptions.getImage() |
BundlingOptions.Builder |
local(ILocalBundling local)
Sets the value of
BundlingOptions.getLocal() |
BundlingOptions.Builder |
user(String user)
Sets the value of
BundlingOptions.getUser() |
BundlingOptions.Builder |
volumes(List<? extends DockerVolume> volumes)
Sets the value of
BundlingOptions.getVolumes() |
BundlingOptions.Builder |
workingDirectory(String workingDirectory)
Sets the value of
BundlingOptions.getWorkingDirectory() |
@Stability(value=Experimental) public BundlingOptions.Builder image(BundlingDockerImage image)
BundlingOptions.getImage()image - The Docker image where the command will run. This parameter is required.this@Stability(value=Experimental) public BundlingOptions.Builder command(List<String> command)
BundlingOptions.getCommand()command - The command to run in the Docker container.this@Stability(value=Experimental) public BundlingOptions.Builder environment(Map<String,String> environment)
BundlingOptions.getEnvironment()environment - The environment variables to pass to the Docker container.this@Stability(value=Experimental) public BundlingOptions.Builder local(ILocalBundling local)
BundlingOptions.getLocal()local - Local bundling provider.
The provider implements a method tryBundle() which should return true
if local bundling was performed. If false is returned, docker bundling
will be done.this@Stability(value=Experimental) public BundlingOptions.Builder user(String user)
BundlingOptions.getUser()user - The user to use when running the Docker container.
user | user:group | uid | uid:gid | user:gid | uid:groupthis@Stability(value=Experimental) public BundlingOptions.Builder volumes(List<? extends DockerVolume> volumes)
BundlingOptions.getVolumes()volumes - Additional Docker volumes to mount.this@Stability(value=Experimental) public BundlingOptions.Builder workingDirectory(String workingDirectory)
BundlingOptions.getWorkingDirectory()workingDirectory - Working directory inside the Docker container.this@Stability(value=Experimental) public BundlingOptions build()
build in interface software.amazon.jsii.Builder<BundlingOptions>BundlingOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.