Interface PollForDecisionTaskResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<PollForDecisionTaskResponse.Builder,PollForDecisionTaskResponse>, SdkBuilder<PollForDecisionTaskResponse.Builder,PollForDecisionTaskResponse>, SdkPojo, SdkResponse.Builder, SwfResponse.Builder
Enclosing class:
PollForDecisionTaskResponse

public static interface PollForDecisionTaskResponse.Builder extends SwfResponse.Builder, SdkPojo, CopyableBuilder<PollForDecisionTaskResponse.Builder,PollForDecisionTaskResponse>
  • 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

      PollForDecisionTaskResponse.Builder startedEventId(Long startedEventId)

      The ID of the DecisionTaskStarted event recorded in the history.

      Parameters:
      startedEventId - The ID of the DecisionTaskStarted 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 the WorkflowExecution.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).

      Parameters:
      workflowExecution - a consumer that will call methods on WorkflowExecution.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

      The type of the workflow execution for which this decision task was created.

      This is a convenience method that creates an instance of the WorkflowType.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).

      Parameters:
      workflowType - a consumer that will call methods on WorkflowType.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 the HistoryEvent.Builder avoiding the need to create one manually via HistoryEvent.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to events(List<HistoryEvent>).

      Parameters:
      events - a consumer that will call methods on HistoryEvent.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 in nextPageToken . Keep all other arguments unchanged.

      The configured maximumPageSize determines how many results can be returned in a single call.

      Parameters:
      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.

      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.