@Generated(value="software.amazon.awssdk:codegen") public final class AwsEcsTaskDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEcsTaskDetails.Builder,AwsEcsTaskDetails>
Provides details about a task in a cluster.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEcsTaskDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AwsEcsTaskDetails.Builder |
builder() |
String |
clusterArn()
The Amazon Resource Name (ARN) of the cluster that hosts the task.
|
List<AwsEcsContainerDetails> |
containers()
The containers that are associated with the task.
|
String |
createdAt()
The Unix timestamp for the time when the task was created.
|
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 |
hasVolumes()
For responses, this returns true if the service returned a value for the Volumes property.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsEcsTaskDetails.Builder> |
serializableBuilderClass() |
String |
startedAt()
The Unix timestamp for the time when the task started.
|
String |
startedBy()
The tag specified when a task is started.
|
String |
taskDefinitionArn()
The ARN of the task definition that creates the task.
|
AwsEcsTaskDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
version()
The version counter for the task.
|
List<AwsEcsTaskVolumeDetails> |
volumes()
Details about the data volume that is used in a task definition.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String clusterArn()
The Amazon Resource Name (ARN) of the cluster that hosts the task.
public final String taskDefinitionArn()
The ARN of the task definition that creates the task.
public final String version()
The version counter for the task.
public final String createdAt()
The Unix timestamp for the time when the task was created. More specifically, it's for the time when the task
entered the PENDING state.
PENDING state.public final String startedAt()
The Unix timestamp for the time when the task started. More specifically, it's for the time when the task
transitioned from the PENDING state to the RUNNING state.
PENDING state to the RUNNING state.public final String startedBy()
The tag specified when a task is started. If an Amazon ECS service started the task, the startedBy
parameter contains the deployment ID of that service.
startedBy parameter contains the deployment ID of that service.public final String group()
The name of the task group that's associated with the task.
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<AwsEcsTaskVolumeDetails> volumes()
Details about the data volume that is used in a task definition.
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<AwsEcsContainerDetails> containers()
The containers that are 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 AwsEcsTaskDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsEcsTaskDetails.Builder,AwsEcsTaskDetails>public static AwsEcsTaskDetails.Builder builder()
public static Class<? extends AwsEcsTaskDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.