public class TaskObject
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about a pipeline task that is assigned to a task runner.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attemptId
The ID of the pipeline task attempt object.
|
private java.util.Map<java.lang.String,PipelineObject> |
objects
Connection information for the location where the task runner will
publish the output of the task.
|
private java.lang.String |
pipelineId
The ID of the pipeline that provided the task.
|
private java.lang.String |
taskId
An internal identifier for the task.
|
Constructor and Description |
---|
TaskObject() |
Modifier and Type | Method and Description |
---|---|
TaskObject |
addObjectsEntry(java.lang.String key,
PipelineObject value) |
TaskObject |
clearObjectsEntries()
Removes all the entries added into Objects.
|
TaskObject |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttemptId()
The ID of the pipeline task attempt object.
|
java.util.Map<java.lang.String,PipelineObject> |
getObjects()
Connection information for the location where the task runner will
publish the output of the task.
|
java.lang.String |
getPipelineId()
The ID of the pipeline that provided the task.
|
java.lang.String |
getTaskId()
An internal identifier for the task.
|
int |
hashCode() |
void |
setAttemptId(java.lang.String attemptId)
The ID of the pipeline task attempt object.
|
void |
setObjects(java.util.Map<java.lang.String,PipelineObject> objects)
Connection information for the location where the task runner will
publish the output of the task.
|
void |
setPipelineId(java.lang.String pipelineId)
The ID of the pipeline that provided the task.
|
void |
setTaskId(java.lang.String taskId)
An internal identifier for the task.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TaskObject |
withAttemptId(java.lang.String attemptId)
The ID of the pipeline task attempt object.
|
TaskObject |
withObjects(java.util.Map<java.lang.String,PipelineObject> objects)
Connection information for the location where the task runner will
publish the output of the task.
|
TaskObject |
withPipelineId(java.lang.String pipelineId)
The ID of the pipeline that provided the task.
|
TaskObject |
withTaskId(java.lang.String taskId)
An internal identifier for the task.
|
private java.lang.String taskId
An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress actions.
private java.lang.String pipelineId
The ID of the pipeline that provided the task.
private java.lang.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.
private java.util.Map<java.lang.String,PipelineObject> objects
Connection information for the location where the task runner will publish the output of the task.
public void setTaskId(java.lang.String taskId)
An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress actions.
taskId
- An internal identifier for the task. This ID is passed to the
SetTaskStatus and ReportTaskProgress actions.public java.lang.String getTaskId()
An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress actions.
public TaskObject withTaskId(java.lang.String taskId)
An internal identifier for the task. This ID is passed to the SetTaskStatus and ReportTaskProgress actions.
taskId
- An internal identifier for the task. This ID is passed to the
SetTaskStatus and ReportTaskProgress actions.public void setPipelineId(java.lang.String pipelineId)
The ID of the pipeline that provided the task.
pipelineId
- The ID of the pipeline that provided the task.public java.lang.String getPipelineId()
The ID of the pipeline that provided the task.
public TaskObject withPipelineId(java.lang.String pipelineId)
The ID of the pipeline that provided the task.
pipelineId
- The ID of the pipeline that provided the task.public void setAttemptId(java.lang.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.
attemptId
- The ID of the pipeline task attempt object. AWS Data Pipeline uses
this value to track how many times a task is attempted.public java.lang.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.
public TaskObject withAttemptId(java.lang.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.
attemptId
- The ID of the pipeline task attempt object. AWS Data Pipeline uses
this value to track how many times a task is attempted.public java.util.Map<java.lang.String,PipelineObject> getObjects()
Connection information for the location where the task runner will publish the output of the task.
public void setObjects(java.util.Map<java.lang.String,PipelineObject> objects)
Connection information for the location where the task runner will publish the output of the task.
objects
- Connection information for the location where the task runner will
publish the output of the task.public TaskObject withObjects(java.util.Map<java.lang.String,PipelineObject> objects)
Connection information for the location where the task runner will publish the output of the task.
objects
- Connection information for the location where the task runner will
publish the output of the task.public TaskObject addObjectsEntry(java.lang.String key, PipelineObject value)
public TaskObject clearObjectsEntries()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TaskObject clone()
clone
in class java.lang.Object