public static interface PollForDecisionTaskResponse.Builder extends SWFResponse.Builder, CopyableBuilder<PollForDecisionTaskResponse.Builder,PollForDecisionTaskResponse>
Modifier and Type | Method and Description |
---|---|
PollForDecisionTaskResponse.Builder |
events(Collection<HistoryEvent> events)
A paginated list of history events of the workflow execution.
|
PollForDecisionTaskResponse.Builder |
events(HistoryEvent... events)
A paginated list of history events of the workflow execution.
|
PollForDecisionTaskResponse.Builder |
nextPageToken(String nextPageToken)
If a
NextPageToken was returned by a previous call, there are more results available. |
PollForDecisionTaskResponse.Builder |
previousStartedEventId(Long previousStartedEventId)
The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was
processed by the decider.
|
PollForDecisionTaskResponse.Builder |
startedEventId(Long startedEventId)
The ID of the
DecisionTaskStarted event recorded in the history. |
PollForDecisionTaskResponse.Builder |
taskToken(String taskToken)
The opaque string used as a handle on the task.
|
default PollForDecisionTaskResponse.Builder |
workflowExecution(Consumer<WorkflowExecution.Builder> workflowExecution)
The workflow execution for which this decision task was created.
|
PollForDecisionTaskResponse.Builder |
workflowExecution(WorkflowExecution workflowExecution)
The workflow execution for which this decision task was created.
|
default PollForDecisionTaskResponse.Builder |
workflowType(Consumer<WorkflowType.Builder> workflowType)
The type of the workflow execution for which this decision task was created.
|
PollForDecisionTaskResponse.Builder |
workflowType(WorkflowType workflowType)
The type of the workflow execution for which this decision task was created.
|
build
copy
apply, build
PollForDecisionTaskResponse.Builder taskToken(String 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.
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.PollForDecisionTaskResponse.Builder startedEventId(Long startedEventId)
The ID of the DecisionTaskStarted
event recorded in the history.
startedEventId
- The ID of the DecisionTaskStarted
event recorded in the history.PollForDecisionTaskResponse.Builder workflowExecution(WorkflowExecution workflowExecution)
The workflow execution for which this decision task was created.
workflowExecution
- The workflow execution for which this decision task was created.default PollForDecisionTaskResponse.Builder workflowExecution(Consumer<WorkflowExecution.Builder> workflowExecution)
The workflow execution for which this decision task was created.
This is a convenience that creates an instance of theWorkflowExecution.Builder
avoiding the need to
create one manually via WorkflowExecution.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to workflowExecution(WorkflowExecution)
.workflowExecution
- a consumer that will call methods on WorkflowExecution.Builder
workflowExecution(WorkflowExecution)
PollForDecisionTaskResponse.Builder workflowType(WorkflowType workflowType)
The type of the workflow execution for which this decision task was created.
workflowType
- The type of the workflow execution for which this decision task was created.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 that creates an instance of theWorkflowType.Builder
avoiding the need to
create one manually via WorkflowType.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to workflowType(WorkflowType)
.workflowType
- a consumer that will call methods on WorkflowType.Builder
workflowType(WorkflowType)
PollForDecisionTaskResponse.Builder events(Collection<HistoryEvent> events)
A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
events
- A paginated list of history events of the workflow execution. The decider uses this during the
processing of the decision task.PollForDecisionTaskResponse.Builder events(HistoryEvent... events)
A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
events
- A paginated list of history events of the workflow execution. The decider uses this during the
processing of the decision task.PollForDecisionTaskResponse.Builder nextPageToken(String 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 in nextPageToken
. Keep all other arguments unchanged.
The configured maximumPageSize
determines how many results can be returned in a single call.
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 in
nextPageToken
. Keep all other arguments unchanged.
The configured maximumPageSize
determines how many results can be returned in a single
call.
PollForDecisionTaskResponse.Builder previousStartedEventId(Long 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.
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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.