public static interface PollForActivityTaskResponse.Builder extends SwfResponse.Builder, CopyableBuilder<PollForActivityTaskResponse.Builder,PollForActivityTaskResponse>
Modifier and Type | Method and Description |
---|---|
PollForActivityTaskResponse.Builder |
activityId(String activityId)
The unique ID of the task.
|
PollForActivityTaskResponse.Builder |
activityType(ActivityType activityType)
The type of this activity task.
|
default PollForActivityTaskResponse.Builder |
activityType(Consumer<ActivityType.Builder> activityType)
The type of this activity task.
|
PollForActivityTaskResponse.Builder |
input(String input)
The inputs provided when the activity task was scheduled.
|
PollForActivityTaskResponse.Builder |
startedEventId(Long startedEventId)
The ID of the
ActivityTaskStarted event recorded in the history. |
PollForActivityTaskResponse.Builder |
taskToken(String taskToken)
The opaque string used as a handle on the task.
|
default PollForActivityTaskResponse.Builder |
workflowExecution(Consumer<WorkflowExecution.Builder> workflowExecution)
The workflow execution that started this activity task.
|
PollForActivityTaskResponse.Builder |
workflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
PollForActivityTaskResponse.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.PollForActivityTaskResponse.Builder activityId(String activityId)
The unique ID of the task.
activityId
- The unique ID of the task.PollForActivityTaskResponse.Builder startedEventId(Long startedEventId)
The ID of the ActivityTaskStarted
event recorded in the history.
startedEventId
- The ID of the ActivityTaskStarted
event recorded in the history.PollForActivityTaskResponse.Builder workflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.
workflowExecution
- The workflow execution that started this activity task.default PollForActivityTaskResponse.Builder workflowExecution(Consumer<WorkflowExecution.Builder> workflowExecution)
The workflow execution that started this activity task.
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)
PollForActivityTaskResponse.Builder activityType(ActivityType activityType)
The type of this activity task.
activityType
- The type of this activity task.default PollForActivityTaskResponse.Builder activityType(Consumer<ActivityType.Builder> activityType)
The type of this activity task.
This is a convenience that creates an instance of theActivityType.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)
.activityType
- a consumer that will call methods on ActivityType.Builder
activityType(ActivityType)
PollForActivityTaskResponse.Builder input(String 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.
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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.