public void setDimensions(java.util.Collection<MetricDimension> dimensions) {
        if (dimensions == null) {
            this.dimensions = null;
            return;
        }

        this.dimensions = new com.amazonaws.internal.SdkInternalList<MetricDimension>(dimensions);
    }
<p>
A CloudWatch metric dimension.
</p>

@param dimensions
       A CloudWatch metric dimension.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/CloudWatchAlarmDefinition.java