code: public ListNamespacesResult withNamespaces(NamespaceSummary... namespaces) {
          if (this.namespaces == null) {
              setNamespaces(new java.util.ArrayList<NamespaceSummary>(namespaces.length));
          }
          for (NamespaceSummary ele : namespaces) {
              this.namespaces.add(ele);
          }
          return this;
      }
docs: <p>
  An array that contains one <code>NamespaceSummary</code> object for each namespace that matches the specified
  filter criteria.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setNamespaces(java.util.Collection)} or {@link #withNamespaces(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param namespaces
  An array that contains one <code>NamespaceSummary</code> object for each namespace that matches the
  specified filter criteria.
  @return Returns a reference to this object so that method calls can be chained together.