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 Summary
Modifier and TypeMethodDescriptiondefault PollForTaskResponse.Builder
taskObject
(Consumer<TaskObject.Builder> taskObject) The information needed to complete the task that is being assigned to the task runner.taskObject
(TaskObject taskObject) The information needed to complete the task that is being assigned to the task runner.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.datapipeline.model.DataPipelineResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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 usestaskId
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 istaskId
, which contains an identifier for the task being assigned. The calling task runner usestaskId
in subsequent calls to ReportTaskProgress and SetTaskStatus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
This is a convenience method that creates an instance of thetaskId
, which contains an identifier for the task being assigned. The calling task runner usestaskId
in subsequent calls to ReportTaskProgress and SetTaskStatus.TaskObject.Builder
avoiding the need to create one manually viaTaskObject.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totaskObject(TaskObject)
.- Parameters:
taskObject
- a consumer that will call methods onTaskObject.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-