docs: public java.util.List<MetricGranularityType> getGranularities() {
          if (granularities == null) {
              granularities = new com.amazonaws.internal.SdkInternalList<MetricGranularityType>();
          }
          return granularities;
      }