code: public UrlStringBuilder setPath(String... elements) {
          Validate.noNullElements(elements, "elements cannot be null");
  
          this.path.clear();
          this.addPath(elements);
          return this;
      }
docs: Removes any existing path elements and sets the provided elements as the path
  
  @param elements Path elements to set
  @return this