42 lines
1023 B
C++
42 lines
1023 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/monitoring/model/DeleteDashboardsRequest.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|
|
|
using namespace Aws::CloudWatch::Model;
|
|
using namespace Aws::Utils;
|
|
|
|
DeleteDashboardsRequest::DeleteDashboardsRequest() :
|
|
m_dashboardNamesHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String DeleteDashboardsRequest::SerializePayload() const
|
|
{
|
|
Aws::StringStream ss;
|
|
ss << "Action=DeleteDashboards&";
|
|
if(m_dashboardNamesHasBeenSet)
|
|
{
|
|
unsigned dashboardNamesCount = 1;
|
|
for(auto& item : m_dashboardNames)
|
|
{
|
|
ss << "DashboardNames.member." << dashboardNamesCount << "="
|
|
<< StringUtils::URLEncode(item.c_str()) << "&";
|
|
dashboardNamesCount++;
|
|
}
|
|
}
|
|
|
|
ss << "Version=2010-08-01";
|
|
return ss.str();
|
|
}
|
|
|
|
|
|
void DeleteDashboardsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
|
|
{
|
|
uri.SetQueryString(SerializePayload());
|
|
}
|