Class RunTaskResult
- java.lang.Object
-
- com.amazonaws.services.ecs.model.RunTaskResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class RunTaskResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RunTaskResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunTaskResult
clone()
boolean
equals(Object obj)
List<Failure>
getFailures()
Any failures associated with the call.List<Task>
getTasks()
A full description of the tasks that were run.int
hashCode()
void
setFailures(Collection<Failure> failures)
Any failures associated with the call.void
setTasks(Collection<Task> tasks)
A full description of the tasks that were run.String
toString()
Returns a string representation of this object; useful for testing and debugging.RunTaskResult
withFailures(Failure... failures)
Any failures associated with the call.RunTaskResult
withFailures(Collection<Failure> failures)
Any failures associated with the call.RunTaskResult
withTasks(Task... tasks)
A full description of the tasks that were run.RunTaskResult
withTasks(Collection<Task> tasks)
A full description of the tasks that were run.
-
-
-
Method Detail
-
getTasks
public List<Task> getTasks()
A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.
- Returns:
- A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.
-
setTasks
public void setTasks(Collection<Task> tasks)
A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.
- Parameters:
tasks
- A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.
-
withTasks
public RunTaskResult withTasks(Task... tasks)
A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.
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
- A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTasks
public RunTaskResult withTasks(Collection<Task> tasks)
A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.
- Parameters:
tasks
- A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.- 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 RunTaskResult 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 RunTaskResult 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 RunTaskResult clone()
-
-