Interface StartTaskResponse.Builder

    • Method Detail

      • tasks

        StartTaskResponse.Builder tasks​(Collection<Task> tasks)

        A full description of the tasks that were started. Each task that was successfully placed on your container instances is described.

        Parameters:
        tasks - A full description of the tasks that were started. Each task that was successfully placed on your container instances is described.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tasks

        StartTaskResponse.Builder tasks​(Task... tasks)

        A full description of the tasks that were started. Each task that was successfully placed on your container instances is described.

        Parameters:
        tasks - A full description of the tasks that were started. Each task that was successfully placed on your container instances is described.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tasks

        StartTaskResponse.Builder tasks​(Consumer<Task.Builder>... tasks)

        A full description of the tasks that were started. Each task that was successfully placed on your container instances is described.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tasks(List).

        Parameters:
        tasks - a consumer that will call methods on Task.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tasks(java.util.Collection)
      • failures

        StartTaskResponse.Builder failures​(Collection<Failure> failures)

        Any failures associated with the call.

        Parameters:
        failures - Any failures associated with the call.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failures

        StartTaskResponse.Builder failures​(Failure... failures)

        Any failures associated with the call.

        Parameters:
        failures - Any failures associated with the call.
        Returns:
        Returns a reference to this object so that method calls can be chained together.