public DeleteAnomalyDetectorRequest withMetricMathAnomalyDetector(MetricMathAnomalyDetector metricMathAnomalyDetector) {
        setMetricMathAnomalyDetector(metricMathAnomalyDetector);
        return this;
    }
<p>
The metric math anomaly detector to be deleted.
</p>
<p>
When using <code>MetricMathAnomalyDetector</code>, you cannot include following parameters in the same operation:
</p>
<ul>
<li>
<p>
<code>Dimensions</code>,
</p>
</li>
<li>
<p>
<code>MetricName</code>
</p>
</li>
<li>
<p>
<code>Namespace</code>
</p>
</li>
<li>
<p>
<code>Stat</code>
</p>
</li>
<li>
<p>
the <code>SingleMetricAnomalyDetector</code> parameters of <code>DeleteAnomalyDetectorInput</code>
</p>
</li>
</ul>
<p>
Instead, specify the metric math anomaly detector attributes as part of the
<code>MetricMathAnomalyDetector</code> property.
</p>

@param metricMathAnomalyDetector
       The metric math anomaly detector to be deleted.</p>
       <p>
       When using <code>MetricMathAnomalyDetector</code>, you cannot include following parameters in the same
       operation:
       </p>
       <ul>
       <li>
       <p>
       <code>Dimensions</code>,
       </p>
       </li>
       <li>
       <p>
       <code>MetricName</code>
       </p>
       </li>
       <li>
       <p>
       <code>Namespace</code>
       </p>
       </li>
       <li>
       <p>
       <code>Stat</code>
       </p>
       </li>
       <li>
       <p>
       the <code>SingleMetricAnomalyDetector</code> parameters of <code>DeleteAnomalyDetectorInput</code>
       </p>
       </li>
       </ul>
       <p>
       Instead, specify the metric math anomaly detector attributes as part of the
       <code>MetricMathAnomalyDetector</code> property.
@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