@Stability(value=Experimental) public static final class DockerRunOptions.Builder extends Object implements software.amazon.jsii.Builder<DockerRunOptions>
DockerRunOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DockerRunOptions |
build()
Builds the configured instance.
|
DockerRunOptions.Builder |
command(List<String> command)
Sets the value of
DockerRunOptions.getCommand() |
DockerRunOptions.Builder |
entrypoint(List<String> entrypoint)
Sets the value of
DockerRunOptions.getEntrypoint() |
DockerRunOptions.Builder |
environment(Map<String,String> environment)
Sets the value of
DockerRunOptions.getEnvironment() |
DockerRunOptions.Builder |
user(String user)
Sets the value of
DockerRunOptions.getUser() |
DockerRunOptions.Builder |
volumes(List<? extends DockerVolume> volumes)
Sets the value of
DockerRunOptions.getVolumes() |
DockerRunOptions.Builder |
workingDirectory(String workingDirectory)
Sets the value of
DockerRunOptions.getWorkingDirectory() |
@Stability(value=Experimental) public DockerRunOptions.Builder command(List<String> command)
DockerRunOptions.getCommand()command - The command to run in the container.this@Stability(value=Experimental) public DockerRunOptions.Builder entrypoint(List<String> entrypoint)
DockerRunOptions.getEntrypoint()entrypoint - The entrypoint to run in the container.this@Stability(value=Experimental) public DockerRunOptions.Builder environment(Map<String,String> environment)
DockerRunOptions.getEnvironment()environment - The environment variables to pass to the container.this@Stability(value=Experimental) public DockerRunOptions.Builder user(String user)
DockerRunOptions.getUser()user - The user to use when running the container.this@Stability(value=Experimental) public DockerRunOptions.Builder volumes(List<? extends DockerVolume> volumes)
DockerRunOptions.getVolumes()volumes - Docker volumes to mount.this@Stability(value=Experimental) public DockerRunOptions.Builder workingDirectory(String workingDirectory)
DockerRunOptions.getWorkingDirectory()workingDirectory - Working directory inside the container.this@Stability(value=Experimental) public DockerRunOptions build()
build in interface software.amazon.jsii.Builder<DockerRunOptions>DockerRunOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.