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