@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EcsTaskOverride extends Object implements Serializable, Cloneable, StructuredPojo
The overrides that are associated with a task.
Constructor and Description |
---|
EcsTaskOverride() |
Modifier and Type | Method and Description |
---|---|
EcsTaskOverride |
clone() |
boolean |
equals(Object obj) |
List<EcsContainerOverride> |
getContainerOverrides()
One or more container overrides that are sent to a task.
|
String |
getCpu()
The cpu override for the task.
|
EcsEphemeralStorage |
getEphemeralStorage()
The ephemeral storage setting override for the task.
|
String |
getExecutionRoleArn()
The Amazon Resource Name (ARN) of the task execution IAM role override for the task.
|
List<EcsInferenceAcceleratorOverride> |
getInferenceAcceleratorOverrides()
The Elastic Inference accelerator override for the task.
|
String |
getMemory()
The memory override for the task.
|
String |
getTaskRoleArn()
The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerOverrides(Collection<EcsContainerOverride> containerOverrides)
One or more container overrides that are sent to a task.
|
void |
setCpu(String cpu)
The cpu override for the task.
|
void |
setEphemeralStorage(EcsEphemeralStorage ephemeralStorage)
The ephemeral storage setting override for the task.
|
void |
setExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the task execution IAM role override for the task.
|
void |
setInferenceAcceleratorOverrides(Collection<EcsInferenceAcceleratorOverride> inferenceAcceleratorOverrides)
The Elastic Inference accelerator override for the task.
|
void |
setMemory(String memory)
The memory override for the task.
|
void |
setTaskRoleArn(String taskRoleArn)
The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume.
|
String |
toString()
Returns a string representation of this object.
|
EcsTaskOverride |
withContainerOverrides(Collection<EcsContainerOverride> containerOverrides)
One or more container overrides that are sent to a task.
|
EcsTaskOverride |
withContainerOverrides(EcsContainerOverride... containerOverrides)
One or more container overrides that are sent to a task.
|
EcsTaskOverride |
withCpu(String cpu)
The cpu override for the task.
|
EcsTaskOverride |
withEphemeralStorage(EcsEphemeralStorage ephemeralStorage)
The ephemeral storage setting override for the task.
|
EcsTaskOverride |
withExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the task execution IAM role override for the task.
|
EcsTaskOverride |
withInferenceAcceleratorOverrides(Collection<EcsInferenceAcceleratorOverride> inferenceAcceleratorOverrides)
The Elastic Inference accelerator override for the task.
|
EcsTaskOverride |
withInferenceAcceleratorOverrides(EcsInferenceAcceleratorOverride... inferenceAcceleratorOverrides)
The Elastic Inference accelerator override for the task.
|
EcsTaskOverride |
withMemory(String memory)
The memory override for the task.
|
EcsTaskOverride |
withTaskRoleArn(String taskRoleArn)
The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume.
|
public List<EcsContainerOverride> getContainerOverrides()
One or more container overrides that are sent to a task.
public void setContainerOverrides(Collection<EcsContainerOverride> containerOverrides)
One or more container overrides that are sent to a task.
containerOverrides
- One or more container overrides that are sent to a task.public EcsTaskOverride withContainerOverrides(EcsContainerOverride... containerOverrides)
One or more container overrides that are sent to a task.
NOTE: This method appends the values to the existing list (if any). Use
setContainerOverrides(java.util.Collection)
or withContainerOverrides(java.util.Collection)
if
you want to override the existing values.
containerOverrides
- One or more container overrides that are sent to a task.public EcsTaskOverride withContainerOverrides(Collection<EcsContainerOverride> containerOverrides)
One or more container overrides that are sent to a task.
containerOverrides
- One or more container overrides that are sent to a task.public void setCpu(String cpu)
The cpu override for the task.
cpu
- The cpu override for the task.public String getCpu()
The cpu override for the task.
public EcsTaskOverride withCpu(String cpu)
The cpu override for the task.
cpu
- The cpu override for the task.public void setEphemeralStorage(EcsEphemeralStorage ephemeralStorage)
The ephemeral storage setting override for the task.
This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
Linux platform version 1.4.0
or later.
Windows platform version 1.0.0
or later.
ephemeralStorage
- The ephemeral storage setting override for the task. This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
Linux platform version 1.4.0
or later.
Windows platform version 1.0.0
or later.
public EcsEphemeralStorage getEphemeralStorage()
The ephemeral storage setting override for the task.
This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
Linux platform version 1.4.0
or later.
Windows platform version 1.0.0
or later.
This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
Linux platform version 1.4.0
or later.
Windows platform version 1.0.0
or later.
public EcsTaskOverride withEphemeralStorage(EcsEphemeralStorage ephemeralStorage)
The ephemeral storage setting override for the task.
This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
Linux platform version 1.4.0
or later.
Windows platform version 1.0.0
or later.
ephemeralStorage
- The ephemeral storage setting override for the task. This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
Linux platform version 1.4.0
or later.
Windows platform version 1.0.0
or later.
public void setExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the task execution IAM role override for the task. For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide.
executionRoleArn
- The Amazon Resource Name (ARN) of the task execution IAM role override for the task. For more information,
see Amazon ECS
task execution IAM role in the Amazon Elastic Container Service Developer Guide.public String getExecutionRoleArn()
The Amazon Resource Name (ARN) of the task execution IAM role override for the task. For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide.
public EcsTaskOverride withExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the task execution IAM role override for the task. For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide.
executionRoleArn
- The Amazon Resource Name (ARN) of the task execution IAM role override for the task. For more information,
see Amazon ECS
task execution IAM role in the Amazon Elastic Container Service Developer Guide.public List<EcsInferenceAcceleratorOverride> getInferenceAcceleratorOverrides()
The Elastic Inference accelerator override for the task.
public void setInferenceAcceleratorOverrides(Collection<EcsInferenceAcceleratorOverride> inferenceAcceleratorOverrides)
The Elastic Inference accelerator override for the task.
inferenceAcceleratorOverrides
- The Elastic Inference accelerator override for the task.public EcsTaskOverride withInferenceAcceleratorOverrides(EcsInferenceAcceleratorOverride... inferenceAcceleratorOverrides)
The Elastic Inference accelerator override for the task.
NOTE: This method appends the values to the existing list (if any). Use
setInferenceAcceleratorOverrides(java.util.Collection)
or
withInferenceAcceleratorOverrides(java.util.Collection)
if you want to override the existing values.
inferenceAcceleratorOverrides
- The Elastic Inference accelerator override for the task.public EcsTaskOverride withInferenceAcceleratorOverrides(Collection<EcsInferenceAcceleratorOverride> inferenceAcceleratorOverrides)
The Elastic Inference accelerator override for the task.
inferenceAcceleratorOverrides
- The Elastic Inference accelerator override for the task.public void setMemory(String memory)
The memory override for the task.
memory
- The memory override for the task.public String getMemory()
The memory override for the task.
public EcsTaskOverride withMemory(String memory)
The memory override for the task.
memory
- The memory override for the task.public void setTaskRoleArn(String taskRoleArn)
The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role. For more information, see IAM Role for Tasks in the Amazon Elastic Container Service Developer Guide.
taskRoleArn
- The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in
this task are granted the permissions that are specified in this role. For more information, see IAM Role for
Tasks in the Amazon Elastic Container Service Developer Guide.public String getTaskRoleArn()
The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role. For more information, see IAM Role for Tasks in the Amazon Elastic Container Service Developer Guide.
public EcsTaskOverride withTaskRoleArn(String taskRoleArn)
The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role. For more information, see IAM Role for Tasks in the Amazon Elastic Container Service Developer Guide.
taskRoleArn
- The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in
this task are granted the permissions that are specified in this role. For more information, see IAM Role for
Tasks in the Amazon Elastic Container Service Developer Guide.public String toString()
toString
in class Object
Object.toString()
public EcsTaskOverride clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.