docs: 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;
      }