Package com.amazonaws.services.ecs.model
Class DescribeTasksResult
- java.lang.Object
-
- com.amazonaws.services.ecs.model.DescribeTasksResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeTasksResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeTasksResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeTasksResult
clone()
boolean
equals(Object obj)
List<Failure>
getFailures()
Any failures associated with the call.List<Task>
getTasks()
The list of tasks.int
hashCode()
void
setFailures(Collection<Failure> failures)
Any failures associated with the call.void
setTasks(Collection<Task> tasks)
The list of tasks.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeTasksResult
withFailures(Failure... failures)
Any failures associated with the call.DescribeTasksResult
withFailures(Collection<Failure> failures)
Any failures associated with the call.DescribeTasksResult
withTasks(Task... tasks)
The list of tasks.DescribeTasksResult
withTasks(Collection<Task> tasks)
The list of tasks.
-
-
-
Method Detail
-
setTasks
public void setTasks(Collection<Task> tasks)
The list of tasks.
- Parameters:
tasks
- The list of tasks.
-
withTasks
public DescribeTasksResult withTasks(Task... tasks)
The list of tasks.
NOTE: This method appends the values to the existing list (if any). Use
setTasks(java.util.Collection)
orwithTasks(java.util.Collection)
if you want to override the existing values.- Parameters:
tasks
- The list of tasks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTasks
public DescribeTasksResult withTasks(Collection<Task> tasks)
The list of tasks.
- Parameters:
tasks
- The list of tasks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getFailures
public List<Failure> getFailures()
Any failures associated with the call.
- Returns:
- Any failures associated with the call.
-
setFailures
public void setFailures(Collection<Failure> failures)
Any failures associated with the call.
- Parameters:
failures
- Any failures associated with the call.
-
withFailures
public DescribeTasksResult withFailures(Failure... failures)
Any failures associated with the call.
NOTE: This method appends the values to the existing list (if any). Use
setFailures(java.util.Collection)
orwithFailures(java.util.Collection)
if you want to override the existing values.- Parameters:
failures
- Any failures associated with the call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withFailures
public DescribeTasksResult withFailures(Collection<Failure> failures)
Any failures associated with the call.
- Parameters:
failures
- Any failures associated with the call.- 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 DescribeTasksResult clone()
-
-