@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ActivityTask extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Unit of work sent to an activity worker.
Constructor and Description |
---|
ActivityTask() |
Modifier and Type | Method and Description |
---|---|
ActivityTask |
clone() |
boolean |
equals(Object obj) |
String |
getActivityId()
The unique ID of the task.
|
ActivityType |
getActivityType()
The type of this activity task.
|
String |
getInput()
The inputs provided when the activity task was scheduled.
|
Long |
getStartedEventId()
The ID of the
ActivityTaskStarted event recorded in the history. |
String |
getTaskToken()
The opaque string used as a handle on the task.
|
WorkflowExecution |
getWorkflowExecution()
The workflow execution that started this activity task.
|
int |
hashCode() |
void |
setActivityId(String activityId)
The unique ID of the task.
|
void |
setActivityType(ActivityType activityType)
The type of this activity task.
|
void |
setInput(String input)
The inputs provided when the activity task was scheduled.
|
void |
setStartedEventId(Long startedEventId)
The ID of the
ActivityTaskStarted event recorded in the history. |
void |
setTaskToken(String taskToken)
The opaque string used as a handle on the task.
|
void |
setWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ActivityTask |
withActivityId(String activityId)
The unique ID of the task.
|
ActivityTask |
withActivityType(ActivityType activityType)
The type of this activity task.
|
ActivityTask |
withInput(String input)
The inputs provided when the activity task was scheduled.
|
ActivityTask |
withStartedEventId(Long startedEventId)
The ID of the
ActivityTaskStarted event recorded in the history. |
ActivityTask |
withTaskToken(String taskToken)
The opaque string used as a handle on the task.
|
ActivityTask |
withWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setTaskToken(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.public String getTaskToken()
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 ActivityTask withTaskToken(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.public void setActivityId(String activityId)
The unique ID of the task.
activityId
- The unique ID of the task.public String getActivityId()
The unique ID of the task.
public ActivityTask withActivityId(String activityId)
The unique ID of the task.
activityId
- The unique ID of the task.public void setStartedEventId(Long startedEventId)
The ID of the ActivityTaskStarted
event recorded in the history.
startedEventId
- The ID of the ActivityTaskStarted
event recorded in the history.public Long getStartedEventId()
The ID of the ActivityTaskStarted
event recorded in the history.
ActivityTaskStarted
event recorded in the history.public ActivityTask withStartedEventId(Long startedEventId)
The ID of the ActivityTaskStarted
event recorded in the history.
startedEventId
- The ID of the ActivityTaskStarted
event recorded in the history.public void setWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.
workflowExecution
- The workflow execution that started this activity task.public WorkflowExecution getWorkflowExecution()
The workflow execution that started this activity task.
public ActivityTask withWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.
workflowExecution
- The workflow execution that started this activity task.public void setActivityType(ActivityType activityType)
The type of this activity task.
activityType
- The type of this activity task.public ActivityType getActivityType()
The type of this activity task.
public ActivityTask withActivityType(ActivityType activityType)
The type of this activity task.
activityType
- The type of this activity task.public void setInput(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.public String getInput()
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 ActivityTask withInput(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.public String toString()
toString
in class Object
Object.toString()
public ActivityTask clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.