@Generated(value="software.amazon.awssdk:codegen") public final class EcsTaskDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EcsTaskDetails.Builder,EcsTaskDetails>
Contains information about the task in an ECS cluster.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EcsTaskDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the task.
|
static EcsTaskDetails.Builder |
builder() |
List<Container> |
containers()
The containers that's associated with the task.
|
String |
definitionArn()
The ARN of the task definition that creates the task.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
group()
The name of the task group that's associated with the task.
|
boolean |
hasContainers()
For responses, this returns true if the service returned a value for the Containers property.
|
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
boolean |
hasVolumes()
For responses, this returns true if the service returned a value for the Volumes property.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EcsTaskDetails.Builder> |
serializableBuilderClass() |
Instant |
startedAt()
The Unix timestamp for the time when the task started.
|
String |
startedBy()
Contains the tag specified when a task is started.
|
List<Tag> |
tags()
The tags of the ECS Task.
|
Instant |
taskCreatedAt()
The Unix timestamp for the time when the task was created.
|
EcsTaskDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
version()
The version counter for the task.
|
List<Volume> |
volumes()
The list of data volume definitions for the task.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The Amazon Resource Name (ARN) of the task.
public final String definitionArn()
The ARN of the task definition that creates the task.
public final String version()
The version counter for the task.
public final Instant taskCreatedAt()
The Unix timestamp for the time when the task was created.
public final Instant startedAt()
The Unix timestamp for the time when the task started.
public final String startedBy()
Contains the tag specified when a task is started.
public final boolean hasTags()
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<Tag> tags()
The tags of the ECS Task.
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 hasTags() method.
public final boolean hasVolumes()
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<Volume> volumes()
The list of data volume definitions for the task.
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 hasVolumes() method.
public final boolean hasContainers()
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<Container> containers()
The containers that's associated with the task.
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 hasContainers() method.
public final String group()
The name of the task group that's associated with the task.
public EcsTaskDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EcsTaskDetails.Builder,EcsTaskDetails>public static EcsTaskDetails.Builder builder()
public static Class<? extends EcsTaskDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.