Interface EcsTaskDetails.Builder

  • Method Details

    • arn

      The Amazon Resource Name (ARN) of the task.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definitionArn

      EcsTaskDetails.Builder definitionArn(String definitionArn)

      The ARN of the task definition that creates the task.

      Parameters:
      definitionArn - The ARN of the task definition that creates the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • version

      EcsTaskDetails.Builder version(String version)

      The version counter for the task.

      Parameters:
      version - The version counter for the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taskCreatedAt

      EcsTaskDetails.Builder taskCreatedAt(Instant taskCreatedAt)

      The Unix timestamp for the time when the task was created.

      Parameters:
      taskCreatedAt - The Unix timestamp for the time when the task was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startedAt

      EcsTaskDetails.Builder startedAt(Instant startedAt)

      The Unix timestamp for the time when the task started.

      Parameters:
      startedAt - The Unix timestamp for the time when the task started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startedBy

      EcsTaskDetails.Builder startedBy(String startedBy)

      Contains the tag specified when a task is started.

      Parameters:
      startedBy - Contains the tag specified when a task is started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags of the ECS Task.

      Parameters:
      tags - The tags of the ECS Task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      EcsTaskDetails.Builder tags(Tag... tags)

      The tags of the ECS Task.

      Parameters:
      tags - The tags of the ECS Task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags of the ECS Task.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • volumes

      The list of data volume definitions for the task.

      Parameters:
      volumes - The list of data volume definitions for the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • volumes

      EcsTaskDetails.Builder volumes(Volume... volumes)

      The list of data volume definitions for the task.

      Parameters:
      volumes - The list of data volume definitions for the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • volumes

      The list of data volume definitions for the task.

      This is a convenience method that creates an instance of the Volume.Builder avoiding the need to create one manually via Volume.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to volumes(List<Volume>).

      Parameters:
      volumes - a consumer that will call methods on Volume.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • containers

      EcsTaskDetails.Builder containers(Collection<Container> containers)

      The containers that's associated with the task.

      Parameters:
      containers - The containers that's associated with the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containers

      EcsTaskDetails.Builder containers(Container... containers)

      The containers that's associated with the task.

      Parameters:
      containers - The containers that's associated with the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containers

      The containers that's associated with the task.

      This is a convenience method that creates an instance of the Container.Builder avoiding the need to create one manually via Container.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to containers(List<Container>).

      Parameters:
      containers - a consumer that will call methods on Container.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • group

      The name of the task group that's associated with the task.

      Parameters:
      group - The name of the task group that's associated with the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • launchType

      EcsTaskDetails.Builder launchType(String launchType)

      A capacity on which the task is running. For example, Fargate and EC2.

      Parameters:
      launchType - A capacity on which the task is running. For example, Fargate and EC2.
      Returns:
      Returns a reference to this object so that method calls can be chained together.