1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/accessanalyzer/model/ListAnalyzersRequest.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::AccessAnalyzer::Model;
14 using namespace Aws::Utils::Json;
15 using namespace Aws::Utils;
16 using namespace Aws::Http;
17 
ListAnalyzersRequest()18 ListAnalyzersRequest::ListAnalyzersRequest() :
19     m_maxResults(0),
20     m_maxResultsHasBeenSet(false),
21     m_nextTokenHasBeenSet(false),
22     m_type(Type::NOT_SET),
23     m_typeHasBeenSet(false)
24 {
25 }
26 
SerializePayload() const27 Aws::String ListAnalyzersRequest::SerializePayload() const
28 {
29   return {};
30 }
31 
AddQueryStringParameters(URI & uri) const32 void ListAnalyzersRequest::AddQueryStringParameters(URI& uri) const
33 {
34     Aws::StringStream ss;
35     if(m_maxResultsHasBeenSet)
36     {
37       ss << m_maxResults;
38       uri.AddQueryStringParameter("maxResults", ss.str());
39       ss.str("");
40     }
41 
42     if(m_nextTokenHasBeenSet)
43     {
44       ss << m_nextToken;
45       uri.AddQueryStringParameter("nextToken", ss.str());
46       ss.str("");
47     }
48 
49     if(m_typeHasBeenSet)
50     {
51       ss << TypeMapper::GetNameForType(m_type);
52       uri.AddQueryStringParameter("type", ss.str());
53       ss.str("");
54     }
55 
56 }
57 
58 
59 
60