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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PollForActivityTaskResponse.Builder
activityId(String activityId)
The unique ID of the task.default PollForActivityTaskResponse.Builder
activityType(Consumer<ActivityType.Builder> activityType)
The type of this activity task.PollForActivityTaskResponse.Builder
activityType(ActivityType 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 theActivityTaskStarted
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.-
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, 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
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.
- 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
PollForActivityTaskResponse.Builder activityId(String 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 theActivityTaskStarted
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 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)
-
activityType
PollForActivityTaskResponse.Builder activityType(ActivityType 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
default PollForActivityTaskResponse.Builder activityType(Consumer<ActivityType.Builder> activityType)
The type of this activity task.
This is a convenience method that creates an instance of theActivityType.Builder
avoiding the need to create one manually viaActivityType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactivityType(ActivityType)
.- Parameters:
activityType
- a consumer that will call methods onActivityType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
activityType(ActivityType)
-
input
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.
- 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.
-
-