@Stability(value=Stable) 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 |
securityOpt(String securityOpt)
Sets the value of
DockerRunOptions.getSecurityOpt() |
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=Stable) public DockerRunOptions.Builder command(List<String> command)
DockerRunOptions.getCommand()
command
- The command to run in the container.this
@Stability(value=Stable) public DockerRunOptions.Builder entrypoint(List<String> entrypoint)
DockerRunOptions.getEntrypoint()
entrypoint
- The entrypoint to run in the container.this
@Stability(value=Stable) public DockerRunOptions.Builder environment(Map<String,String> environment)
DockerRunOptions.getEnvironment()
environment
- The environment variables to pass to the container.this
@Stability(value=Stable) public DockerRunOptions.Builder securityOpt(String securityOpt)
DockerRunOptions.getSecurityOpt()
securityOpt
- [Security configuration](https://docs.docker.com/engine/reference/run/#security-configuration) when running the docker container.this
@Stability(value=Stable) public DockerRunOptions.Builder user(String user)
DockerRunOptions.getUser()
user
- The user to use when running the container.this
@Stability(value=Stable) public DockerRunOptions.Builder volumes(List<? extends DockerVolume> volumes)
DockerRunOptions.getVolumes()
volumes
- Docker volumes to mount.this
@Stability(value=Stable) public DockerRunOptions.Builder workingDirectory(String workingDirectory)
DockerRunOptions.getWorkingDirectory()
workingDirectory
- Working directory inside the container.this
@Stability(value=Stable) public DockerRunOptions build()
build
in interface software.amazon.jsii.Builder<DockerRunOptions>
DockerRunOptions
NullPointerException
- if any required attribute was not providedCopyright © 2022. All rights reserved.