/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CloudWatch::Model; using namespace Aws::Utils; PutAnomalyDetectorRequest::PutAnomalyDetectorRequest() : m_configurationHasBeenSet(false), m_singleMetricAnomalyDetectorHasBeenSet(false), m_metricMathAnomalyDetectorHasBeenSet(false) { } Aws::String PutAnomalyDetectorRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=PutAnomalyDetector&"; if(m_configurationHasBeenSet) { m_configuration.OutputToStream(ss, "Configuration"); } if(m_singleMetricAnomalyDetectorHasBeenSet) { m_singleMetricAnomalyDetector.OutputToStream(ss, "SingleMetricAnomalyDetector"); } if(m_metricMathAnomalyDetectorHasBeenSet) { m_metricMathAnomalyDetector.OutputToStream(ss, "MetricMathAnomalyDetector"); } ss << "Version=2010-08-01"; return ss.str(); } void PutAnomalyDetectorRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }