public class Task extends Object implements Serializable, Cloneable
Details on a task in a cluster.
Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
Task |
clone() |
boolean |
equals(Object obj) |
String |
getClusterArn()
The Amazon Resource Name (ARN) of the of the cluster that hosts the task.
|
String |
getContainerInstanceArn()
The Amazon Resource Name (ARN) of the container instances that host the
task.
|
List<Container> |
getContainers()
The containers associated with the task.
|
String |
getDesiredStatus()
The desired status of the task.
|
String |
getLastStatus()
The last known status of the task.
|
TaskOverride |
getOverrides()
One or more container overrides.
|
String |
getStartedBy()
The tag specified when a task is started.
|
String |
getTaskArn()
The Amazon Resource Name (ARN) of the task.
|
String |
getTaskDefinitionArn()
The Amazon Resource Name (ARN) of the of the task definition that creates
the task.
|
int |
hashCode() |
void |
setClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the of the cluster that hosts the task.
|
void |
setContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instances that host the
task.
|
void |
setContainers(Collection<Container> containers)
The containers associated with the task.
|
void |
setDesiredStatus(String desiredStatus)
The desired status of the task.
|
void |
setLastStatus(String lastStatus)
The last known status of the task.
|
void |
setOverrides(TaskOverride overrides)
One or more container overrides.
|
void |
setStartedBy(String startedBy)
The tag specified when a task is started.
|
void |
setTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
|
void |
setTaskDefinitionArn(String taskDefinitionArn)
The Amazon Resource Name (ARN) of the of the task definition that creates
the task.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Task |
withClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the of the cluster that hosts the task.
|
Task |
withContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instances that host the
task.
|
Task |
withContainers(Collection<Container> containers)
The containers associated with the task.
|
Task |
withContainers(Container... containers)
The containers associated with the task.
|
Task |
withDesiredStatus(String desiredStatus)
The desired status of the task.
|
Task |
withLastStatus(String lastStatus)
The last known status of the task.
|
Task |
withOverrides(TaskOverride overrides)
One or more container overrides.
|
Task |
withStartedBy(String startedBy)
The tag specified when a task is started.
|
Task |
withTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
|
Task |
withTaskDefinitionArn(String taskDefinitionArn)
The Amazon Resource Name (ARN) of the of the task definition that creates
the task.
|
public void setTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
taskArn
- The Amazon Resource Name (ARN) of the task.public String getTaskArn()
The Amazon Resource Name (ARN) of the task.
public Task withTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
taskArn
- The Amazon Resource Name (ARN) of the task.public void setClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the of the cluster that hosts the task.
clusterArn
- The Amazon Resource Name (ARN) of the of the cluster that hosts
the task.public String getClusterArn()
The Amazon Resource Name (ARN) of the of the cluster that hosts the task.
public Task withClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the of the cluster that hosts the task.
clusterArn
- The Amazon Resource Name (ARN) of the of the cluster that hosts
the task.public void setTaskDefinitionArn(String taskDefinitionArn)
The Amazon Resource Name (ARN) of the of the task definition that creates the task.
taskDefinitionArn
- The Amazon Resource Name (ARN) of the of the task definition that
creates the task.public String getTaskDefinitionArn()
The Amazon Resource Name (ARN) of the of the task definition that creates the task.
public Task withTaskDefinitionArn(String taskDefinitionArn)
The Amazon Resource Name (ARN) of the of the task definition that creates the task.
taskDefinitionArn
- The Amazon Resource Name (ARN) of the of the task definition that
creates the task.public void setContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instances that host the task.
containerInstanceArn
- The Amazon Resource Name (ARN) of the container instances that
host the task.public String getContainerInstanceArn()
The Amazon Resource Name (ARN) of the container instances that host the task.
public Task withContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instances that host the task.
containerInstanceArn
- The Amazon Resource Name (ARN) of the container instances that
host the task.public void setOverrides(TaskOverride overrides)
One or more container overrides.
overrides
- One or more container overrides.public TaskOverride getOverrides()
One or more container overrides.
public Task withOverrides(TaskOverride overrides)
One or more container overrides.
overrides
- One or more container overrides.public void setLastStatus(String lastStatus)
The last known status of the task.
lastStatus
- The last known status of the task.public String getLastStatus()
The last known status of the task.
public Task withLastStatus(String lastStatus)
The last known status of the task.
lastStatus
- The last known status of the task.public void setDesiredStatus(String desiredStatus)
The desired status of the task.
desiredStatus
- The desired status of the task.public String getDesiredStatus()
The desired status of the task.
public Task withDesiredStatus(String desiredStatus)
The desired status of the task.
desiredStatus
- The desired status of the task.public List<Container> getContainers()
The containers associated with the task.
public void setContainers(Collection<Container> containers)
The containers associated with the task.
containers
- The containers associated with the task.public Task withContainers(Container... containers)
The containers associated with the task.
NOTE: This method appends the values to the existing list (if
any). Use setContainers(java.util.Collection)
or
withContainers(java.util.Collection)
if you want to override the
existing values.
containers
- The containers associated with the task.public Task withContainers(Collection<Container> containers)
The containers associated with the task.
containers
- The containers associated with the task.public void setStartedBy(String startedBy)
The tag specified when a task is started. If the task is started by an
Amazon ECS service, then the startedBy
parameter contains
the deployment ID of the service that starts it.
startedBy
- The tag specified when a task is started. If the task is started
by an Amazon ECS service, then the startedBy
parameter contains the deployment ID of the service that starts
it.public String getStartedBy()
The tag specified when a task is started. If the task is started by an
Amazon ECS service, then the startedBy
parameter contains
the deployment ID of the service that starts it.
startedBy
parameter contains the deployment ID of the service that starts
it.public Task withStartedBy(String startedBy)
The tag specified when a task is started. If the task is started by an
Amazon ECS service, then the startedBy
parameter contains
the deployment ID of the service that starts it.
startedBy
- The tag specified when a task is started. If the task is started
by an Amazon ECS service, then the startedBy
parameter contains the deployment ID of the service that starts
it.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.