Class TaskObject
- java.lang.Object
-
- com.amazonaws.services.datapipeline.model.TaskObject
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class TaskObject extends Object implements Serializable, Cloneable
Contains information about a pipeline task that is assigned to a task runner.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaskObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskObject
addObjectsEntry(String key, PipelineObject value)
TaskObject
clearObjectsEntries()
Removes all the entries added into Objects.TaskObject
clone()
boolean
equals(Object obj)
String
getAttemptId()
The ID of the pipeline task attempt object.Map<String,PipelineObject>
getObjects()
Connection information for the location where the task runner will publish the output of the task.String
getPipelineId()
The ID of the pipeline that provided the task.String
getTaskId()
An internal identifier for the task.int
hashCode()
void
setAttemptId(String attemptId)
The ID of the pipeline task attempt object.void
setObjects(Map<String,PipelineObject> objects)
Connection information for the location where the task runner will publish the output of the task.void
setPipelineId(String pipelineId)
The ID of the pipeline that provided the task.void
setTaskId(String taskId)
An internal identifier for the task.String
toString()
Returns a string representation of this object; useful for testing and debugging.TaskObject
withAttemptId(String attemptId)
The ID of the pipeline task attempt object.TaskObject
withObjects(Map<String,PipelineObject> objects)
Connection information for the location where the task runner will publish the output of the task.TaskObject
withPipelineId(String pipelineId)
The ID of the pipeline that provided the task.TaskObject
withTaskId(String taskId)
An internal identifier for the task.
-
-
-
Method Detail
-
setTaskId
public void setTaskId(String taskId)
An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress actions.
- Parameters:
taskId
- An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress actions.
-
getTaskId
public String getTaskId()
An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress actions.
- Returns:
- An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress actions.
-
withTaskId
public TaskObject withTaskId(String taskId)
An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress actions.
- Parameters:
taskId
- An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPipelineId
public void setPipelineId(String pipelineId)
The ID of the pipeline that provided the task.
- Parameters:
pipelineId
- The ID of the pipeline that provided the task.
-
getPipelineId
public String getPipelineId()
The ID of the pipeline that provided the task.
- Returns:
- The ID of the pipeline that provided the task.
-
withPipelineId
public TaskObject withPipelineId(String pipelineId)
The ID of the pipeline that provided the task.
- Parameters:
pipelineId
- The ID of the pipeline that provided the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAttemptId
public void setAttemptId(String attemptId)
The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a task is attempted.
- Parameters:
attemptId
- The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a task is attempted.
-
getAttemptId
public String getAttemptId()
The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a task is attempted.
- Returns:
- The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a task is attempted.
-
withAttemptId
public TaskObject withAttemptId(String attemptId)
The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a task is attempted.
- Parameters:
attemptId
- The ID of the pipeline task attempt object. AWS Data Pipeline uses this value to track how many times a task is attempted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getObjects
public Map<String,PipelineObject> getObjects()
Connection information for the location where the task runner will publish the output of the task.
- Returns:
- Connection information for the location where the task runner will publish the output of the task.
-
setObjects
public void setObjects(Map<String,PipelineObject> objects)
Connection information for the location where the task runner will publish the output of the task.
- Parameters:
objects
- Connection information for the location where the task runner will publish the output of the task.
-
withObjects
public TaskObject withObjects(Map<String,PipelineObject> objects)
Connection information for the location where the task runner will publish the output of the task.
- Parameters:
objects
- Connection information for the location where the task runner will publish the output of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addObjectsEntry
public TaskObject addObjectsEntry(String key, PipelineObject value)
-
clearObjectsEntries
public TaskObject clearObjectsEntries()
Removes all the entries added into Objects. <p> 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 TaskObject clone()
-
-