public CloudWatchAlarmConfiguration withDimensions(java.util.Collection<Dimension> dimensions) {
        setDimensions(dimensions);
        return this;
    }
<p>
For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the
dimensions for the metric. For information, see <a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html">Amazon
CloudWatch Namespaces, Dimensions, and Metrics Reference</a> in the <i>Amazon CloudWatch User Guide</i>.
</p>

@param dimensions
       For the metric that the CloudWatch alarm is associated with, a complex type that contains information
       about the dimensions for the metric. For information, see <a
       href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html">Amazon
       CloudWatch Namespaces, Dimensions, and Metrics Reference</a> in the <i>Amazon CloudWatch User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/model/CloudWatchAlarmConfiguration.java