Interface RunTaskResponse.Builder

    • Method Detail

      • tasks

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

        A full description of the tasks that were run. The tasks that were successfully placed on your cluster are described here.

        Parameters:
        tasks - A full description of the tasks that were run. The tasks that were successfully placed on your cluster are described here.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tasks

        RunTaskResponse.Builder tasks​(Task... tasks)

        A full description of the tasks that were run. The tasks that were successfully placed on your cluster are described here.

        Parameters:
        tasks - A full description of the tasks that were run. The tasks that were successfully placed on your cluster are described here.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tasks

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

        A full description of the tasks that were run. The tasks that were successfully placed on your cluster are described here.

        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

        RunTaskResponse.Builder failures​(Failure... failures)

        Any failures associated with the call.

        For information about how to address failures, see Service event messages and API failure reasons in the Amazon Elastic Container Service Developer Guide.

        Parameters:
        failures - Any failures associated with the call.

        For information about how to address failures, see Service event messages and API failure reasons in the Amazon Elastic Container Service Developer Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.