public static final class BatchContainerOverrides.Builder
extends java.lang.Object
BatchContainerOverrides
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BatchContainerOverrides |
build()
Builds the configured instance.
|
BatchContainerOverrides.Builder |
command(java.util.List<java.lang.String> command)
Sets the value of
BatchContainerOverrides.getCommand() |
BatchContainerOverrides.Builder |
environment(java.util.Map<java.lang.String,java.lang.String> environment)
Sets the value of
BatchContainerOverrides.getEnvironment() |
BatchContainerOverrides.Builder |
gpuCount(java.lang.Number gpuCount)
Sets the value of
BatchContainerOverrides.getGpuCount() |
BatchContainerOverrides.Builder |
instanceType(InstanceType instanceType)
Sets the value of
BatchContainerOverrides.getInstanceType() |
BatchContainerOverrides.Builder |
memory(Size memory)
Sets the value of
BatchContainerOverrides.getMemory() |
BatchContainerOverrides.Builder |
vcpus(java.lang.Number vcpus)
Sets the value of
BatchContainerOverrides.getVcpus() |
public BatchContainerOverrides.Builder command(java.util.List<java.lang.String> command)
BatchContainerOverrides.getCommand()
command
- The command to send to the container that overrides the default command from the Docker image or the job definition.this
public BatchContainerOverrides.Builder environment(java.util.Map<java.lang.String,java.lang.String> environment)
BatchContainerOverrides.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 BatchContainerOverrides.Builder gpuCount(java.lang.Number gpuCount)
BatchContainerOverrides.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 BatchContainerOverrides.Builder instanceType(InstanceType instanceType)
BatchContainerOverrides.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 BatchContainerOverrides.Builder memory(Size memory)
BatchContainerOverrides.getMemory()
memory
- Memory reserved for the job.this
public BatchContainerOverrides.Builder vcpus(java.lang.Number vcpus)
BatchContainerOverrides.getVcpus()
vcpus
- The number of vCPUs to reserve for the container.
This value overrides the value set in the job definition.this
public BatchContainerOverrides build()
BatchContainerOverrides
java.lang.NullPointerException
- if any required attribute was not provided