Class EcsTaskDetails
- java.lang.Object
-
- software.amazon.awssdk.services.guardduty.model.EcsTaskDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EcsTaskDetails.Builder,EcsTaskDetails>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEcsTaskDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon Resource Name (ARN) of the task.static EcsTaskDetails.Builderbuilder()List<Container>containers()The containers that's associated with the task.StringdefinitionArn()The ARN of the task definition that creates the task.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()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.booleanhasVolumes()For responses, this returns true if the service returned a value for the Volumes property.List<SdkField<?>>sdkFields()static Class<? extends EcsTaskDetails.Builder>serializableBuilderClass()InstantstartedAt()The Unix timestamp for the time when the task started.StringstartedBy()Contains the tag specified when a task is started.List<Tag>tags()The tags of the ECS Task.InstanttaskCreatedAt()The Unix timestamp for the time when the task was created.EcsTaskDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringversion()The version counter for the task.List<Volume>volumes()The list of data volume definitions for the task.-
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
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the task.
- Returns:
- The Amazon Resource Name (ARN) of the task.
-
definitionArn
public final String definitionArn()
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.
-
taskCreatedAt
public final Instant taskCreatedAt()
The Unix timestamp for the time when the task was created.
- Returns:
- The Unix timestamp for the time when the task was created.
-
startedAt
public final Instant startedAt()
The Unix timestamp for the time when the task started.
- Returns:
- The Unix timestamp for the time when the task started.
-
startedBy
public final String startedBy()
Contains the tag specified when a task is started.
- Returns:
- Contains the tag specified when a task is started.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags 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.
-
tags
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.- Returns:
- The tags of the ECS 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<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.- Returns:
- The list of data volume definitions for the task.
-
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<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.- Returns:
- The containers that's associated with the task.
-
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.
-
toBuilder
public EcsTaskDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EcsTaskDetails.Builder,EcsTaskDetails>
-
builder
public static EcsTaskDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends EcsTaskDetails.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.
-
-