Interface EcsTaskDetails.Builder

    • Method Detail

      • arn

        EcsTaskDetails.Builder arn​(String 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

        EcsTaskDetails.Builder tags​(Collection<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

        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

        EcsTaskDetails.Builder tags​(Consumer<Tag.Builder>... 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).

        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:
        #tags(java.util.Collection)
      • volumes

        EcsTaskDetails.Builder volumes​(Collection<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

        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

        EcsTaskDetails.Builder volumes​(Consumer<Volume.Builder>... 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).

        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:
        #volumes(java.util.Collection)
      • 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.
      • group

        EcsTaskDetails.Builder group​(String 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.