@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TaskOverride extends Object implements Serializable, Cloneable, StructuredPojo
The overrides associated with a task.
Constructor and Description |
---|
TaskOverride() |
Modifier and Type | Method and Description |
---|---|
TaskOverride |
clone() |
boolean |
equals(Object obj) |
List<ContainerOverride> |
getContainerOverrides()
One or more container overrides sent to a task.
|
String |
getCpu()
The cpu override for the task.
|
String |
getExecutionRoleArn()
The Amazon Resource Name (ARN) of the task execution IAM role override for the task.
|
List<InferenceAcceleratorOverride> |
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) |
void |
setContainerOverrides(Collection<ContainerOverride> containerOverrides)
One or more container overrides sent to a task.
|
void |
setCpu(String cpu)
The cpu 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<InferenceAcceleratorOverride> 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.
|
TaskOverride |
withContainerOverrides(Collection<ContainerOverride> containerOverrides)
One or more container overrides sent to a task.
|
TaskOverride |
withContainerOverrides(ContainerOverride... containerOverrides)
One or more container overrides sent to a task.
|
TaskOverride |
withCpu(String cpu)
The cpu override for the task.
|
TaskOverride |
withExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the task execution IAM role override for the task.
|
TaskOverride |
withInferenceAcceleratorOverrides(Collection<InferenceAcceleratorOverride> inferenceAcceleratorOverrides)
The Elastic Inference accelerator override for the task.
|
TaskOverride |
withInferenceAcceleratorOverrides(InferenceAcceleratorOverride... inferenceAcceleratorOverrides)
The Elastic Inference accelerator override for the task.
|
TaskOverride |
withMemory(String memory)
The memory override for the task.
|
TaskOverride |
withTaskRoleArn(String taskRoleArn)
The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume.
|
public List<ContainerOverride> getContainerOverrides()
One or more container overrides sent to a task.
public void setContainerOverrides(Collection<ContainerOverride> containerOverrides)
One or more container overrides sent to a task.
containerOverrides
- One or more container overrides sent to a task.public TaskOverride withContainerOverrides(ContainerOverride... containerOverrides)
One or more container overrides 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 sent to a task.public TaskOverride withContainerOverrides(Collection<ContainerOverride> containerOverrides)
One or more container overrides sent to a task.
containerOverrides
- One or more container overrides 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 TaskOverride withCpu(String cpu)
The cpu override for the task.
cpu
- The cpu override for the task.public List<InferenceAcceleratorOverride> getInferenceAcceleratorOverrides()
The Elastic Inference accelerator override for the task.
public void setInferenceAcceleratorOverrides(Collection<InferenceAcceleratorOverride> inferenceAcceleratorOverrides)
The Elastic Inference accelerator override for the task.
inferenceAcceleratorOverrides
- The Elastic Inference accelerator override for the task.public TaskOverride withInferenceAcceleratorOverrides(InferenceAcceleratorOverride... 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 TaskOverride withInferenceAcceleratorOverrides(Collection<InferenceAcceleratorOverride> inferenceAcceleratorOverrides)
The Elastic Inference accelerator override for the task.
inferenceAcceleratorOverrides
- The Elastic Inference accelerator override for the task.public void setExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the task execution IAM role override for the task.
executionRoleArn
- The Amazon Resource Name (ARN) of the task execution IAM role override for the task.public String getExecutionRoleArn()
The Amazon Resource Name (ARN) of the task execution IAM role override for the task.
public TaskOverride withExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the task execution IAM role override for the task.
executionRoleArn
- The Amazon Resource Name (ARN) of the task execution IAM role 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 TaskOverride 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.
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.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.
public TaskOverride 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.
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.public String toString()
toString
in class Object
Object.toString()
public TaskOverride clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.