@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttemptEcsTaskDetails extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the details of a task.
Constructor and Description |
---|
AttemptEcsTaskDetails() |
Modifier and Type | Method and Description |
---|---|
AttemptEcsTaskDetails |
clone() |
boolean |
equals(Object obj) |
String |
getContainerInstanceArn()
The Amazon Resource Name (ARN) of the container instance that hosts the task.
|
List<AttemptTaskContainerDetails> |
getContainers()
A list of containers that are included in the
taskProperties list. |
String |
getTaskArn()
The ARN of the Amazon ECS task.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instance that hosts the task.
|
void |
setContainers(Collection<AttemptTaskContainerDetails> containers)
A list of containers that are included in the
taskProperties list. |
void |
setTaskArn(String taskArn)
The ARN of the Amazon ECS task.
|
String |
toString()
Returns a string representation of this object.
|
AttemptEcsTaskDetails |
withContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instance that hosts the task.
|
AttemptEcsTaskDetails |
withContainers(AttemptTaskContainerDetails... containers)
A list of containers that are included in the
taskProperties list. |
AttemptEcsTaskDetails |
withContainers(Collection<AttemptTaskContainerDetails> containers)
A list of containers that are included in the
taskProperties list. |
AttemptEcsTaskDetails |
withTaskArn(String taskArn)
The ARN of the Amazon ECS task.
|
public void setContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instance that hosts the task.
containerInstanceArn
- The Amazon Resource Name (ARN) of the container instance that hosts the task.public String getContainerInstanceArn()
The Amazon Resource Name (ARN) of the container instance that hosts the task.
public AttemptEcsTaskDetails withContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instance that hosts the task.
containerInstanceArn
- The Amazon Resource Name (ARN) of the container instance that hosts the task.public void setTaskArn(String taskArn)
The ARN of the Amazon ECS task.
taskArn
- The ARN of the Amazon ECS task.public String getTaskArn()
The ARN of the Amazon ECS task.
public AttemptEcsTaskDetails withTaskArn(String taskArn)
The ARN of the Amazon ECS task.
taskArn
- The ARN of the Amazon ECS task.public List<AttemptTaskContainerDetails> getContainers()
A list of containers that are included in the taskProperties
list.
taskProperties
list.public void setContainers(Collection<AttemptTaskContainerDetails> containers)
A list of containers that are included in the taskProperties
list.
containers
- A list of containers that are included in the taskProperties
list.public AttemptEcsTaskDetails withContainers(AttemptTaskContainerDetails... containers)
A list of containers that are included in the taskProperties
list.
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
- A list of containers that are included in the taskProperties
list.public AttemptEcsTaskDetails withContainers(Collection<AttemptTaskContainerDetails> containers)
A list of containers that are included in the taskProperties
list.
containers
- A list of containers that are included in the taskProperties
list.public String toString()
toString
in class Object
Object.toString()
public AttemptEcsTaskDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.