Interface PollForActivityTaskResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PollForActivityTaskResponse.Builder,
,PollForActivityTaskResponse> SdkBuilder<PollForActivityTaskResponse.Builder,
,PollForActivityTaskResponse> SdkPojo
,SdkResponse.Builder
,SwfResponse.Builder
- Enclosing class:
PollForActivityTaskResponse
-
Method Summary
Modifier and TypeMethodDescriptionactivityId
(String activityId) The unique ID of the task.activityType
(Consumer<ActivityType.Builder> activityType) The type of this activity task.activityType
(ActivityType activityType) The type of this activity task.The inputs provided when the activity task was scheduled.startedEventId
(Long startedEventId) The ID of theActivityTaskStarted
event recorded in the history.The opaque string used as a handle on the task.workflowExecution
(Consumer<WorkflowExecution.Builder> workflowExecution) The workflow execution that started this activity task.workflowExecution
(WorkflowExecution workflowExecution) The workflow execution that started this activity task.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
Methods inherited from interface software.amazon.awssdk.services.swf.model.SwfResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
taskToken
The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
- Parameters:
taskToken
- The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activityId
The unique ID of the task.
- Parameters:
activityId
- The unique ID of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedEventId
The ID of the
ActivityTaskStarted
event recorded in the history.- Parameters:
startedEventId
- The ID of theActivityTaskStarted
event recorded in the history.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflowExecution
The workflow execution that started this activity task.
- Parameters:
workflowExecution
- The workflow execution that started this activity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflowExecution
default PollForActivityTaskResponse.Builder workflowExecution(Consumer<WorkflowExecution.Builder> workflowExecution) The workflow execution that started this activity task.
This is a convenience method that creates an instance of theWorkflowExecution.Builder
avoiding the need to create one manually viaWorkflowExecution.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toworkflowExecution(WorkflowExecution)
.- Parameters:
workflowExecution
- a consumer that will call methods onWorkflowExecution.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
activityType
The type of this activity task.
- Parameters:
activityType
- The type of this activity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activityType
default PollForActivityTaskResponse.Builder activityType(Consumer<ActivityType.Builder> activityType) The type of this activity task.
This is a convenience method that creates an instance of theActivityType.Builder
avoiding the need to create one manually viaActivityType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactivityType(ActivityType)
.- Parameters:
activityType
- a consumer that will call methods onActivityType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
input
The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.
- Parameters:
input
- The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-