public static interface ContainerInstance.Builder extends SdkPojo, CopyableBuilder<ContainerInstance.Builder,ContainerInstance>
Modifier and Type | Method and Description |
---|---|
ContainerInstance.Builder |
agentConnected(Boolean agentConnected)
This parameter returns
true if the agent is connected to Amazon ECS. |
ContainerInstance.Builder |
agentUpdateStatus(AgentUpdateStatus agentUpdateStatus)
The status of the most recent agent update.
|
ContainerInstance.Builder |
agentUpdateStatus(String agentUpdateStatus)
The status of the most recent agent update.
|
ContainerInstance.Builder |
attachments(Attachment... attachments)
The elastic network interfaces associated with the container instance.
|
ContainerInstance.Builder |
attachments(Collection<Attachment> attachments)
The elastic network interfaces associated with the container instance.
|
ContainerInstance.Builder |
attachments(Consumer<Attachment.Builder>... attachments)
The elastic network interfaces associated with the container instance.
|
ContainerInstance.Builder |
attributes(Attribute... attributes)
The attributes set for the container instance, either by the Amazon ECS container agent at instance
registration or manually with the PutAttributes operation.
|
ContainerInstance.Builder |
attributes(Collection<Attribute> attributes)
The attributes set for the container instance, either by the Amazon ECS container agent at instance
registration or manually with the PutAttributes operation.
|
ContainerInstance.Builder |
attributes(Consumer<Attribute.Builder>... attributes)
The attributes set for the container instance, either by the Amazon ECS container agent at instance
registration or manually with the PutAttributes operation.
|
ContainerInstance.Builder |
containerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instance.
|
ContainerInstance.Builder |
ec2InstanceId(String ec2InstanceId)
The EC2 instance ID of the container instance.
|
ContainerInstance.Builder |
pendingTasksCount(Integer pendingTasksCount)
The number of tasks on the container instance that are in the
PENDING status. |
ContainerInstance.Builder |
registeredAt(Instant registeredAt)
The Unix timestamp for when the container instance was registered.
|
ContainerInstance.Builder |
registeredResources(Collection<Resource> registeredResources)
For CPU and memory resource types, this parameter describes the amount of each resource that was available on
the container instance when the container agent registered it with Amazon ECS.
|
ContainerInstance.Builder |
registeredResources(Consumer<Resource.Builder>... registeredResources)
For CPU and memory resource types, this parameter describes the amount of each resource that was available on
the container instance when the container agent registered it with Amazon ECS.
|
ContainerInstance.Builder |
registeredResources(Resource... registeredResources)
For CPU and memory resource types, this parameter describes the amount of each resource that was available on
the container instance when the container agent registered it with Amazon ECS.
|
ContainerInstance.Builder |
remainingResources(Collection<Resource> remainingResources)
For CPU and memory resource types, this parameter describes the remaining CPU and memory that has not already
been allocated to tasks and is therefore available for new tasks.
|
ContainerInstance.Builder |
remainingResources(Consumer<Resource.Builder>... remainingResources)
For CPU and memory resource types, this parameter describes the remaining CPU and memory that has not already
been allocated to tasks and is therefore available for new tasks.
|
ContainerInstance.Builder |
remainingResources(Resource... remainingResources)
For CPU and memory resource types, this parameter describes the remaining CPU and memory that has not already
been allocated to tasks and is therefore available for new tasks.
|
ContainerInstance.Builder |
runningTasksCount(Integer runningTasksCount)
The number of tasks on the container instance that are in the
RUNNING status. |
ContainerInstance.Builder |
status(String status)
The status of the container instance.
|
ContainerInstance.Builder |
tags(Collection<Tag> tags)
The metadata that you apply to the container instance to help you categorize and organize them.
|
ContainerInstance.Builder |
tags(Consumer<Tag.Builder>... tags)
The metadata that you apply to the container instance to help you categorize and organize them.
|
ContainerInstance.Builder |
tags(Tag... tags)
The metadata that you apply to the container instance to help you categorize and organize them.
|
ContainerInstance.Builder |
version(Long version)
The version counter for the container instance.
|
default ContainerInstance.Builder |
versionInfo(Consumer<VersionInfo.Builder> versionInfo)
The version information for the Amazon ECS container agent and Docker daemon running on the container
instance.
|
ContainerInstance.Builder |
versionInfo(VersionInfo versionInfo)
The version information for the Amazon ECS container agent and Docker daemon running on the container
instance.
|
copy
applyMutation, build
ContainerInstance.Builder containerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs
namespace, followed by the Region of the container instance, the AWS account ID of the container instance
owner, the container-instance
namespace, and then the container instance ID. For example,
arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID
.
containerInstanceArn
- The Amazon Resource Name (ARN) of the container instance. The ARN contains the
arn:aws:ecs
namespace, followed by the Region of the container instance, the AWS account
ID of the container instance owner, the container-instance
namespace, and then the
container instance ID. For example,
arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID
.ContainerInstance.Builder ec2InstanceId(String ec2InstanceId)
The EC2 instance ID of the container instance.
ec2InstanceId
- The EC2 instance ID of the container instance.ContainerInstance.Builder version(Long version)
The version counter for the container instance. Every time a container instance experiences a change that
triggers a CloudWatch event, the version counter is incremented. If you are replicating your Amazon ECS
container instance state with CloudWatch Events, you can compare the version of a container instance reported
by the Amazon ECS APIs with the version reported in CloudWatch Events for the container instance (inside the
detail
object) to verify that the version in your event stream is current.
version
- The version counter for the container instance. Every time a container instance experiences a change
that triggers a CloudWatch event, the version counter is incremented. If you are replicating your
Amazon ECS container instance state with CloudWatch Events, you can compare the version of a container
instance reported by the Amazon ECS APIs with the version reported in CloudWatch Events for the
container instance (inside the detail
object) to verify that the version in your event
stream is current.ContainerInstance.Builder versionInfo(VersionInfo versionInfo)
The version information for the Amazon ECS container agent and Docker daemon running on the container instance.
versionInfo
- The version information for the Amazon ECS container agent and Docker daemon running on the container
instance.default ContainerInstance.Builder versionInfo(Consumer<VersionInfo.Builder> versionInfo)
The version information for the Amazon ECS container agent and Docker daemon running on the container instance.
This is a convenience that creates an instance of theVersionInfo.Builder
avoiding the need to create
one manually via VersionInfo.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to versionInfo(VersionInfo)
.versionInfo
- a consumer that will call methods on VersionInfo.Builder
versionInfo(VersionInfo)
ContainerInstance.Builder remainingResources(Collection<Resource> remainingResources)
For CPU and memory resource types, this parameter describes the remaining CPU and memory that has not already
been allocated to tasks and is therefore available for new tasks. For port resource types, this parameter
describes the ports that were reserved by the Amazon ECS container agent (at instance registration time) and
any task containers that have reserved port mappings on the host (with the host
or
bridge
network mode). Any port that is not specified here is available for new tasks.
remainingResources
- For CPU and memory resource types, this parameter describes the remaining CPU and memory that has not
already been allocated to tasks and is therefore available for new tasks. For port resource types,
this parameter describes the ports that were reserved by the Amazon ECS container agent (at instance
registration time) and any task containers that have reserved port mappings on the host (with the
host
or bridge
network mode). Any port that is not specified here is
available for new tasks.ContainerInstance.Builder remainingResources(Resource... remainingResources)
For CPU and memory resource types, this parameter describes the remaining CPU and memory that has not already
been allocated to tasks and is therefore available for new tasks. For port resource types, this parameter
describes the ports that were reserved by the Amazon ECS container agent (at instance registration time) and
any task containers that have reserved port mappings on the host (with the host
or
bridge
network mode). Any port that is not specified here is available for new tasks.
remainingResources
- For CPU and memory resource types, this parameter describes the remaining CPU and memory that has not
already been allocated to tasks and is therefore available for new tasks. For port resource types,
this parameter describes the ports that were reserved by the Amazon ECS container agent (at instance
registration time) and any task containers that have reserved port mappings on the host (with the
host
or bridge
network mode). Any port that is not specified here is
available for new tasks.ContainerInstance.Builder remainingResources(Consumer<Resource.Builder>... remainingResources)
For CPU and memory resource types, this parameter describes the remaining CPU and memory that has not already
been allocated to tasks and is therefore available for new tasks. For port resource types, this parameter
describes the ports that were reserved by the Amazon ECS container agent (at instance registration time) and
any task containers that have reserved port mappings on the host (with the host
or
bridge
network mode). Any port that is not specified here is available for new tasks.
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 #remainingResources(List)
.remainingResources
- a consumer that will call methods on List.Builder
#remainingResources(List)
ContainerInstance.Builder registeredResources(Collection<Resource> registeredResources)
For CPU and memory resource types, this parameter describes the amount of each resource that was available on the container instance when the container agent registered it with Amazon ECS. This value represents the total amount of CPU and memory that can be allocated on this container instance to tasks. For port resource types, this parameter describes the ports that were reserved by the Amazon ECS container agent when it registered the container instance with Amazon ECS.
registeredResources
- For CPU and memory resource types, this parameter describes the amount of each resource that was
available on the container instance when the container agent registered it with Amazon ECS. This value
represents the total amount of CPU and memory that can be allocated on this container instance to
tasks. For port resource types, this parameter describes the ports that were reserved by the Amazon
ECS container agent when it registered the container instance with Amazon ECS.ContainerInstance.Builder registeredResources(Resource... registeredResources)
For CPU and memory resource types, this parameter describes the amount of each resource that was available on the container instance when the container agent registered it with Amazon ECS. This value represents the total amount of CPU and memory that can be allocated on this container instance to tasks. For port resource types, this parameter describes the ports that were reserved by the Amazon ECS container agent when it registered the container instance with Amazon ECS.
registeredResources
- For CPU and memory resource types, this parameter describes the amount of each resource that was
available on the container instance when the container agent registered it with Amazon ECS. This value
represents the total amount of CPU and memory that can be allocated on this container instance to
tasks. For port resource types, this parameter describes the ports that were reserved by the Amazon
ECS container agent when it registered the container instance with Amazon ECS.ContainerInstance.Builder registeredResources(Consumer<Resource.Builder>... registeredResources)
For CPU and memory resource types, this parameter describes the amount of each resource that was available on the container instance when the container agent registered it with Amazon ECS. This value represents the total amount of CPU and memory that can be allocated on this container instance to tasks. For port resource types, this parameter describes the ports that were reserved by the Amazon ECS container agent when it registered the container instance with Amazon ECS.
This is a convenience that creates an instance of theList.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 #registeredResources(List)
.registeredResources
- a consumer that will call methods on List.Builder
#registeredResources(List)
ContainerInstance.Builder status(String status)
The status of the container instance. The valid values are ACTIVE
, INACTIVE
, or
DRAINING
. ACTIVE
indicates that the container instance can accept tasks.
DRAINING
indicates that new tasks are not placed on the container instance and any service tasks
running on the container instance are removed if possible. For more information, see Container
Instance Draining in the Amazon Elastic Container Service Developer Guide.
status
- The status of the container instance. The valid values are ACTIVE
, INACTIVE
,
or DRAINING
. ACTIVE
indicates that the container instance can accept tasks.
DRAINING
indicates that new tasks are not placed on the container instance and any
service tasks running on the container instance are removed if possible. For more information, see
Container Instance Draining in the Amazon Elastic Container Service Developer Guide.ContainerInstance.Builder agentConnected(Boolean agentConnected)
This parameter returns true
if the agent is connected to Amazon ECS. Registered instances with
an agent that may be unhealthy or stopped return false
. Only instances connected to an agent can
accept placement requests.
agentConnected
- This parameter returns true
if the agent is connected to Amazon ECS. Registered instances
with an agent that may be unhealthy or stopped return false
. Only instances connected to
an agent can accept placement requests.ContainerInstance.Builder runningTasksCount(Integer runningTasksCount)
The number of tasks on the container instance that are in the RUNNING
status.
runningTasksCount
- The number of tasks on the container instance that are in the RUNNING
status.ContainerInstance.Builder pendingTasksCount(Integer pendingTasksCount)
The number of tasks on the container instance that are in the PENDING
status.
pendingTasksCount
- The number of tasks on the container instance that are in the PENDING
status.ContainerInstance.Builder agentUpdateStatus(String agentUpdateStatus)
The status of the most recent agent update. If an update has never been requested, this value is
NULL
.
agentUpdateStatus
- The status of the most recent agent update. If an update has never been requested, this value is
NULL
.AgentUpdateStatus
,
AgentUpdateStatus
ContainerInstance.Builder agentUpdateStatus(AgentUpdateStatus agentUpdateStatus)
The status of the most recent agent update. If an update has never been requested, this value is
NULL
.
agentUpdateStatus
- The status of the most recent agent update. If an update has never been requested, this value is
NULL
.AgentUpdateStatus
,
AgentUpdateStatus
ContainerInstance.Builder attributes(Collection<Attribute> attributes)
The attributes set for the container instance, either by the Amazon ECS container agent at instance registration or manually with the PutAttributes operation.
attributes
- The attributes set for the container instance, either by the Amazon ECS container agent at instance
registration or manually with the PutAttributes operation.ContainerInstance.Builder attributes(Attribute... attributes)
The attributes set for the container instance, either by the Amazon ECS container agent at instance registration or manually with the PutAttributes operation.
attributes
- The attributes set for the container instance, either by the Amazon ECS container agent at instance
registration or manually with the PutAttributes operation.ContainerInstance.Builder attributes(Consumer<Attribute.Builder>... attributes)
The attributes set for the container instance, either by the Amazon ECS container agent at instance registration or manually with the PutAttributes operation.
This is a convenience that creates an instance of theList.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 #attributes(List)
.attributes
- a consumer that will call methods on List.Builder
#attributes(List)
ContainerInstance.Builder registeredAt(Instant registeredAt)
The Unix timestamp for when the container instance was registered.
registeredAt
- The Unix timestamp for when the container instance was registered.ContainerInstance.Builder attachments(Collection<Attachment> attachments)
The elastic network interfaces associated with the container instance.
attachments
- The elastic network interfaces associated with the container instance.ContainerInstance.Builder attachments(Attachment... attachments)
The elastic network interfaces associated with the container instance.
attachments
- The elastic network interfaces associated with the container instance.ContainerInstance.Builder attachments(Consumer<Attachment.Builder>... attachments)
The elastic network interfaces associated with the container instance.
This is a convenience that creates an instance of theList.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 #attachments(List)
.attachments
- a consumer that will call methods on List.Builder
#attachments(List)
ContainerInstance.Builder tags(Collection<Tag> tags)
The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
tags
- The metadata that you apply to the container instance to help you categorize and organize them. Each
tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum
character length of 128 characters, and tag values can have a maximum length of 256 characters.ContainerInstance.Builder tags(Tag... tags)
The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
tags
- The metadata that you apply to the container instance to help you categorize and organize them. Each
tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum
character length of 128 characters, and tag values can have a maximum length of 256 characters.ContainerInstance.Builder tags(Consumer<Tag.Builder>... tags)
The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
This is a convenience that creates an instance of theList.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 #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.