AWS SDK for C++  1.8.71
AWS SDK for C++
ListAnalyzersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace AccessAnalyzer
20 {
21 namespace Model
22 {
23 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "ListAnalyzers"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline int GetMaxResults() const{ return m_maxResults; }
49 
53  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
54 
58  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
59 
63  inline ListAnalyzersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64 
65 
69  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
70 
74  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
75 
79  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
80 
84  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
85 
89  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
90 
94  inline ListAnalyzersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
95 
99  inline ListAnalyzersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
100 
104  inline ListAnalyzersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
105 
106 
110  inline const Type& GetType() const{ return m_type; }
111 
115  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 
120  inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
121 
125  inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
126 
130  inline ListAnalyzersRequest& WithType(const Type& value) { SetType(value); return *this;}
131 
135  inline ListAnalyzersRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
136 
137  private:
138 
139  int m_maxResults;
140  bool m_maxResultsHasBeenSet;
141 
142  Aws::String m_nextToken;
143  bool m_nextTokenHasBeenSet;
144 
145  Type m_type;
146  bool m_typeHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace AccessAnalyzer
151 } // namespace Aws
ListAnalyzersRequest & WithType(const Type &value)
ListAnalyzersRequest & WithType(Type &&value)
virtual const char * GetServiceRequestName() const override
ListAnalyzersRequest & WithNextToken(Aws::String &&value)
#define AWS_ACCESSANALYZER_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListAnalyzersRequest & WithNextToken(const char *value)
ListAnalyzersRequest & WithMaxResults(int value)
ListAnalyzersRequest & WithNextToken(const Aws::String &value)