public static final class CodeImageConfig.Builder
extends java.lang.Object
CodeImageConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CodeImageConfig |
build()
Builds the configured instance.
|
CodeImageConfig.Builder |
cmd(java.util.List<java.lang.String> cmd)
Sets the value of
CodeImageConfig.getCmd() |
CodeImageConfig.Builder |
entrypoint(java.util.List<java.lang.String> entrypoint)
Sets the value of
CodeImageConfig.getEntrypoint() |
CodeImageConfig.Builder |
imageUri(java.lang.String imageUri)
Sets the value of
CodeImageConfig.getImageUri() |
CodeImageConfig.Builder |
workingDirectory(java.lang.String workingDirectory)
Sets the value of
CodeImageConfig.getWorkingDirectory() |
public CodeImageConfig.Builder imageUri(java.lang.String imageUri)
CodeImageConfig.getImageUri()
imageUri
- URI to the Docker image. This parameter is required.this
public CodeImageConfig.Builder cmd(java.util.List<java.lang.String> cmd)
CodeImageConfig.getCmd()
cmd
- Specify or override the CMD on the specified Docker image or Dockerfile.
This needs to be in the 'exec form', viz., [ 'executable', 'param1', 'param2' ]
.this
public CodeImageConfig.Builder entrypoint(java.util.List<java.lang.String> entrypoint)
CodeImageConfig.getEntrypoint()
entrypoint
- Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.
An ENTRYPOINT allows you to configure a container that will run as an executable.
This needs to be in the 'exec form', viz., [ 'executable', 'param1', 'param2' ]
.this
public CodeImageConfig.Builder workingDirectory(java.lang.String workingDirectory)
CodeImageConfig.getWorkingDirectory()
workingDirectory
- Specify or override the WORKDIR on the specified Docker image or Dockerfile.
A WORKDIR allows you to configure the working directory the container will use.this
public CodeImageConfig build()
CodeImageConfig
java.lang.NullPointerException
- if any required attribute was not provided