/** * 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; ListManagedInsightRulesRequest::ListManagedInsightRulesRequest() : m_resourceARNHasBeenSet(false), m_nextTokenHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false) { } Aws::String ListManagedInsightRulesRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=ListManagedInsightRules&"; if(m_resourceARNHasBeenSet) { ss << "ResourceARN=" << StringUtils::URLEncode(m_resourceARN.c_str()) << "&"; } if(m_nextTokenHasBeenSet) { ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&"; } if(m_maxResultsHasBeenSet) { ss << "MaxResults=" << m_maxResults << "&"; } ss << "Version=2010-08-01"; return ss.str(); } void ListManagedInsightRulesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }