code: public RequestLaunchTemplateData withElasticInferenceAccelerators(LaunchTemplateElasticInferenceAccelerator... elasticInferenceAccelerators) {
          if (this.elasticInferenceAccelerators == null) {
              setElasticInferenceAccelerators(new com.amazonaws.internal.SdkInternalList<LaunchTemplateElasticInferenceAccelerator>(
                      elasticInferenceAccelerators.length));
          }
          for (LaunchTemplateElasticInferenceAccelerator ele : elasticInferenceAccelerators) {
              this.elasticInferenceAccelerators.add(ele);
          }
          return this;
      }
docs: <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.