@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides details about a task in a cluster.
| Constructor and Description |
|---|
AwsEcsTaskDetails() |
| Modifier and Type | Method and Description |
|---|---|
AwsEcsTaskDetails |
clone() |
boolean |
equals(Object obj) |
String |
getClusterArn()
The Amazon Resource Name (ARN) of the cluster that hosts the task.
|
List<AwsEcsContainerDetails> |
getContainers()
The containers that are associated with the task.
|
String |
getCreatedAt()
The Unix timestamp for the time when the task was created.
|
String |
getGroup()
The name of the task group that's associated with the task.
|
String |
getStartedAt()
The Unix timestamp for the time when the task started.
|
String |
getStartedBy()
The tag specified when a task is started.
|
String |
getTaskDefinitionArn()
The ARN of the task definition that creates the task.
|
String |
getVersion()
The version counter for the task.
|
List<AwsEcsTaskVolumeDetails> |
getVolumes()
Details about the data volume that is used in a task definition.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that hosts the task.
|
void |
setContainers(Collection<AwsEcsContainerDetails> containers)
The containers that are associated with the task.
|
void |
setCreatedAt(String createdAt)
The Unix timestamp for the time when the task was created.
|
void |
setGroup(String group)
The name of the task group that's associated with the task.
|
void |
setStartedAt(String startedAt)
The Unix timestamp for the time when the task started.
|
void |
setStartedBy(String startedBy)
The tag specified when a task is started.
|
void |
setTaskDefinitionArn(String taskDefinitionArn)
The ARN of the task definition that creates the task.
|
void |
setVersion(String version)
The version counter for the task.
|
void |
setVolumes(Collection<AwsEcsTaskVolumeDetails> volumes)
Details about the data volume that is used in a task definition.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsTaskDetails |
withClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that hosts the task.
|
AwsEcsTaskDetails |
withContainers(AwsEcsContainerDetails... containers)
The containers that are associated with the task.
|
AwsEcsTaskDetails |
withContainers(Collection<AwsEcsContainerDetails> containers)
The containers that are associated with the task.
|
AwsEcsTaskDetails |
withCreatedAt(String createdAt)
The Unix timestamp for the time when the task was created.
|
AwsEcsTaskDetails |
withGroup(String group)
The name of the task group that's associated with the task.
|
AwsEcsTaskDetails |
withStartedAt(String startedAt)
The Unix timestamp for the time when the task started.
|
AwsEcsTaskDetails |
withStartedBy(String startedBy)
The tag specified when a task is started.
|
AwsEcsTaskDetails |
withTaskDefinitionArn(String taskDefinitionArn)
The ARN of the task definition that creates the task.
|
AwsEcsTaskDetails |
withVersion(String version)
The version counter for the task.
|
AwsEcsTaskDetails |
withVolumes(AwsEcsTaskVolumeDetails... volumes)
Details about the data volume that is used in a task definition.
|
AwsEcsTaskDetails |
withVolumes(Collection<AwsEcsTaskVolumeDetails> volumes)
Details about the data volume that is used in a task definition.
|
public void setClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that hosts the task.
clusterArn - The Amazon Resource Name (ARN) of the cluster that hosts the task.public String getClusterArn()
The Amazon Resource Name (ARN) of the cluster that hosts the task.
public AwsEcsTaskDetails withClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that hosts the task.
clusterArn - The Amazon Resource Name (ARN) of the cluster that hosts the task.public void setTaskDefinitionArn(String taskDefinitionArn)
The ARN of the task definition that creates the task.
taskDefinitionArn - The ARN of the task definition that creates the task.public String getTaskDefinitionArn()
The ARN of the task definition that creates the task.
public AwsEcsTaskDetails withTaskDefinitionArn(String taskDefinitionArn)
The ARN of the task definition that creates the task.
taskDefinitionArn - The ARN of the task definition that creates the task.public void setVersion(String version)
The version counter for the task.
version - The version counter for the task.public String getVersion()
The version counter for the task.
public AwsEcsTaskDetails withVersion(String version)
The version counter for the task.
version - The version counter for the task.public void setCreatedAt(String createdAt)
The Unix timestamp for the time when the task was created. More specifically, it's for the time when the task
entered the PENDING state.
createdAt - The Unix timestamp for the time when the task was created. More specifically, it's for the time when the
task entered the PENDING state.public String getCreatedAt()
The Unix timestamp for the time when the task was created. More specifically, it's for the time when the task
entered the PENDING state.
PENDING state.public AwsEcsTaskDetails withCreatedAt(String createdAt)
The Unix timestamp for the time when the task was created. More specifically, it's for the time when the task
entered the PENDING state.
createdAt - The Unix timestamp for the time when the task was created. More specifically, it's for the time when the
task entered the PENDING state.public void setStartedAt(String startedAt)
The Unix timestamp for the time when the task started. More specifically, it's for the time when the task
transitioned from the PENDING state to the RUNNING state.
startedAt - The Unix timestamp for the time when the task started. More specifically, it's for the time when the task
transitioned from the PENDING state to the RUNNING state.public String getStartedAt()
The Unix timestamp for the time when the task started. More specifically, it's for the time when the task
transitioned from the PENDING state to the RUNNING state.
PENDING state to the RUNNING state.public AwsEcsTaskDetails withStartedAt(String startedAt)
The Unix timestamp for the time when the task started. More specifically, it's for the time when the task
transitioned from the PENDING state to the RUNNING state.
startedAt - The Unix timestamp for the time when the task started. More specifically, it's for the time when the task
transitioned from the PENDING state to the RUNNING state.public void setStartedBy(String startedBy)
The tag specified when a task is started. If an Amazon ECS service started the task, the startedBy
parameter contains the deployment ID of that service.
startedBy - The tag specified when a task is started. If an Amazon ECS service started the task, the
startedBy parameter contains the deployment ID of that service.public String getStartedBy()
The tag specified when a task is started. If an Amazon ECS service started the task, the startedBy
parameter contains the deployment ID of that service.
startedBy parameter contains the deployment ID of that service.public AwsEcsTaskDetails withStartedBy(String startedBy)
The tag specified when a task is started. If an Amazon ECS service started the task, the startedBy
parameter contains the deployment ID of that service.
startedBy - The tag specified when a task is started. If an Amazon ECS service started the task, the
startedBy parameter contains the deployment ID of that service.public void setGroup(String group)
The name of the task group that's associated with the task.
group - The name of the task group that's associated with the task.public String getGroup()
The name of the task group that's associated with the task.
public AwsEcsTaskDetails withGroup(String group)
The name of the task group that's associated with the task.
group - The name of the task group that's associated with the task.public List<AwsEcsTaskVolumeDetails> getVolumes()
Details about the data volume that is used in a task definition.
public void setVolumes(Collection<AwsEcsTaskVolumeDetails> volumes)
Details about the data volume that is used in a task definition.
volumes - Details about the data volume that is used in a task definition.public AwsEcsTaskDetails withVolumes(AwsEcsTaskVolumeDetails... volumes)
Details about the data volume that is used in a task definition.
NOTE: This method appends the values to the existing list (if any). Use
setVolumes(java.util.Collection) or withVolumes(java.util.Collection) if you want to override
the existing values.
volumes - Details about the data volume that is used in a task definition.public AwsEcsTaskDetails withVolumes(Collection<AwsEcsTaskVolumeDetails> volumes)
Details about the data volume that is used in a task definition.
volumes - Details about the data volume that is used in a task definition.public List<AwsEcsContainerDetails> getContainers()
The containers that are associated with the task.
public void setContainers(Collection<AwsEcsContainerDetails> containers)
The containers that are associated with the task.
containers - The containers that are associated with the task.public AwsEcsTaskDetails withContainers(AwsEcsContainerDetails... containers)
The containers that are 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 that are associated with the task.public AwsEcsTaskDetails withContainers(Collection<AwsEcsContainerDetails> containers)
The containers that are associated with the task.
containers - The containers that are associated with the task.public String toString()
toString in class ObjectObject.toString()public AwsEcsTaskDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.