CopyableBuilder<ContainerDetail.Builder,ContainerDetail>
, SdkBuilder<ContainerDetail.Builder,ContainerDetail>
public static interface ContainerDetail.Builder extends CopyableBuilder<ContainerDetail.Builder,ContainerDetail>
Modifier and Type | Method | Description |
---|---|---|
ContainerDetail.Builder |
command(String... command) |
The command that is passed to the container.
|
ContainerDetail.Builder |
command(Collection<String> command) |
The command that is passed to the container.
|
ContainerDetail.Builder |
containerInstanceArn(String containerInstanceArn) |
The Amazon Resource Name (ARN) of the container instance on which the container is running.
|
ContainerDetail.Builder |
environment(Collection<KeyValuePair> environment) |
The environment variables to pass to a container.
|
ContainerDetail.Builder |
environment(KeyValuePair... environment) |
The environment variables to pass to a container.
|
ContainerDetail.Builder |
exitCode(Integer exitCode) |
The exit code to return upon completion.
|
ContainerDetail.Builder |
image(String image) |
The image used to start the container.
|
ContainerDetail.Builder |
jobRoleArn(String jobRoleArn) |
The Amazon Resource Name (ARN) associated with the job upon execution.
|
ContainerDetail.Builder |
memory(Integer memory) |
The number of MiB of memory reserved for the job.
|
ContainerDetail.Builder |
mountPoints(Collection<MountPoint> mountPoints) |
The mount points for data volumes in your container.
|
ContainerDetail.Builder |
mountPoints(MountPoint... mountPoints) |
The mount points for data volumes in your container.
|
ContainerDetail.Builder |
privileged(Boolean privileged) |
When this parameter is true, the container is given elevated privileges on the host container instance
(similar to the
root user). |
ContainerDetail.Builder |
readonlyRootFilesystem(Boolean readonlyRootFilesystem) |
When this parameter is true, the container is given read-only access to its root file system.
|
ContainerDetail.Builder |
reason(String reason) |
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
ContainerDetail.Builder |
taskArn(String taskArn) |
The Amazon Resource Name (ARN) of the Amazon ECS task that is associated with the container job.
|
ContainerDetail.Builder |
ulimits(Collection<Ulimit> ulimits) |
A list of
ulimit values to set in the container. |
ContainerDetail.Builder |
ulimits(Ulimit... ulimits) |
A list of
ulimit values to set in the container. |
ContainerDetail.Builder |
user(String user) |
The user name to use inside the container.
|
ContainerDetail.Builder |
vcpus(Integer vcpus) |
The number of VCPUs allocated for the job.
|
ContainerDetail.Builder |
volumes(Collection<Volume> volumes) |
A list of volumes associated with the job.
|
ContainerDetail.Builder |
volumes(Volume... volumes) |
A list of volumes associated with the job.
|
copy
apply, build
ContainerDetail.Builder image(String image)
The image used to start the container.
image
- The image used to start the container.ContainerDetail.Builder vcpus(Integer vcpus)
The number of VCPUs allocated for the job.
vcpus
- The number of VCPUs allocated for the job.ContainerDetail.Builder memory(Integer memory)
The number of MiB of memory reserved for the job.
memory
- The number of MiB of memory reserved for the job.ContainerDetail.Builder command(Collection<String> command)
The command that is passed to the container.
command
- The command that is passed to the container.ContainerDetail.Builder command(String... command)
The command that is passed to the container.
NOTE: This method appends the values to the existing list (if any). Use
#setCommand(java.util.Collection)
or #withCommand(java.util.Collection)
if you want to
override the existing values.
command
- The command that is passed to the container.ContainerDetail.Builder jobRoleArn(String jobRoleArn)
The Amazon Resource Name (ARN) associated with the job upon execution.
jobRoleArn
- The Amazon Resource Name (ARN) associated with the job upon execution.ContainerDetail.Builder volumes(Collection<Volume> volumes)
A list of volumes associated with the job.
volumes
- A list of volumes associated with the job.ContainerDetail.Builder volumes(Volume... volumes)
A list of volumes associated with the job.
NOTE: This method appends the values to the existing list (if any). Use
#setVolumes(java.util.Collection)
or #withVolumes(java.util.Collection)
if you want to
override the existing values.
volumes
- A list of volumes associated with the job.ContainerDetail.Builder environment(Collection<KeyValuePair> environment)
The environment variables to pass to a container.
environment
- The environment variables to pass to a container.ContainerDetail.Builder environment(KeyValuePair... environment)
The environment variables to pass to a container.
NOTE: This method appends the values to the existing list (if any). Use
#setEnvironment(java.util.Collection)
or #withEnvironment(java.util.Collection)
if you want
to override the existing values.
environment
- The environment variables to pass to a container.ContainerDetail.Builder mountPoints(Collection<MountPoint> mountPoints)
The mount points for data volumes in your container.
mountPoints
- The mount points for data volumes in your container.ContainerDetail.Builder mountPoints(MountPoint... mountPoints)
The mount points for data volumes in your container.
NOTE: This method appends the values to the existing list (if any). Use
#setMountPoints(java.util.Collection)
or #withMountPoints(java.util.Collection)
if you want
to override the existing values.
mountPoints
- The mount points for data volumes in your container.ContainerDetail.Builder readonlyRootFilesystem(Boolean readonlyRootFilesystem)
When this parameter is true, the container is given read-only access to its root file system.
readonlyRootFilesystem
- When this parameter is true, the container is given read-only access to its root file system.ContainerDetail.Builder ulimits(Collection<Ulimit> ulimits)
A list of ulimit
values to set in the container.
ulimits
- A list of ulimit
values to set in the container.ContainerDetail.Builder ulimits(Ulimit... ulimits)
A list of ulimit
values to set in the container.
NOTE: This method appends the values to the existing list (if any). Use
#setUlimits(java.util.Collection)
or #withUlimits(java.util.Collection)
if you want to
override the existing values.
ulimits
- A list of ulimit
values to set in the container.ContainerDetail.Builder privileged(Boolean privileged)
When this parameter is true, the container is given elevated privileges on the host container instance
(similar to the root
user).
privileged
- When this parameter is true, the container is given elevated privileges on the host container instance
(similar to the root
user).ContainerDetail.Builder user(String user)
The user name to use inside the container.
user
- The user name to use inside the container.ContainerDetail.Builder exitCode(Integer exitCode)
The exit code to return upon completion.
exitCode
- The exit code to return upon completion.ContainerDetail.Builder reason(String reason)
A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
reason
- A short (255 max characters) human-readable string to provide additional details about a running or
stopped container.ContainerDetail.Builder containerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instance on which the container is running.
containerInstanceArn
- The Amazon Resource Name (ARN) of the container instance on which the container is running.ContainerDetail.Builder taskArn(String taskArn)
The Amazon Resource Name (ARN) of the Amazon ECS task that is associated with the container job.
taskArn
- The Amazon Resource Name (ARN) of the Amazon ECS task that is associated with the container job.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.