code: public ListNotebookInstancesResult withNotebookInstances(NotebookInstanceSummary... notebookInstances) {
          if (this.notebookInstances == null) {
              setNotebookInstances(new java.util.ArrayList<NotebookInstanceSummary>(notebookInstances.length));
          }
          for (NotebookInstanceSummary ele : notebookInstances) {
              this.notebookInstances.add(ele);
          }
          return this;
      }
docs: <p>
  An array of <code>NotebookInstanceSummary</code> objects, one for each notebook instance.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setNotebookInstances(java.util.Collection)} or {@link #withNotebookInstances(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param notebookInstances
  An array of <code>NotebookInstanceSummary</code> objects, one for each notebook instance.
  @return Returns a reference to this object so that method calls can be chained together.