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.Builderevents(Collection<HistoryEvent> events)A paginated list of history events of the workflow execution.PollForDecisionTaskResponse.Builderevents(Consumer<HistoryEvent.Builder>... events)A paginated list of history events of the workflow execution.PollForDecisionTaskResponse.Builderevents(HistoryEvent... events)A paginated list of history events of the workflow execution.PollForDecisionTaskResponse.BuildernextPageToken(String nextPageToken)If aNextPageTokenwas returned by a previous call, there are more results available.PollForDecisionTaskResponse.BuilderpreviousStartedEventId(Long previousStartedEventId)The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider.PollForDecisionTaskResponse.BuilderstartedEventId(Long startedEventId)The ID of theDecisionTaskStartedevent recorded in the history.PollForDecisionTaskResponse.BuildertaskToken(String taskToken)The opaque string used as a handle on the task.default PollForDecisionTaskResponse.BuilderworkflowExecution(Consumer<WorkflowExecution.Builder> workflowExecution)The workflow execution for which this decision task was created.PollForDecisionTaskResponse.BuilderworkflowExecution(WorkflowExecution workflowExecution)The workflow execution for which this decision task was created.default PollForDecisionTaskResponse.BuilderworkflowType(Consumer<WorkflowType.Builder> workflowType)The type of the workflow execution for which this decision task was created.PollForDecisionTaskResponse.BuilderworkflowType(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
DecisionTaskStartedevent recorded in the history.- Parameters:
startedEventId- The ID of theDecisionTaskStartedevent 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.Builderavoiding the need to create one manually viaWorkflowExecution.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaWorkflowType.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaHistoryEvent.builder().When the
Consumercompletes,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
NextPageTokenwas 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
maximumPageSizedetermines how many results can be returned in a single call.- Parameters:
nextPageToken- If aNextPageTokenwas 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
maximumPageSizedetermines 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.
-
-