Interface PollForActivityTaskResponse.Builder

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

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

      The unique ID of the task.

      Parameters:
      activityId - The unique ID of the task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startedEventId

      PollForActivityTaskResponse.Builder startedEventId(Long startedEventId)

      The ID of the ActivityTaskStarted event recorded in the history.

      Parameters:
      startedEventId - The ID of the ActivityTaskStarted event recorded in the history.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workflowExecution

      PollForActivityTaskResponse.Builder workflowExecution(WorkflowExecution workflowExecution)

      The workflow execution that started this activity task.

      Parameters:
      workflowExecution - The workflow execution that started this activity task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workflowExecution

      default PollForActivityTaskResponse.Builder workflowExecution(Consumer<WorkflowExecution.Builder> workflowExecution)

      The workflow execution that started this activity task.

      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:
    • activityType

      The type of this activity task.

      Parameters:
      activityType - The type of this activity task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • activityType

      The type of this activity task.

      This is a convenience method that creates an instance of the ActivityType.Builder avoiding the need to create one manually via ActivityType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to activityType(ActivityType).

      Parameters:
      activityType - a consumer that will call methods on ActivityType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • input

      The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.

      Parameters:
      input - The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.