code: public void setDimensions(java.util.Collection<MetricDimension> dimensions) {
          if (dimensions == null) {
              this.dimensions = null;
              return;
          }
  
          this.dimensions = new java.util.ArrayList<MetricDimension>(dimensions);
      }
docs: <p>
  The dimensions of the metric.
  </p>
  <p>
  Conditional: If you published your metric with dimensions, you must specify the same dimensions in your
  customized scaling metric specification.
  </p>
  
  @param dimensions
  The dimensions of the metric.</p>
  <p>
  Conditional: If you published your metric with dimensions, you must specify the same dimensions in your
  customized scaling metric specification.