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