code: public ListIndicesResult withIndexNames(String... indexNames) {
          if (this.indexNames == null) {
              setIndexNames(new java.util.ArrayList<String>(indexNames.length));
          }
          for (String ele : indexNames) {
              this.indexNames.add(ele);
          }
          return this;
      }
docs: <p>
  The index names.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setIndexNames(java.util.Collection)} or {@link #withIndexNames(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param indexNames
  The index names.
  @return Returns a reference to this object so that method calls can be chained together.