@Deprecated
    public DeleteAnomalyDetectorRequest withDimensions(Dimension... dimensions) {
        if (this.dimensions == null) {
            setDimensions(new com.amazonaws.internal.SdkInternalList<Dimension>(dimensions.length));
        }
        for (Dimension ele : dimensions) {
            this.dimensions.add(ele);
        }
        return this;
    }
<p>
The metric dimensions associated with the anomaly detection model to delete.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDimensions(java.util.Collection)} or {@link #withDimensions(java.util.Collection)} if you want to
override the existing values.
</p>

@param dimensions
       The metric dimensions associated with the anomaly detection model to delete.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/DeleteAnomalyDetectorRequest.java