public RunInstancesRequest withElasticInferenceAccelerators(ElasticInferenceAccelerator... elasticInferenceAccelerators) {
        if (this.elasticInferenceAccelerators == null) {
            setElasticInferenceAccelerators(new com.amazonaws.internal.SdkInternalList<ElasticInferenceAccelerator>(elasticInferenceAccelerators.length));
        }
        for (ElasticInferenceAccelerator ele : elasticInferenceAccelerators) {
            this.elasticInferenceAccelerators.add(ele);
        }
        return this;
    }
<p>
An elastic inference accelerator to associate with the instance.
</p>
<note>
<p>
Amazon Elastic Inference (EI) is no longer available to new customers. For more information, see <a
href="http://aws.amazon.com/machine-learning/elastic-inference/faqs/">Amazon Elastic Inference FAQs</a>.
</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.</p> <note>
       <p>
       Amazon Elastic Inference (EI) is no longer available to new customers. For more information, see <a
       href="http://aws.amazon.com/machine-learning/elastic-inference/faqs/">Amazon Elastic Inference FAQs</a>.
       </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/RunInstancesRequest.java