public static interface ContainerOverrides.Builder extends CopyableBuilder<ContainerOverrides.Builder,ContainerOverrides>
Modifier and Type | Method and Description |
---|---|
ContainerOverrides.Builder |
command(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
ContainerOverrides.Builder |
command(String... command)
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
ContainerOverrides.Builder |
environment(Collection<KeyValuePair> environment)
The environment variables to send to the container.
|
ContainerOverrides.Builder |
environment(Consumer<KeyValuePair.Builder>... environment)
The environment variables to send to the container.
|
ContainerOverrides.Builder |
environment(KeyValuePair... environment)
The environment variables to send to the container.
|
ContainerOverrides.Builder |
memory(Integer memory)
The number of MiB of memory reserved for the job.
|
ContainerOverrides.Builder |
vcpus(Integer vcpus)
The number of vCPUs to reserve for the container.
|
copy
applyMutation, build
ContainerOverrides.Builder vcpus(Integer vcpus)
The number of vCPUs to reserve for the container. This value overrides the value set in the job definition.
vcpus
- The number of vCPUs to reserve for the container. This value overrides the value set in the job
definition.ContainerOverrides.Builder memory(Integer memory)
The number of MiB of memory reserved for the job. This value overrides the value set in the job definition.
memory
- The number of MiB of memory reserved for the job. This value overrides the value set in the job
definition.ContainerOverrides.Builder command(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job definition.
command
- The command to send to the container that overrides the default command from the Docker image or the
job definition.ContainerOverrides.Builder command(String... command)
The command to send to the container that overrides the default command from the Docker image or the job definition.
command
- The command to send to the container that overrides the default command from the Docker image or the
job definition.ContainerOverrides.Builder environment(Collection<KeyValuePair> 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.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the AWS Batch service.
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.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved
for variables that are set by the AWS Batch service.
ContainerOverrides.Builder environment(KeyValuePair... 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.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the AWS Batch service.
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.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved
for variables that are set by the AWS Batch service.
ContainerOverrides.Builder environment(Consumer<KeyValuePair.Builder>... 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.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the AWS Batch service.
List.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #environment(List)
.environment
- a consumer that will call methods on List.Builder
#environment(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.