code: public BatchGetOnPremisesInstancesResult withInstanceInfos(InstanceInfo... instanceInfos) {
          if (this.instanceInfos == null) {
              setInstanceInfos(new com.amazonaws.internal.SdkInternalList<InstanceInfo>(instanceInfos.length));
          }
          for (InstanceInfo ele : instanceInfos) {
              this.instanceInfos.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the on-premises instances.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setInstanceInfos(java.util.Collection)} or {@link #withInstanceInfos(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param instanceInfos
  Information about the on-premises instances.
  @return Returns a reference to this object so that method calls can be chained together.