code: public CreateWorkspacesRequest withWorkspaces(WorkspaceRequest... workspaces) {
          if (this.workspaces == null) {
              setWorkspaces(new com.amazonaws.internal.SdkInternalList<WorkspaceRequest>(workspaces.length));
          }
          for (WorkspaceRequest ele : workspaces) {
              this.workspaces.add(ele);
          }
          return this;
      }
docs: <p>
  The WorkSpaces to create. You can specify up to 25 WorkSpaces.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setWorkspaces(java.util.Collection)} or {@link #withWorkspaces(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param workspaces
  The WorkSpaces to create. You can specify up to 25 WorkSpaces.
  @return Returns a reference to this object so that method calls can be chained together.