docs: public QueryStringBuilder getQueryParameters() {
          QueryStringBuilder builder = new QueryStringBuilder();
  
          if (this.isNullOrEmpty(this.query) && this.metadataFilter == null) {
              throw new BoxAPIException(
                  "BoxSearchParameters requires either a search query or Metadata filter to be set."
              );
          }
  
          //Set the query of the search
          if (!this.isNullOrEmpty(this.query)) {
              builder.appendParam("query", this.query);
          }
          //Set the scope of the search
          if (!this.isNullOrEmpty(this.scope)) {
              builder.appendParam("scope", this.scope);
          }
          //Acceptable Value: "jpg,png"
          if (!this.isNullOrEmpty(this.fileExtensions)) {
              builder.appendParam("file_extensions", this.listToCSV(this.fileExtensions));
          }
          //Created Date Range: From Date - To Date
          if ((this.createdRange != null)) {
              builder.appendParam("created_at_range", this.createdRange.buildRangeString());
          }
          //Updated Date Range: From Date - To Date
          if ((this.updatedRange != null)) {
              builder.appendParam("updated_at_range", this.updatedRange.buildRangeString());
          }
          //Filesize Range
          if ((this.sizeRange != null)) {
              builder.appendParam("size_range", this.sizeRange.buildRangeString());
          }
          //Owner Id's
          if (!this.isNullOrEmpty(this.ownerUserIds)) {
              builder.appendParam("owner_user_ids", this.listToCSV(this.ownerUserIds));
          }
          //Ancestor ID's
          if (!this.isNullOrEmpty(this.ancestorFolderIds)) {
              builder.appendParam("ancestor_folder_ids", this.listToCSV(this.ancestorFolderIds));
          }
          //Content Types: "name, description"
          if (!this.isNullOrEmpty(this.contentTypes)) {
              builder.appendParam("content_types", this.listToCSV(this.contentTypes));
          }
          //Type of File: "file,folder,web_link"
          if (this.type != null) {
              builder.appendParam("type", this.type);
          }
          //Trash Content
          if (!this.isNullOrEmpty(this.trashContent)) {
              builder.appendParam("trash_content", this.trashContent);
          }
          //Metadata filters
          if (this.metadataFilter != null) {
              builder.appendParam("mdfilters", this.formatBoxMetadataFilterRequest().toString());
          }
          //Fields
          if (!this.isNullOrEmpty(this.fields)) {
              builder.appendParam("fields", this.listToCSV(this.fields));
          }
          //Sort
          if (!this.isNullOrEmpty(this.sort)) {
              builder.appendParam("sort", this.sort);
          }
          //Direction
          if (!this.isNullOrEmpty(this.direction)) {
              builder.appendParam("direction", this.direction);
          }
          return builder;
      }