public RegisterTaskDefinitionRequest withInferenceAccelerators(java.util.Collection<InferenceAccelerator> inferenceAccelerators) {
        setInferenceAccelerators(inferenceAccelerators);
        return this;
    }
<p>
The Elastic Inference accelerators to use for the containers in the task.
</p>

@param inferenceAccelerators
       The Elastic Inference accelerators to use for the containers in the task.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/RegisterTaskDefinitionRequest.java