code: public ResourcePath withComponents(ResourcePathComponent... components) {
          if (this.components == null) {
              setComponents(new java.util.ArrayList<ResourcePathComponent>(components.length));
          }
          for (ResourcePathComponent ele : components) {
              this.components.add(ele);
          }
          return this;
      }
docs: <p>
  The components of the resource path.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setComponents(java.util.Collection)} or {@link #withComponents(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param components
  The components of the resource path.
  @return Returns a reference to this object so that method calls can be chained together.