Class PollForTaskResult
- java.lang.Object
-
- com.amazonaws.services.datapipeline.model.PollForTaskResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PollForTaskResult extends Object implements Serializable, Cloneable
Contains the output of PollForTask.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PollForTaskResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PollForTaskResult
clone()
boolean
equals(Object obj)
TaskObject
getTaskObject()
The information needed to complete the task that is being assigned to the task runner.int
hashCode()
void
setTaskObject(TaskObject taskObject)
The information needed to complete the task that is being assigned to the task runner.String
toString()
Returns a string representation of this object; useful for testing and debugging.PollForTaskResult
withTaskObject(TaskObject taskObject)
The information needed to complete the task that is being assigned to the task runner.
-
-
-
Method Detail
-
setTaskObject
public void setTaskObject(TaskObject taskObject)
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 usestaskId
in subsequent calls to ReportTaskProgress and SetTaskStatus.- Parameters:
taskObject
- The information needed to complete the task that is being assigned to the task runner. One of the fields returned in this object istaskId
, which contains an identifier for the task being assigned. The calling task runner usestaskId
in subsequent calls to ReportTaskProgress and SetTaskStatus.
-
getTaskObject
public TaskObject getTaskObject()
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 usestaskId
in subsequent calls to ReportTaskProgress and SetTaskStatus.- Returns:
- 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 usestaskId
in subsequent calls to ReportTaskProgress and SetTaskStatus.
-
withTaskObject
public PollForTaskResult withTaskObject(TaskObject taskObject)
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 usestaskId
in subsequent calls to ReportTaskProgress and SetTaskStatus.- Parameters:
taskObject
- The information needed to complete the task that is being assigned to the task runner. One of the fields returned in this object istaskId
, which contains an identifier for the task being assigned. The calling task runner usestaskId
in subsequent calls to ReportTaskProgress and SetTaskStatus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PollForTaskResult clone()
-
-