public static final class ContainerOverrides.Builder
extends java.lang.Object
ContainerOverrides
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ContainerOverrides |
build()
Builds the configured instance.
|
ContainerOverrides.Builder |
command(java.util.List<java.lang.String> command)
Sets the value of
ContainerOverrides.getCommand() |
ContainerOverrides.Builder |
environment(java.util.Map<java.lang.String,java.lang.String> environment)
Sets the value of
ContainerOverrides.getEnvironment() |
ContainerOverrides.Builder |
gpuCount(java.lang.Number gpuCount)
Sets the value of
ContainerOverrides.getGpuCount() |
ContainerOverrides.Builder |
instanceType(InstanceType instanceType)
Sets the value of
ContainerOverrides.getInstanceType() |
ContainerOverrides.Builder |
memory(java.lang.Number memory)
Sets the value of
ContainerOverrides.getMemory() |
ContainerOverrides.Builder |
vcpus(java.lang.Number vcpus)
Sets the value of
ContainerOverrides.getVcpus() |
public ContainerOverrides.Builder command(java.util.List<java.lang.String> command)
ContainerOverrides.getCommand()
command
- The command to send to the container that overrides the default command from the Docker image or the job definition.this
public ContainerOverrides.Builder environment(java.util.Map<java.lang.String,java.lang.String> environment)
ContainerOverrides.getEnvironment()
environment
- The environment variables to send to the container.
You can add new environment variables, which are added to the container
at launch, or you can override the existing environment variables from
the Docker image or the job definition.this
public ContainerOverrides.Builder gpuCount(java.lang.Number gpuCount)
ContainerOverrides.getGpuCount()
gpuCount
- The number of physical GPUs to reserve for the container.
The number of GPUs reserved for all containers in a job
should not exceed the number of available GPUs on the compute
resource that the job is launched on.this
public ContainerOverrides.Builder instanceType(InstanceType instanceType)
ContainerOverrides.getInstanceType()
instanceType
- The instance type to use for a multi-node parallel job.
This parameter is not valid for single-node container jobs.this
public ContainerOverrides.Builder memory(java.lang.Number memory)
ContainerOverrides.getMemory()
memory
- The number of MiB of memory reserved for the job.
This value overrides the value set in the job definition.this
public ContainerOverrides.Builder vcpus(java.lang.Number vcpus)
ContainerOverrides.getVcpus()
vcpus
- The number of vCPUs to reserve for the container.
This value overrides the value set in the job definition.this
public ContainerOverrides build()
ContainerOverrides
java.lang.NullPointerException
- if any required attribute was not provided