/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CloudSearch::Model; using namespace Aws::Utils; DescribeIndexFieldsRequest::DescribeIndexFieldsRequest() : m_domainNameHasBeenSet(false), m_fieldNamesHasBeenSet(false), m_deployed(false), m_deployedHasBeenSet(false) { } Aws::String DescribeIndexFieldsRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=DescribeIndexFields&"; if(m_domainNameHasBeenSet) { ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&"; } if(m_fieldNamesHasBeenSet) { unsigned fieldNamesCount = 1; for(auto& item : m_fieldNames) { ss << "FieldNames.member." << fieldNamesCount << "=" << StringUtils::URLEncode(item.c_str()) << "&"; fieldNamesCount++; } } if(m_deployedHasBeenSet) { ss << "Deployed=" << std::boolalpha << m_deployed << "&"; } ss << "Version=2013-01-01"; return ss.str(); } void DescribeIndexFieldsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }