public CloudWatchAlarmDefinition withDimensions(java.util.Collection<MetricDimension> dimensions) {
        setDimensions(dimensions);
        return this;
    }
<p>
A CloudWatch metric dimension.
</p>

@param dimensions
       A CloudWatch metric dimension.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/CloudWatchAlarmDefinition.java