docs: public CloudWatchAlarmDefinition withDimensions(MetricDimension... dimensions) {
          if (this.dimensions == null) {
              setDimensions(new com.amazonaws.internal.SdkInternalList<MetricDimension>(dimensions.length));
          }
          for (MetricDimension ele : dimensions) {
              this.dimensions.add(ele);
          }
          return this;
      }