/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::IAM::Model; using namespace Aws::Utils; ListGroupsRequest::ListGroupsRequest() : m_pathPrefixHasBeenSet(false), m_markerHasBeenSet(false), m_maxItems(0), m_maxItemsHasBeenSet(false) { } Aws::String ListGroupsRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=ListGroups&"; if(m_pathPrefixHasBeenSet) { ss << "PathPrefix=" << StringUtils::URLEncode(m_pathPrefix.c_str()) << "&"; } if(m_markerHasBeenSet) { ss << "Marker=" << StringUtils::URLEncode(m_marker.c_str()) << "&"; } if(m_maxItemsHasBeenSet) { ss << "MaxItems=" << m_maxItems << "&"; } ss << "Version=2010-05-08"; return ss.str(); } void ListGroupsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }