docs: public DescribeMetricCollectionTypesResult withGranularities(MetricGranularityType... granularities) {
          if (this.granularities == null) {
              setGranularities(new com.amazonaws.internal.SdkInternalList<MetricGranularityType>(granularities.length));
          }
          for (MetricGranularityType ele : granularities) {
              this.granularities.add(ele);
          }
          return this;
      }