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

        this.dimensions = new java.util.ArrayList<Dimension>(dimensions);
    }
<p>
An array of one or more dimensions to use to define the metric that you want to use. For more information, see <a
href
="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension">Dimensions
</a>.
</p>

@param dimensions
       An array of one or more dimensions to use to define the metric that you want to use. For more information,
       see <a
       href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension"
       >Dimensions</a>.
aws-java-sdk-applicationsignals/src/main/java/com/amazonaws/services/applicationsignals/model/Metric.java