Package com.amazonaws.services.ecs.model
Class TaskOverride
- java.lang.Object
-
- com.amazonaws.services.ecs.model.TaskOverride
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class TaskOverride extends Object implements Serializable, Cloneable
The overrides associated with a task.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaskOverride()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskOverride
clone()
boolean
equals(Object obj)
List<ContainerOverride>
getContainerOverrides()
One or more container overrides sent to a task.int
hashCode()
void
setContainerOverrides(Collection<ContainerOverride> containerOverrides)
One or more container overrides sent to a task.String
toString()
Returns a string representation of this object; useful for testing and debugging.TaskOverride
withContainerOverrides(ContainerOverride... containerOverrides)
One or more container overrides sent to a task.TaskOverride
withContainerOverrides(Collection<ContainerOverride> containerOverrides)
One or more container overrides sent to a task.
-
-
-
Method Detail
-
getContainerOverrides
public List<ContainerOverride> getContainerOverrides()
One or more container overrides sent to a task.
- Returns:
- One or more container overrides sent to a task.
-
setContainerOverrides
public void setContainerOverrides(Collection<ContainerOverride> containerOverrides)
One or more container overrides sent to a task.
- Parameters:
containerOverrides
- One or more container overrides sent to a task.
-
withContainerOverrides
public TaskOverride withContainerOverrides(ContainerOverride... containerOverrides)
One or more container overrides sent to a task.
NOTE: This method appends the values to the existing list (if any). Use
setContainerOverrides(java.util.Collection)
orwithContainerOverrides(java.util.Collection)
if you want to override the existing values.- Parameters:
containerOverrides
- One or more container overrides sent to a task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withContainerOverrides
public TaskOverride withContainerOverrides(Collection<ContainerOverride> containerOverrides)
One or more container overrides sent to a task.
- Parameters:
containerOverrides
- One or more container overrides sent to a task.- 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 TaskOverride clone()
-
-