public ResponseLaunchTemplateData withElasticInferenceAccelerators(LaunchTemplateElasticInferenceAcceleratorResponse... elasticInferenceAccelerators) {
        if (this.elasticInferenceAccelerators == null) {
            setElasticInferenceAccelerators(new com.amazonaws.internal.SdkInternalList<LaunchTemplateElasticInferenceAcceleratorResponse>(
                    elasticInferenceAccelerators.length));
        }
        for (LaunchTemplateElasticInferenceAcceleratorResponse ele : elasticInferenceAccelerators) {
            this.elasticInferenceAccelerators.add(ele);
        }
        return this;
    }
<p>
An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource
you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.
</p>
<p>
You cannot specify accelerators from different generations in the same request.
</p>
<note>
<p>
Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and
will help current customers migrate their workloads to options that offer better price and performance. After
April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon
SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past
30-day period are considered current customers and will be able to continue using the service.
</p>
</note>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setElasticInferenceAccelerators(java.util.Collection)} or
{@link #withElasticInferenceAccelerators(java.util.Collection)} if you want to override the existing values.
</p>

@param elasticInferenceAccelerators
       An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a
       resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference
       workloads.</p>
       <p>
       You cannot specify accelerators from different generations in the same request.
       </p>
       <note>
       <p>
       Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference
       (EI), and will help current customers migrate their workloads to options that offer better price and
       performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI
       accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at
       least once during the past 30-day period are considered current customers and will be able to continue
       using the service.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ResponseLaunchTemplateData.java