1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #include <aws/iot/model/ListIndicesRequest.h> 7 #include <aws/core/utils/json/JsonSerializer.h> 8 #include <aws/core/http/URI.h> 9 #include <aws/core/utils/memory/stl/AWSStringStream.h> 10 11 #include <utility> 12 13 using namespace Aws::IoT::Model; 14 using namespace Aws::Utils::Json; 15 using namespace Aws::Utils; 16 using namespace Aws::Http; 17 ListIndicesRequest()18ListIndicesRequest::ListIndicesRequest() : 19 m_nextTokenHasBeenSet(false), 20 m_maxResults(0), 21 m_maxResultsHasBeenSet(false) 22 { 23 } 24 SerializePayload() const25Aws::String ListIndicesRequest::SerializePayload() const 26 { 27 return {}; 28 } 29 AddQueryStringParameters(URI & uri) const30void ListIndicesRequest::AddQueryStringParameters(URI& uri) const 31 { 32 Aws::StringStream ss; 33 if(m_nextTokenHasBeenSet) 34 { 35 ss << m_nextToken; 36 uri.AddQueryStringParameter("nextToken", ss.str()); 37 ss.str(""); 38 } 39 40 if(m_maxResultsHasBeenSet) 41 { 42 ss << m_maxResults; 43 uri.AddQueryStringParameter("maxResults", ss.str()); 44 ss.str(""); 45 } 46 47 } 48 49 50 51