public DescribeAnomalyDetectorsRequest withAnomalyDetectorTypes(String... anomalyDetectorTypes) {
        if (this.anomalyDetectorTypes == null) {
            setAnomalyDetectorTypes(new com.amazonaws.internal.SdkInternalList<String>(anomalyDetectorTypes.length));
        }
        for (String ele : anomalyDetectorTypes) {
            this.anomalyDetectorTypes.add(ele);
        }
        return this;
    }
<p>
The anomaly detector types to request when using <code>DescribeAnomalyDetectorsInput</code>. If empty, defaults
to <code>SINGLE_METRIC</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAnomalyDetectorTypes(java.util.Collection)} or {@link #withAnomalyDetectorTypes(java.util.Collection)}
if you want to override the existing values.
</p>

@param anomalyDetectorTypes
       The anomaly detector types to request when using <code>DescribeAnomalyDetectorsInput</code>. If empty,
       defaults to <code>SINGLE_METRIC</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see AnomalyDetectorType
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/DescribeAnomalyDetectorsRequest.java