Class AwsEcsTaskDetails
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsEcsTaskDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsEcsTaskDetails.Builder,AwsEcsTaskDetails>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsEcsTaskDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsEcsTaskDetails.Builderbuilder()StringclusterArn()The Amazon Resource Name (ARN) of the cluster that hosts the task.List<AwsEcsContainerDetails>containers()The containers that are associated with the task.StringcreatedAt()The Unix timestamp for the time when the task was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)Stringgroup()The name of the task group that's associated with the task.booleanhasContainers()For responses, this returns true if the service returned a value for the Containers property.inthashCode()booleanhasVolumes()For responses, this returns true if the service returned a value for the Volumes property.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AwsEcsTaskDetails.Builder>serializableBuilderClass()StringstartedAt()The Unix timestamp for the time when the task started.StringstartedBy()The tag specified when a task is started.StringtaskDefinitionArn()The ARN of the task definition that creates the task.AwsEcsTaskDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringversion()The version counter for the task.List<AwsEcsTaskVolumeDetails>volumes()Details about the data volume that is used in a task definition.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
clusterArn
public final String clusterArn()
The Amazon Resource Name (ARN) of the cluster that hosts the task.
- Returns:
- The Amazon Resource Name (ARN) of the cluster that hosts the task.
-
taskDefinitionArn
public final String taskDefinitionArn()
The ARN of the task definition that creates the task.
- Returns:
- The ARN of the task definition that creates the task.
-
version
public final String version()
The version counter for the task.
- Returns:
- The version counter for the task.
-
createdAt
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
PENDINGstate.- Returns:
- The Unix timestamp for the time when the task was created. More specifically, it's for the time when the
task entered the
PENDINGstate.
-
startedAt
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
PENDINGstate to theRUNNINGstate.- Returns:
- The Unix timestamp for the time when the task started. More specifically, it's for the time when the task
transitioned from the
PENDINGstate to theRUNNINGstate.
-
startedBy
public final String startedBy()
The tag specified when a task is started. If an Amazon ECS service started the task, the
startedByparameter contains the deployment ID of that service.- Returns:
- The tag specified when a task is started. If an Amazon ECS service started the task, the
startedByparameter contains the deployment ID of that service.
-
group
public final String group()
The name of the task group that's associated with the task.
- Returns:
- The name of the task group that's associated with the task.
-
hasVolumes
public final boolean hasVolumes()
For responses, this returns true if the service returned a value for the Volumes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
volumes
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.- Returns:
- Details about the data volume that is used in a task definition.
-
hasContainers
public final boolean hasContainers()
For responses, this returns true if the service returned a value for the Containers property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
containers
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.- Returns:
- The containers that are associated with the task.
-
toBuilder
public AwsEcsTaskDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsEcsTaskDetails.Builder,AwsEcsTaskDetails>
-
builder
public static AwsEcsTaskDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsEcsTaskDetails.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-