@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Container extends Object implements Serializable, Cloneable, StructuredPojo
A Docker container that's part of a task.
Constructor and Description |
---|
Container() |
Modifier and Type | Method and Description |
---|---|
Container |
clone() |
boolean |
equals(Object obj) |
String |
getContainerArn()
The Amazon Resource Name (ARN) of the container.
|
String |
getCpu()
The number of CPU units set for the container.
|
Integer |
getExitCode()
The exit code returned from the container.
|
List<String> |
getGpuIds()
The IDs of each GPU assigned to the container.
|
String |
getHealthStatus()
The health status of the container.
|
String |
getImage()
The image used for the container.
|
String |
getImageDigest()
The container image manifest digest.
|
String |
getLastStatus()
The last known status of the container.
|
List<ManagedAgent> |
getManagedAgents()
The details of any Amazon ECS managed agents associated with the container.
|
String |
getMemory()
The hard limit (in MiB) of memory set for the container.
|
String |
getMemoryReservation()
The soft limit (in MiB) of memory set for the container.
|
String |
getName()
The name of the container.
|
List<NetworkBinding> |
getNetworkBindings()
The network bindings associated with the container.
|
List<NetworkInterface> |
getNetworkInterfaces()
The network interfaces associated with the container.
|
String |
getReason()
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
String |
getRuntimeId()
The ID of the Docker container.
|
String |
getTaskArn()
The ARN of the task.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerArn(String containerArn)
The Amazon Resource Name (ARN) of the container.
|
void |
setCpu(String cpu)
The number of CPU units set for the container.
|
void |
setExitCode(Integer exitCode)
The exit code returned from the container.
|
void |
setGpuIds(Collection<String> gpuIds)
The IDs of each GPU assigned to the container.
|
void |
setHealthStatus(String healthStatus)
The health status of the container.
|
void |
setImage(String image)
The image used for the container.
|
void |
setImageDigest(String imageDigest)
The container image manifest digest.
|
void |
setLastStatus(String lastStatus)
The last known status of the container.
|
void |
setManagedAgents(Collection<ManagedAgent> managedAgents)
The details of any Amazon ECS managed agents associated with the container.
|
void |
setMemory(String memory)
The hard limit (in MiB) of memory set for the container.
|
void |
setMemoryReservation(String memoryReservation)
The soft limit (in MiB) of memory set for the container.
|
void |
setName(String name)
The name of the container.
|
void |
setNetworkBindings(Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
|
void |
setNetworkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces associated with the container.
|
void |
setReason(String reason)
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
void |
setRuntimeId(String runtimeId)
The ID of the Docker container.
|
void |
setTaskArn(String taskArn)
The ARN of the task.
|
String |
toString()
Returns a string representation of this object.
|
Container |
withContainerArn(String containerArn)
The Amazon Resource Name (ARN) of the container.
|
Container |
withCpu(String cpu)
The number of CPU units set for the container.
|
Container |
withExitCode(Integer exitCode)
The exit code returned from the container.
|
Container |
withGpuIds(Collection<String> gpuIds)
The IDs of each GPU assigned to the container.
|
Container |
withGpuIds(String... gpuIds)
The IDs of each GPU assigned to the container.
|
Container |
withHealthStatus(HealthStatus healthStatus)
The health status of the container.
|
Container |
withHealthStatus(String healthStatus)
The health status of the container.
|
Container |
withImage(String image)
The image used for the container.
|
Container |
withImageDigest(String imageDigest)
The container image manifest digest.
|
Container |
withLastStatus(String lastStatus)
The last known status of the container.
|
Container |
withManagedAgents(Collection<ManagedAgent> managedAgents)
The details of any Amazon ECS managed agents associated with the container.
|
Container |
withManagedAgents(ManagedAgent... managedAgents)
The details of any Amazon ECS managed agents associated with the container.
|
Container |
withMemory(String memory)
The hard limit (in MiB) of memory set for the container.
|
Container |
withMemoryReservation(String memoryReservation)
The soft limit (in MiB) of memory set for the container.
|
Container |
withName(String name)
The name of the container.
|
Container |
withNetworkBindings(Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
|
Container |
withNetworkBindings(NetworkBinding... networkBindings)
The network bindings associated with the container.
|
Container |
withNetworkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces associated with the container.
|
Container |
withNetworkInterfaces(NetworkInterface... networkInterfaces)
The network interfaces associated with the container.
|
Container |
withReason(String reason)
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
Container |
withRuntimeId(String runtimeId)
The ID of the Docker container.
|
Container |
withTaskArn(String taskArn)
The ARN of the task.
|
public void setContainerArn(String containerArn)
The Amazon Resource Name (ARN) of the container.
containerArn
- The Amazon Resource Name (ARN) of the container.public String getContainerArn()
The Amazon Resource Name (ARN) of the container.
public Container withContainerArn(String containerArn)
The Amazon Resource Name (ARN) of the container.
containerArn
- The Amazon Resource Name (ARN) of the container.public void setTaskArn(String taskArn)
The ARN of the task.
taskArn
- The ARN of the task.public String getTaskArn()
The ARN of the task.
public Container withTaskArn(String taskArn)
The ARN of the task.
taskArn
- The ARN of the task.public void setName(String name)
The name of the container.
name
- The name of the container.public String getName()
The name of the container.
public Container withName(String name)
The name of the container.
name
- The name of the container.public void setImage(String image)
The image used for the container.
image
- The image used for the container.public String getImage()
The image used for the container.
public Container withImage(String image)
The image used for the container.
image
- The image used for the container.public void setImageDigest(String imageDigest)
The container image manifest digest.
imageDigest
- The container image manifest digest.public String getImageDigest()
The container image manifest digest.
public Container withImageDigest(String imageDigest)
The container image manifest digest.
imageDigest
- The container image manifest digest.public void setRuntimeId(String runtimeId)
The ID of the Docker container.
runtimeId
- The ID of the Docker container.public String getRuntimeId()
The ID of the Docker container.
public Container withRuntimeId(String runtimeId)
The ID of the Docker container.
runtimeId
- The ID of the Docker container.public void setLastStatus(String lastStatus)
The last known status of the container.
lastStatus
- The last known status of the container.public String getLastStatus()
The last known status of the container.
public Container withLastStatus(String lastStatus)
The last known status of the container.
lastStatus
- The last known status of the container.public void setExitCode(Integer exitCode)
The exit code returned from the container.
exitCode
- The exit code returned from the container.public Integer getExitCode()
The exit code returned from the container.
public Container withExitCode(Integer exitCode)
The exit code returned from the container.
exitCode
- The exit code returned from the container.public void setReason(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.public String getReason()
A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
public Container withReason(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.public List<NetworkBinding> getNetworkBindings()
The network bindings associated with the container.
public void setNetworkBindings(Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
networkBindings
- The network bindings associated with the container.public Container withNetworkBindings(NetworkBinding... networkBindings)
The network bindings associated with the container.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkBindings(java.util.Collection)
or withNetworkBindings(java.util.Collection)
if you
want to override the existing values.
networkBindings
- The network bindings associated with the container.public Container withNetworkBindings(Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
networkBindings
- The network bindings associated with the container.public List<NetworkInterface> getNetworkInterfaces()
The network interfaces associated with the container.
public void setNetworkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces associated with the container.
networkInterfaces
- The network interfaces associated with the container.public Container withNetworkInterfaces(NetworkInterface... networkInterfaces)
The network interfaces associated with the container.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkInterfaces(java.util.Collection)
or withNetworkInterfaces(java.util.Collection)
if
you want to override the existing values.
networkInterfaces
- The network interfaces associated with the container.public Container withNetworkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces associated with the container.
networkInterfaces
- The network interfaces associated with the container.public void setHealthStatus(String healthStatus)
The health status of the container. If health checks aren't configured for this container in its task definition,
then it reports the health status as UNKNOWN
.
healthStatus
- The health status of the container. If health checks aren't configured for this container in its task
definition, then it reports the health status as UNKNOWN
.HealthStatus
public String getHealthStatus()
The health status of the container. If health checks aren't configured for this container in its task definition,
then it reports the health status as UNKNOWN
.
UNKNOWN
.HealthStatus
public Container withHealthStatus(String healthStatus)
The health status of the container. If health checks aren't configured for this container in its task definition,
then it reports the health status as UNKNOWN
.
healthStatus
- The health status of the container. If health checks aren't configured for this container in its task
definition, then it reports the health status as UNKNOWN
.HealthStatus
public Container withHealthStatus(HealthStatus healthStatus)
The health status of the container. If health checks aren't configured for this container in its task definition,
then it reports the health status as UNKNOWN
.
healthStatus
- The health status of the container. If health checks aren't configured for this container in its task
definition, then it reports the health status as UNKNOWN
.HealthStatus
public List<ManagedAgent> getManagedAgents()
The details of any Amazon ECS managed agents associated with the container.
public void setManagedAgents(Collection<ManagedAgent> managedAgents)
The details of any Amazon ECS managed agents associated with the container.
managedAgents
- The details of any Amazon ECS managed agents associated with the container.public Container withManagedAgents(ManagedAgent... managedAgents)
The details of any Amazon ECS managed agents associated with the container.
NOTE: This method appends the values to the existing list (if any). Use
setManagedAgents(java.util.Collection)
or withManagedAgents(java.util.Collection)
if you want
to override the existing values.
managedAgents
- The details of any Amazon ECS managed agents associated with the container.public Container withManagedAgents(Collection<ManagedAgent> managedAgents)
The details of any Amazon ECS managed agents associated with the container.
managedAgents
- The details of any Amazon ECS managed agents associated with the container.public void setCpu(String cpu)
The number of CPU units set for the container. The value is 0
if no value was specified in the
container definition when the task definition was registered.
cpu
- The number of CPU units set for the container. The value is 0
if no value was specified in
the container definition when the task definition was registered.public String getCpu()
The number of CPU units set for the container. The value is 0
if no value was specified in the
container definition when the task definition was registered.
0
if no value was specified in
the container definition when the task definition was registered.public Container withCpu(String cpu)
The number of CPU units set for the container. The value is 0
if no value was specified in the
container definition when the task definition was registered.
cpu
- The number of CPU units set for the container. The value is 0
if no value was specified in
the container definition when the task definition was registered.public void setMemory(String memory)
The hard limit (in MiB) of memory set for the container.
memory
- The hard limit (in MiB) of memory set for the container.public String getMemory()
The hard limit (in MiB) of memory set for the container.
public Container withMemory(String memory)
The hard limit (in MiB) of memory set for the container.
memory
- The hard limit (in MiB) of memory set for the container.public void setMemoryReservation(String memoryReservation)
The soft limit (in MiB) of memory set for the container.
memoryReservation
- The soft limit (in MiB) of memory set for the container.public String getMemoryReservation()
The soft limit (in MiB) of memory set for the container.
public Container withMemoryReservation(String memoryReservation)
The soft limit (in MiB) of memory set for the container.
memoryReservation
- The soft limit (in MiB) of memory set for the container.public List<String> getGpuIds()
The IDs of each GPU assigned to the container.
public void setGpuIds(Collection<String> gpuIds)
The IDs of each GPU assigned to the container.
gpuIds
- The IDs of each GPU assigned to the container.public Container withGpuIds(String... gpuIds)
The IDs of each GPU assigned to the container.
NOTE: This method appends the values to the existing list (if any). Use
setGpuIds(java.util.Collection)
or withGpuIds(java.util.Collection)
if you want to override the
existing values.
gpuIds
- The IDs of each GPU assigned to the container.public Container withGpuIds(Collection<String> gpuIds)
The IDs of each GPU assigned to the container.
gpuIds
- The IDs of each GPU assigned to the container.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.