@Generated(value="software.amazon.awssdk:codegen") public final class PollForActivityTaskResponse extends SwfResponse implements ToCopyableBuilder<PollForActivityTaskResponse.Builder,PollForActivityTaskResponse>
Unit of work sent to an activity worker.
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
PollForActivityTaskResponse.Builder  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
activityId()
 The unique ID of the task. 
 | 
ActivityType | 
activityType()
 The type of this activity task. 
 | 
static PollForActivityTaskResponse.Builder | 
builder()  | 
boolean | 
equals(Object obj)  | 
<T> Optional<T> | 
getValueForField(String fieldName,
                Class<T> clazz)
Used to retrieve the value of a field from any class that extends  
SdkResponse. | 
int | 
hashCode()  | 
String | 
input()
 The inputs provided when the activity task was scheduled. 
 | 
List<SdkField<?>> | 
sdkFields()  | 
static Class<? extends PollForActivityTaskResponse.Builder> | 
serializableBuilderClass()  | 
Long | 
startedEventId()
 The ID of the  
ActivityTaskStarted event recorded in the history. | 
String | 
taskToken()
 The opaque string used as a handle on the task. 
 | 
PollForActivityTaskResponse.Builder | 
toBuilder()
Take this object and create a builder that contains all of the current property values of this object. 
 | 
String | 
toString()  | 
WorkflowExecution | 
workflowExecution()
 The workflow execution that started this activity task. 
 | 
responseMetadatasdkHttpResponsecopypublic 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.
public String activityId()
The unique ID of the task.
public Long startedEventId()
 The ID of the ActivityTaskStarted event recorded in the history.
 
ActivityTaskStarted event recorded in the history.public WorkflowExecution workflowExecution()
The workflow execution that started this activity task.
public ActivityType activityType()
The type of this activity task.
public 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.
public PollForActivityTaskResponse.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<PollForActivityTaskResponse.Builder,PollForActivityTaskResponse>toBuilder in class AwsResponsepublic static PollForActivityTaskResponse.Builder builder()
public static Class<? extends PollForActivityTaskResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponseSdkResponse. The field name
 specified should match the member name from the corresponding service-2.json model specified in the
 codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
 If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class) method will
 again be available.getValueForField in class SdkResponsefieldName - The name of the member to be retrieved.clazz - The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.