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