Interface PollForDecisionTaskResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PollForDecisionTaskResponse.Builder,
,PollForDecisionTaskResponse> SdkBuilder<PollForDecisionTaskResponse.Builder,
,PollForDecisionTaskResponse> SdkPojo
,SdkResponse.Builder
,SwfResponse.Builder
- Enclosing class:
PollForDecisionTaskResponse
-
Method Summary
Modifier and TypeMethodDescriptionevents
(Collection<HistoryEvent> events) A paginated list of history events of the workflow execution.events
(Consumer<HistoryEvent.Builder>... events) A paginated list of history events of the workflow execution.events
(HistoryEvent... events) A paginated list of history events of the workflow execution.nextPageToken
(String nextPageToken) If aNextPageToken
was returned by a previous call, there are more results available.previousStartedEventId
(Long previousStartedEventId) The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider.startedEventId
(Long startedEventId) The ID of theDecisionTaskStarted
event recorded in the history.The opaque string used as a handle on the task.workflowExecution
(Consumer<WorkflowExecution.Builder> workflowExecution) The workflow execution for which this decision task was created.workflowExecution
(WorkflowExecution workflowExecution) The workflow execution for which this decision task was created.workflowType
(Consumer<WorkflowType.Builder> workflowType) The type of the workflow execution for which this decision task was created.workflowType
(WorkflowType workflowType) The type of the workflow execution for which this decision task was created.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.
-
startedEventId
The ID of the
DecisionTaskStarted
event recorded in the history.- Parameters:
startedEventId
- The ID of theDecisionTaskStarted
event recorded in the history.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflowExecution
The workflow execution for which this decision task was created.
- Parameters:
workflowExecution
- The workflow execution for which this decision task was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflowExecution
default PollForDecisionTaskResponse.Builder workflowExecution(Consumer<WorkflowExecution.Builder> workflowExecution) The workflow execution for which this decision task was created.
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:
-
workflowType
The type of the workflow execution for which this decision task was created.
- Parameters:
workflowType
- The type of the workflow execution for which this decision task was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflowType
default PollForDecisionTaskResponse.Builder workflowType(Consumer<WorkflowType.Builder> workflowType) The type of the workflow execution for which this decision task was created.
This is a convenience method that creates an instance of theWorkflowType.Builder
avoiding the need to create one manually viaWorkflowType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toworkflowType(WorkflowType)
.- Parameters:
workflowType
- a consumer that will call methods onWorkflowType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
events
A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
- Parameters:
events
- A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
- Parameters:
events
- A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
This is a convenience method that creates an instance of theHistoryEvent.Builder
avoiding the need to create one manually viaHistoryEvent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toevents(List<HistoryEvent>)
.- Parameters:
events
- a consumer that will call methods onHistoryEvent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextPageToken
If a
NextPageToken
was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token innextPageToken
. Keep all other arguments unchanged.The configured
maximumPageSize
determines how many results can be returned in a single call.- Parameters:
nextPageToken
- If aNextPageToken
was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token innextPageToken
. Keep all other arguments unchanged.The configured
maximumPageSize
determines how many results can be returned in a single call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
previousStartedEventId
The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider.
- Parameters:
previousStartedEventId
- The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-