Interface PollForDecisionTaskResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PollForDecisionTaskResponse.Builder,PollForDecisionTaskResponse>
,SdkBuilder<PollForDecisionTaskResponse.Builder,PollForDecisionTaskResponse>
,SdkPojo
,SdkResponse.Builder
,SwfResponse.Builder
- Enclosing class:
- PollForDecisionTaskResponse
@Mutable @NotThreadSafe public static interface PollForDecisionTaskResponse.Builder extends SwfResponse.Builder, SdkPojo, CopyableBuilder<PollForDecisionTaskResponse.Builder,PollForDecisionTaskResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PollForDecisionTaskResponse.Builder
events(Collection<HistoryEvent> events)
A paginated list of history events of the workflow execution.PollForDecisionTaskResponse.Builder
events(Consumer<HistoryEvent.Builder>... 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 aNextPageToken
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 theDecisionTaskStarted
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.-
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, sdkFieldNameToField, 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 Detail
-
taskToken
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.
- 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
PollForDecisionTaskResponse.Builder startedEventId(Long 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
PollForDecisionTaskResponse.Builder workflowExecution(WorkflowExecution 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:
workflowExecution(WorkflowExecution)
-
workflowType
PollForDecisionTaskResponse.Builder workflowType(WorkflowType 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:
workflowType(WorkflowType)
-
events
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.
- 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
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.
- 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
PollForDecisionTaskResponse.Builder events(Consumer<HistoryEvent.Builder>... 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 to#events(List
.) - 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:
#events(java.util.Collection
)
-
nextPageToken
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 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
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.
- 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.
-
-