code: public SegmentGroup withDimensions(SegmentDimensions... dimensions) {
          if (this.dimensions == null) {
              setDimensions(new java.util.ArrayList<SegmentDimensions>(dimensions.length));
          }
          for (SegmentDimensions ele : dimensions) {
              this.dimensions.add(ele);
          }
          return this;
      }
docs: List of dimensions to include or exclude.
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setDimensions(java.util.Collection)} or {@link #withDimensions(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param dimensions
  List of dimensions to include or exclude.
  @return Returns a reference to this object so that method calls can be chained together.