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;
    }
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>
The elastic inference accelerator for the instance.
</p>
<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
The elastic inference accelerator for the instance.
@return Returns a reference to this object so that method calls can be chained together.