@Generated(value="software.amazon.awssdk:codegen") public final class Container extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Container.Builder,Container>
A Docker container that is part of a task.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Container.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Container.Builder |
builder() |
String |
containerArn()
The Amazon Resource Name (ARN) of the container.
|
String |
cpu()
The number of CPU units set for the container.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Integer |
exitCode()
The exit code returned from the container.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
List<String> |
gpuIds()
The IDs of each GPU assigned to the container.
|
boolean |
hasGpuIds()
For responses, this returns true if the service returned a value for the GpuIds property.
|
int |
hashCode() |
boolean |
hasManagedAgents()
For responses, this returns true if the service returned a value for the ManagedAgents property.
|
boolean |
hasNetworkBindings()
For responses, this returns true if the service returned a value for the NetworkBindings property.
|
boolean |
hasNetworkInterfaces()
For responses, this returns true if the service returned a value for the NetworkInterfaces property.
|
HealthStatus |
healthStatus()
The health status of the container.
|
String |
healthStatusAsString()
The health status of the container.
|
String |
image()
The image used for the container.
|
String |
imageDigest()
The container image manifest digest.
|
String |
lastStatus()
The last known status of the container.
|
List<ManagedAgent> |
managedAgents()
The details of any Amazon ECS managed agents associated with the container.
|
String |
memory()
The hard limit (in MiB) of memory set for the container.
|
String |
memoryReservation()
The soft limit (in MiB) of memory set for the container.
|
String |
name()
The name of the container.
|
List<NetworkBinding> |
networkBindings()
The network bindings associated with the container.
|
List<NetworkInterface> |
networkInterfaces()
The network interfaces associated with the container.
|
String |
reason()
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
String |
runtimeId()
The ID of the Docker container.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Container.Builder> |
serializableBuilderClass() |
String |
taskArn()
The ARN of the task.
|
Container.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String containerArn()
The Amazon Resource Name (ARN) of the container.
public final String taskArn()
The ARN of the task.
public final String name()
The name of the container.
public final String image()
The image used for the container.
public final String imageDigest()
The container image manifest digest.
The imageDigest is only returned if the container is using an image hosted in Amazon ECR, otherwise
it is omitted.
The imageDigest is only returned if the container is using an image hosted in Amazon ECR,
otherwise it is omitted.
public final String runtimeId()
The ID of the Docker container.
public final String lastStatus()
The last known status of the container.
public final Integer exitCode()
The exit code returned from the container.
public final String reason()
A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
public final boolean hasNetworkBindings()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<NetworkBinding> networkBindings()
The network bindings associated with the container.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNetworkBindings() method.
public final boolean hasNetworkInterfaces()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<NetworkInterface> networkInterfaces()
The network interfaces associated with the container.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNetworkInterfaces() method.
public final HealthStatus healthStatus()
The health status of the container. If health checks are not configured for this container in its task
definition, then it reports the health status as UNKNOWN.
If the service returns an enum value that is not available in the current SDK version, healthStatus will
return HealthStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
healthStatusAsString().
UNKNOWN.HealthStatuspublic final String healthStatusAsString()
The health status of the container. If health checks are not configured for this container in its task
definition, then it reports the health status as UNKNOWN.
If the service returns an enum value that is not available in the current SDK version, healthStatus will
return HealthStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
healthStatusAsString().
UNKNOWN.HealthStatuspublic final boolean hasManagedAgents()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<ManagedAgent> managedAgents()
The details of any Amazon ECS managed agents associated with the container.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasManagedAgents() method.
public final String cpu()
The number of CPU units set for the container. The value will be 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 final String memory()
The hard limit (in MiB) of memory set for the container.
public final String memoryReservation()
The soft limit (in MiB) of memory set for the container.
public final boolean hasGpuIds()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> gpuIds()
The IDs of each GPU assigned to the container.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasGpuIds() method.
public Container.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Container.Builder,Container>public static Container.Builder builder()
public static Class<? extends Container.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.