code: public CreateWorkspacesResult withPendingRequests(Workspace... pendingRequests) {
          if (this.pendingRequests == null) {
              setPendingRequests(new com.amazonaws.internal.SdkInternalList<Workspace>(pendingRequests.length));
          }
          for (Workspace ele : pendingRequests) {
              this.pendingRequests.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the WorkSpaces that were created.
  </p>
  <p>
  Because this operation is asynchronous, the identifier returned is not immediately available for use with other
  operations. For example, if you call <a>DescribeWorkspaces</a> before the WorkSpace is created, the information
  returned can be incomplete.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPendingRequests(java.util.Collection)} or {@link #withPendingRequests(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param pendingRequests
  Information about the WorkSpaces that were created.</p>
  <p>
  Because this operation is asynchronous, the identifier returned is not immediately available for use with
  other operations. For example, if you call <a>DescribeWorkspaces</a> before the WorkSpace is created, the
  information returned can be incomplete.
  @return Returns a reference to this object so that method calls can be chained together.