This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-monitoring/source/model/DeleteAnomalyDetectorRequest.cpp

59 lines
1.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/monitoring/model/DeleteAnomalyDetectorRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudWatch::Model;
using namespace Aws::Utils;
DeleteAnomalyDetectorRequest::DeleteAnomalyDetectorRequest() :
m_namespaceHasBeenSet(false),
m_metricNameHasBeenSet(false),
m_dimensionsHasBeenSet(false),
m_statHasBeenSet(false)
{
}
Aws::String DeleteAnomalyDetectorRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DeleteAnomalyDetector&";
if(m_namespaceHasBeenSet)
{
ss << "Namespace=" << StringUtils::URLEncode(m_namespace.c_str()) << "&";
}
if(m_metricNameHasBeenSet)
{
ss << "MetricName=" << StringUtils::URLEncode(m_metricName.c_str()) << "&";
}
if(m_dimensionsHasBeenSet)
{
unsigned dimensionsCount = 1;
for(auto& item : m_dimensions)
{
item.OutputToStream(ss, "Dimensions.member.", dimensionsCount, "");
dimensionsCount++;
}
}
if(m_statHasBeenSet)
{
ss << "Stat=" << StringUtils::URLEncode(m_stat.c_str()) << "&";
}
ss << "Version=2010-08-01";
return ss.str();
}
void DeleteAnomalyDetectorRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}