public void setMetricMathAnomalyDetector(MetricMathAnomalyDetector metricMathAnomalyDetector) {
        this.metricMathAnomalyDetector = metricMathAnomalyDetector;
    }
<p>
The metric math anomaly detector to be created.
</p>
<p>
When using <code>MetricMathAnomalyDetector</code>, you cannot include the 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>PutAnomalyDetectorInput</code>
</p>
</li>
</ul>
<p>
Instead, specify the metric math anomaly detector attributes as part of the property
<code>MetricMathAnomalyDetector</code>.
</p>

@param metricMathAnomalyDetector
       The metric math anomaly detector to be created.</p>
       <p>
       When using <code>MetricMathAnomalyDetector</code>, you cannot include the 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>PutAnomalyDetectorInput</code>
       </p>
       </li>
       </ul>
       <p>
       Instead, specify the metric math anomaly detector attributes as part of the property
       <code>MetricMathAnomalyDetector</code>.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/PutAnomalyDetectorRequest.java