Class AwsEcsTaskDetails

    • 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 PENDING state.

        Returns:
        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.
      • 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 PENDING state to the RUNNING state.

        Returns:
        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.
      • startedBy

        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.

        Returns:
        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.
      • 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 the 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.
      • 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 the 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.
      • 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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)