public static MetricDatum newMetricDatum(MetricDatum from, Dimension ... dimensions) {
        return new MetricDatum()
            .withMetricName(from.getMetricName())
            .withDimensions(dimensions)
            .withUnit(from.getUnit())
            .withValue(from.getValue())
            .withStatisticValues(from.getStatisticValues())
            .withTimestamp(from.getTimestamp())
            ;
    }
Returns a new metric datum cloned from the given metric datum, but
replacing the dimensions with the newly specified ones.
aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/spi/MetricData.java