public matching(regexp: string): RequestBuilder {
    const urlType = this.path ? 'urlPathPattern' : 'urlPattern';
    this.jsonObject = { [urlType]: regexp };
    return this.requestBuilder;
  }