AWS SDK for C++  1.9.104
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
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::WithMaxResults
ListAnalyzersRequest & WithMaxResults(int value)
Definition: ListAnalyzersRequest.h:63
AccessAnalyzer_EXPORTS.h
Aws::Http::URI
Definition: URI.h:32
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAnalyzersRequest.h:58
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAnalyzersRequest.h:38
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::WithNextToken
ListAnalyzersRequest & WithNextToken(const Aws::String &value)
Definition: ListAnalyzersRequest.h:94
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::WithType
ListAnalyzersRequest & WithType(Type &&value)
Definition: ListAnalyzersRequest.h:135
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::SetType
void SetType(Type &&value)
Definition: ListAnalyzersRequest.h:125
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::SetType
void SetType(const Type &value)
Definition: ListAnalyzersRequest.h:120
Type.h
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAnalyzersRequest.h:89
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ListAnalyzersRequest.h:115
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::WithNextToken
ListAnalyzersRequest & WithNextToken(const char *value)
Definition: ListAnalyzersRequest.h:104
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::WithType
ListAnalyzersRequest & WithType(const Type &value)
Definition: ListAnalyzersRequest.h:130
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAnalyzersRequest.h:48
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAnalyzersRequest.h:74
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::GetType
const Type & GetType() const
Definition: ListAnalyzersRequest.h:110
AWSString.h
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::WithNextToken
ListAnalyzersRequest & WithNextToken(Aws::String &&value)
Definition: ListAnalyzersRequest.h:99
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAnalyzersRequest.h:84
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::Type
Type
Definition: Type.h:17
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::ListAnalyzersRequest
ListAnalyzersRequest()
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAnalyzersRequest.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AccessAnalyzer::Model::ListAnalyzersRequest
Definition: ListAnalyzersRequest.h:30
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAnalyzersRequest.h:79
Aws::AccessAnalyzer::Model::ListAnalyzersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAnalyzersRequest.h:69