@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EcsTaskDetails extends Object implements Serializable, Cloneable, StructuredPojo
The details of a task definition that describes the container and volume definitions of an Amazon ECS task.
Constructor and Description |
---|
EcsTaskDetails() |
Modifier and Type | Method and Description |
---|---|
EcsTaskDetails |
clone() |
boolean |
equals(Object obj) |
String |
getContainerInstanceArn()
The Amazon Resource Name (ARN) of the container instance that hosts the task.
|
List<TaskContainerDetails> |
getContainers()
A list of containers that are included in the
taskProperties list. |
EphemeralStorage |
getEphemeralStorage()
The amount of ephemeral storage allocated for the task.
|
String |
getExecutionRoleArn()
The Amazon Resource Name (ARN) of the execution role that Batch can assume.
|
String |
getIpcMode()
The IPC resource namespace to use for the containers in the task.
|
NetworkConfiguration |
getNetworkConfiguration()
The network configuration for jobs that are running on Fargate resources.
|
String |
getPidMode()
The process namespace to use for the containers in the task.
|
String |
getPlatformVersion()
The Fargate platform version where the jobs are running.
|
RuntimePlatform |
getRuntimePlatform()
An object that represents the compute environment architecture for Batch jobs on Fargate.
|
String |
getTaskArn()
The ARN of the Amazon ECS task.
|
String |
getTaskRoleArn()
The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions.
|
List<Volume> |
getVolumes()
A list of data volumes used in a job.
|
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<TaskContainerDetails> containers)
A list of containers that are included in the
taskProperties list. |
void |
setEphemeralStorage(EphemeralStorage ephemeralStorage)
The amount of ephemeral storage allocated for the task.
|
void |
setExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the execution role that Batch can assume.
|
void |
setIpcMode(String ipcMode)
The IPC resource namespace to use for the containers in the task.
|
void |
setNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for jobs that are running on Fargate resources.
|
void |
setPidMode(String pidMode)
The process namespace to use for the containers in the task.
|
void |
setPlatformVersion(String platformVersion)
The Fargate platform version where the jobs are running.
|
void |
setRuntimePlatform(RuntimePlatform runtimePlatform)
An object that represents the compute environment architecture for Batch jobs on Fargate.
|
void |
setTaskArn(String taskArn)
The ARN of the Amazon ECS task.
|
void |
setTaskRoleArn(String taskRoleArn)
The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions.
|
void |
setVolumes(Collection<Volume> volumes)
A list of data volumes used in a job.
|
String |
toString()
Returns a string representation of this object.
|
EcsTaskDetails |
withContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instance that hosts the task.
|
EcsTaskDetails |
withContainers(Collection<TaskContainerDetails> containers)
A list of containers that are included in the
taskProperties list. |
EcsTaskDetails |
withContainers(TaskContainerDetails... containers)
A list of containers that are included in the
taskProperties list. |
EcsTaskDetails |
withEphemeralStorage(EphemeralStorage ephemeralStorage)
The amount of ephemeral storage allocated for the task.
|
EcsTaskDetails |
withExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the execution role that Batch can assume.
|
EcsTaskDetails |
withIpcMode(String ipcMode)
The IPC resource namespace to use for the containers in the task.
|
EcsTaskDetails |
withNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for jobs that are running on Fargate resources.
|
EcsTaskDetails |
withPidMode(String pidMode)
The process namespace to use for the containers in the task.
|
EcsTaskDetails |
withPlatformVersion(String platformVersion)
The Fargate platform version where the jobs are running.
|
EcsTaskDetails |
withRuntimePlatform(RuntimePlatform runtimePlatform)
An object that represents the compute environment architecture for Batch jobs on Fargate.
|
EcsTaskDetails |
withTaskArn(String taskArn)
The ARN of the Amazon ECS task.
|
EcsTaskDetails |
withTaskRoleArn(String taskRoleArn)
The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions.
|
EcsTaskDetails |
withVolumes(Collection<Volume> volumes)
A list of data volumes used in a job.
|
EcsTaskDetails |
withVolumes(Volume... volumes)
A list of data volumes used in a job.
|
public List<TaskContainerDetails> getContainers()
A list of containers that are included in the taskProperties
list.
taskProperties
list.public void setContainers(Collection<TaskContainerDetails> 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 EcsTaskDetails withContainers(TaskContainerDetails... 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 EcsTaskDetails withContainers(Collection<TaskContainerDetails> 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 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 EcsTaskDetails 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 EcsTaskDetails withTaskArn(String taskArn)
The ARN of the Amazon ECS task.
taskArn
- The ARN of the Amazon ECS task.public void setEphemeralStorage(EphemeralStorage ephemeralStorage)
The amount of ephemeral storage allocated for the task.
ephemeralStorage
- The amount of ephemeral storage allocated for the task.public EphemeralStorage getEphemeralStorage()
The amount of ephemeral storage allocated for the task.
public EcsTaskDetails withEphemeralStorage(EphemeralStorage ephemeralStorage)
The amount of ephemeral storage allocated for the task.
ephemeralStorage
- The amount of ephemeral storage allocated for the task.public void setExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see Batch execution IAM role in the Batch User Guide.
executionRoleArn
- The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see Batch execution IAM
role in the Batch User Guide.public String getExecutionRoleArn()
The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see Batch execution IAM role in the Batch User Guide.
public EcsTaskDetails withExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see Batch execution IAM role in the Batch User Guide.
executionRoleArn
- The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see Batch execution IAM
role in the Batch User Guide.public void setPlatformVersion(String platformVersion)
The Fargate platform version where the jobs are running.
platformVersion
- The Fargate platform version where the jobs are running.public String getPlatformVersion()
The Fargate platform version where the jobs are running.
public EcsTaskDetails withPlatformVersion(String platformVersion)
The Fargate platform version where the jobs are running.
platformVersion
- The Fargate platform version where the jobs are running.public void setIpcMode(String ipcMode)
The IPC resource namespace to use for the containers in the task.
ipcMode
- The IPC resource namespace to use for the containers in the task.public String getIpcMode()
The IPC resource namespace to use for the containers in the task.
public EcsTaskDetails withIpcMode(String ipcMode)
The IPC resource namespace to use for the containers in the task.
ipcMode
- The IPC resource namespace to use for the containers in the task.public void setTaskRoleArn(String taskRoleArn)
The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions. For more information, see IAM roles for tasks in the Amazon Elastic Container Service Developer Guide.
This is object is comparable to ContainerProperties:jobRoleArn.
taskRoleArn
- The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services
permissions. For more information, see IAM roles for
tasks in the Amazon Elastic Container Service Developer Guide. This is object is comparable to ContainerProperties:jobRoleArn.
public String getTaskRoleArn()
The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions. For more information, see IAM roles for tasks in the Amazon Elastic Container Service Developer Guide.
This is object is comparable to ContainerProperties:jobRoleArn.
This is object is comparable to ContainerProperties:jobRoleArn.
public EcsTaskDetails withTaskRoleArn(String taskRoleArn)
The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions. For more information, see IAM roles for tasks in the Amazon Elastic Container Service Developer Guide.
This is object is comparable to ContainerProperties:jobRoleArn.
taskRoleArn
- The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services
permissions. For more information, see IAM roles for
tasks in the Amazon Elastic Container Service Developer Guide. This is object is comparable to ContainerProperties:jobRoleArn.
public void setPidMode(String pidMode)
The process namespace to use for the containers in the task.
pidMode
- The process namespace to use for the containers in the task.public String getPidMode()
The process namespace to use for the containers in the task.
public EcsTaskDetails withPidMode(String pidMode)
The process namespace to use for the containers in the task.
pidMode
- The process namespace to use for the containers in the task.public void setNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
networkConfiguration
- The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon
EC2 resources must not specify this parameter.public NetworkConfiguration getNetworkConfiguration()
The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
public EcsTaskDetails withNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
networkConfiguration
- The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon
EC2 resources must not specify this parameter.public void setRuntimePlatform(RuntimePlatform runtimePlatform)
An object that represents the compute environment architecture for Batch jobs on Fargate.
runtimePlatform
- An object that represents the compute environment architecture for Batch jobs on Fargate.public RuntimePlatform getRuntimePlatform()
An object that represents the compute environment architecture for Batch jobs on Fargate.
public EcsTaskDetails withRuntimePlatform(RuntimePlatform runtimePlatform)
An object that represents the compute environment architecture for Batch jobs on Fargate.
runtimePlatform
- An object that represents the compute environment architecture for Batch jobs on Fargate.public List<Volume> getVolumes()
A list of data volumes used in a job.
public void setVolumes(Collection<Volume> volumes)
A list of data volumes used in a job.
volumes
- A list of data volumes used in a job.public EcsTaskDetails withVolumes(Volume... volumes)
A list of data volumes used in a job.
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
- A list of data volumes used in a job.public EcsTaskDetails withVolumes(Collection<Volume> volumes)
A list of data volumes used in a job.
volumes
- A list of data volumes used in a job.public String toString()
toString
in class Object
Object.toString()
public EcsTaskDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.