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