public class TaskObject extends Object implements Serializable, Cloneable
Contains information about a pipeline task that is assigned to a task runner.
| Constructor and Description |
|---|
TaskObject() |
| Modifier and Type | Method and Description |
|---|---|
TaskObject |
addObjectsEntry(String key,
PipelineObject value)
Connection information for the location where the task runner will
publish the output of the task.
|
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.
|
public String getTaskId()
Constraints:
Length: 1 - 2048
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setTaskId(String taskId)
Constraints:
Length: 1 - 2048
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
taskId - An internal identifier for the task. This ID is passed to the
SetTaskStatus and ReportTaskProgress actions.public TaskObject withTaskId(String taskId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
taskId - An internal identifier for the task. This ID is passed to the
SetTaskStatus and ReportTaskProgress actions.public String getPipelineId()
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setPipelineId(String pipelineId)
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
pipelineId - The ID of the pipeline that provided the task.public TaskObject withPipelineId(String pipelineId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
pipelineId - The ID of the pipeline that provided the task.public String getAttemptId()
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAttemptId(String attemptId)
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 TaskObject withAttemptId(String attemptId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 Map<String,PipelineObject> getObjects()
public void setObjects(Map<String,PipelineObject> objects)
objects - Connection information for the location where the task runner will
publish the output of the task.public TaskObject withObjects(Map<String,PipelineObject> objects)
Returns a reference to this object so that method calls can be chained together.
objects - Connection information for the location where the task runner will
publish the output of the task.public TaskObject addObjectsEntry(String key, PipelineObject value)
The method adds a new key-value pair into Objects parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Objects.value - The corresponding value of the entry to be added into Objects.public TaskObject clearObjectsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()public TaskObject clone()
Copyright © 2015. All rights reserved.