Interface PollForTaskResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<PollForTaskResponse.Builder,PollForTaskResponse>, DataPipelineResponse.Builder, SdkBuilder<PollForTaskResponse.Builder,PollForTaskResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
PollForTaskResponse

public static interface PollForTaskResponse.Builder extends DataPipelineResponse.Builder, SdkPojo, CopyableBuilder<PollForTaskResponse.Builder,PollForTaskResponse>
  • Method Details

    • taskObject

      PollForTaskResponse.Builder taskObject(TaskObject taskObject)

      The information needed to complete the task that is being assigned to the task runner. One of the fields returned in this object is taskId, which contains an identifier for the task being assigned. The calling task runner uses taskId in subsequent calls to ReportTaskProgress and SetTaskStatus.

      Parameters:
      taskObject - The information needed to complete the task that is being assigned to the task runner. One of the fields returned in this object is taskId, which contains an identifier for the task being assigned. The calling task runner uses taskId in subsequent calls to ReportTaskProgress and SetTaskStatus.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taskObject

      default PollForTaskResponse.Builder taskObject(Consumer<TaskObject.Builder> taskObject)

      The information needed to complete the task that is being assigned to the task runner. One of the fields returned in this object is taskId, which contains an identifier for the task being assigned. The calling task runner uses taskId in subsequent calls to ReportTaskProgress and SetTaskStatus.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to taskObject(TaskObject).

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