/** * 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; DisableInsightRulesRequest::DisableInsightRulesRequest() : m_ruleNamesHasBeenSet(false) { } Aws::String DisableInsightRulesRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=DisableInsightRules&"; if(m_ruleNamesHasBeenSet) { unsigned ruleNamesCount = 1; for(auto& item : m_ruleNames) { ss << "RuleNames.member." << ruleNamesCount << "=" << StringUtils::URLEncode(item.c_str()) << "&"; ruleNamesCount++; } } ss << "Version=2010-08-01"; return ss.str(); } void DisableInsightRulesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }