code: public Instance withElasticInferenceAcceleratorAssociations(ElasticInferenceAcceleratorAssociation... elasticInferenceAcceleratorAssociations) {
          if (this.elasticInferenceAcceleratorAssociations == null) {
              setElasticInferenceAcceleratorAssociations(new com.amazonaws.internal.SdkInternalList<ElasticInferenceAcceleratorAssociation>(
                      elasticInferenceAcceleratorAssociations.length));
          }
          for (ElasticInferenceAcceleratorAssociation ele : elasticInferenceAcceleratorAssociations) {
              this.elasticInferenceAcceleratorAssociations.add(ele);
          }
          return this;
      }
docs: <p>
  The elastic inference accelerator associated with the instance.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setElasticInferenceAcceleratorAssociations(java.util.Collection)} or
  {@link #withElasticInferenceAcceleratorAssociations(java.util.Collection)} if you want to override the existing
  values.
  </p>
  
  @param elasticInferenceAcceleratorAssociations
  The elastic inference accelerator associated with the instance.
  @return Returns a reference to this object so that method calls can be chained together.