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 TaskObjectaddObjectsEntry(String key, PipelineObject value)TaskObjectclearObjectsEntries()Removes all the entries added into Objects.TaskObjectclone()booleanequals(Object obj)StringgetAttemptId()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.StringgetPipelineId()The ID of the pipeline that provided the task.StringgetTaskId()An internal identifier for the task.inthashCode()voidsetAttemptId(String attemptId)The ID of the pipeline task attempt object.voidsetObjects(Map<String,PipelineObject> objects)Connection information for the location where the task runner will publish the output of the task.voidsetPipelineId(String pipelineId)The ID of the pipeline that provided the task.voidsetTaskId(String taskId)An internal identifier for the task.StringtoString()Returns a string representation of this object; useful for testing and debugging.TaskObjectwithAttemptId(String attemptId)The ID of the pipeline task attempt object.TaskObjectwithObjects(Map<String,PipelineObject> objects)Connection information for the location where the task runner will publish the output of the task.TaskObjectwithPipelineId(String pipelineId)The ID of the pipeline that provided the task.TaskObjectwithTaskId(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TaskObject clone()
-
-