public void setAdditionalMetricsToRetainV2(java.util.Collection<MetricToRetain> additionalMetricsToRetainV2) {
        if (additionalMetricsToRetainV2 == null) {
            this.additionalMetricsToRetainV2 = null;
            return;
        }

        this.additionalMetricsToRetainV2 = new java.util.ArrayList<MetricToRetain>(additionalMetricsToRetainV2);
    }
<p>
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
profile's behaviors, but it is also retained for any metric specified here. Can be used with custom metrics;
cannot be used with dimensions.
</p>

@param additionalMetricsToRetainV2
       A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
       profile's behaviors, but it is also retained for any metric specified here. Can be used with custom
       metrics; cannot be used with dimensions.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/UpdateSecurityProfileResult.java