public class PollForTaskResult extends Object implements Serializable, Cloneable
Contains the output from the PollForTask action.
Constructor and Description |
---|
PollForTaskResult() |
Modifier and Type | Method and Description |
---|---|
PollForTaskResult |
clone() |
boolean |
equals(Object obj) |
TaskObject |
getTaskObject()
An instance of TaskObject.
|
int |
hashCode() |
void |
setTaskObject(TaskObject taskObject)
An instance of TaskObject.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PollForTaskResult |
withTaskObject(TaskObject taskObject)
An instance of TaskObject.
|
public TaskObject getTaskObject()
public void setTaskObject(TaskObject taskObject)
taskObject
- An instance of TaskObject. The returned object contains all the
information needed to complete the task that is being assigned to the
task runner. One of the fields returned in this object is taskId,
which contains an identifier for the task being assigned. The calling
task runner uses taskId in subsequent calls to
ReportTaskProgress and SetTaskStatus.public PollForTaskResult withTaskObject(TaskObject taskObject)
Returns a reference to this object so that method calls can be chained together.
taskObject
- An instance of TaskObject. The returned object contains all the
information needed to complete the task that is being assigned to the
task runner. One of the fields returned in this object is taskId,
which contains an identifier for the task being assigned. The calling
task runner uses taskId in subsequent calls to
ReportTaskProgress and SetTaskStatus.public String toString()
toString
in class Object
Object.toString()
public PollForTaskResult clone()
Copyright © 2015. All rights reserved.