AWS SDK for C++  1.9.156
AWS SDK for C++
ListFindingsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace AccessAnalyzer
18 {
19 namespace Model
20 {
21 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "ListFindings"; }
38 
39  Aws::String SerializePayload() const override;
40 
41 
47  inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
48 
54  inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
55 
61  inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
62 
68  inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
69 
75  inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
76 
82  inline ListFindingsRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
83 
89  inline ListFindingsRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
90 
96  inline ListFindingsRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
97 
98 
102  inline const Aws::Map<Aws::String, Criterion>& GetFilter() const{ return m_filter; }
103 
107  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
108 
112  inline void SetFilter(const Aws::Map<Aws::String, Criterion>& value) { m_filterHasBeenSet = true; m_filter = value; }
113 
117  inline void SetFilter(Aws::Map<Aws::String, Criterion>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
118 
122  inline ListFindingsRequest& WithFilter(const Aws::Map<Aws::String, Criterion>& value) { SetFilter(value); return *this;}
123 
127  inline ListFindingsRequest& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
128 
132  inline ListFindingsRequest& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
133 
137  inline ListFindingsRequest& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
138 
142  inline ListFindingsRequest& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
143 
147  inline ListFindingsRequest& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
148 
152  inline ListFindingsRequest& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
153 
157  inline ListFindingsRequest& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
158 
159 
163  inline int GetMaxResults() const{ return m_maxResults; }
164 
168  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
169 
173  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
174 
178  inline ListFindingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
179 
180 
184  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
185 
189  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
190 
194  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
195 
199  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
200 
204  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
205 
209  inline ListFindingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
210 
214  inline ListFindingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
215 
219  inline ListFindingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
220 
221 
225  inline const SortCriteria& GetSort() const{ return m_sort; }
226 
230  inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
231 
235  inline void SetSort(const SortCriteria& value) { m_sortHasBeenSet = true; m_sort = value; }
236 
240  inline void SetSort(SortCriteria&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
241 
245  inline ListFindingsRequest& WithSort(const SortCriteria& value) { SetSort(value); return *this;}
246 
250  inline ListFindingsRequest& WithSort(SortCriteria&& value) { SetSort(std::move(value)); return *this;}
251 
252  private:
253 
254  Aws::String m_analyzerArn;
255  bool m_analyzerArnHasBeenSet;
256 
258  bool m_filterHasBeenSet;
259 
260  int m_maxResults;
261  bool m_maxResultsHasBeenSet;
262 
263  Aws::String m_nextToken;
264  bool m_nextTokenHasBeenSet;
265 
266  SortCriteria m_sort;
267  bool m_sortHasBeenSet;
268  };
269 
270 } // namespace Model
271 } // namespace AccessAnalyzer
272 } // namespace Aws
Aws::AccessAnalyzer::Model::ListFindingsRequest::SetFilter
void SetFilter(const Aws::Map< Aws::String, Criterion > &value)
Definition: ListFindingsRequest.h:112
Aws::AccessAnalyzer::Model::ListFindingsRequest::WithAnalyzerArn
ListFindingsRequest & WithAnalyzerArn(const char *value)
Definition: ListFindingsRequest.h:96
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::ListFindingsRequest::WithSort
ListFindingsRequest & WithSort(const SortCriteria &value)
Definition: ListFindingsRequest.h:245
Aws::AccessAnalyzer::Model::ListFindingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListFindingsRequest.h:37
Aws::AccessAnalyzer::Model::ListFindingsRequest::ListFindingsRequest
ListFindingsRequest()
Aws::AccessAnalyzer::Model::ListFindingsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListFindingsRequest.h:199
Aws::AccessAnalyzer::Model::ListFindingsRequest::WithNextToken
ListFindingsRequest & WithNextToken(Aws::String &&value)
Definition: ListFindingsRequest.h:214
Aws::AccessAnalyzer::Model::ListFindingsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListFindingsRequest.h:184
Aws::AccessAnalyzer::Model::ListFindingsRequest::WithAnalyzerArn
ListFindingsRequest & WithAnalyzerArn(const Aws::String &value)
Definition: ListFindingsRequest.h:82
Aws::AccessAnalyzer::Model::ListFindingsRequest::SetAnalyzerArn
void SetAnalyzerArn(Aws::String &&value)
Definition: ListFindingsRequest.h:68
Aws::AccessAnalyzer::Model::ListFindingsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListFindingsRequest.h:194
Aws::AccessAnalyzer::Model::ListFindingsRequest::AddFilter
ListFindingsRequest & AddFilter(const char *key, const Criterion &value)
Definition: ListFindingsRequest.h:157
Aws::AccessAnalyzer::Model::ListFindingsRequest::GetAnalyzerArn
const Aws::String & GetAnalyzerArn() const
Definition: ListFindingsRequest.h:47
Aws::AccessAnalyzer::Model::ListFindingsRequest::WithSort
ListFindingsRequest & WithSort(SortCriteria &&value)
Definition: ListFindingsRequest.h:250
Aws::AccessAnalyzer::Model::Criterion
Definition: Criterion.h:34
Aws::AccessAnalyzer::Model::SortCriteria
Definition: SortCriteria.h:33
Criterion.h
Aws::AccessAnalyzer::Model::ListFindingsRequest::AddFilter
ListFindingsRequest & AddFilter(const Aws::String &key, const Criterion &value)
Definition: ListFindingsRequest.h:132
Aws::AccessAnalyzer::Model::ListFindingsRequest::AnalyzerArnHasBeenSet
bool AnalyzerArnHasBeenSet() const
Definition: ListFindingsRequest.h:54
Aws::AccessAnalyzer::Model::ListFindingsRequest::SetAnalyzerArn
void SetAnalyzerArn(const Aws::String &value)
Definition: ListFindingsRequest.h:61
Aws::AccessAnalyzer::Model::ListFindingsRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: ListFindingsRequest.h:107
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::ListFindingsRequest::GetFilter
const Aws::Map< Aws::String, Criterion > & GetFilter() const
Definition: ListFindingsRequest.h:102
Aws::AccessAnalyzer::Model::ListFindingsRequest::SetSort
void SetSort(const SortCriteria &value)
Definition: ListFindingsRequest.h:235
Aws::AccessAnalyzer::Model::ListFindingsRequest
Definition: ListFindingsRequest.h:29
Aws::AccessAnalyzer::Model::ListFindingsRequest::AddFilter
ListFindingsRequest & AddFilter(const char *key, Criterion &&value)
Definition: ListFindingsRequest.h:152
AWSString.h
Aws::AccessAnalyzer::Model::ListFindingsRequest::AddFilter
ListFindingsRequest & AddFilter(Aws::String &&key, Criterion &&value)
Definition: ListFindingsRequest.h:147
Aws::AccessAnalyzer::Model::ListFindingsRequest::WithFilter
ListFindingsRequest & WithFilter(const Aws::Map< Aws::String, Criterion > &value)
Definition: ListFindingsRequest.h:122
Aws::AccessAnalyzer::Model::ListFindingsRequest::GetSort
const SortCriteria & GetSort() const
Definition: ListFindingsRequest.h:225
Aws::AccessAnalyzer::Model::ListFindingsRequest::SetAnalyzerArn
void SetAnalyzerArn(const char *value)
Definition: ListFindingsRequest.h:75
Aws::AccessAnalyzer::Model::ListFindingsRequest::WithNextToken
ListFindingsRequest & WithNextToken(const char *value)
Definition: ListFindingsRequest.h:219
Aws::AccessAnalyzer::Model::ListFindingsRequest::WithNextToken
ListFindingsRequest & WithNextToken(const Aws::String &value)
Definition: ListFindingsRequest.h:209
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::ListFindingsRequest::SortHasBeenSet
bool SortHasBeenSet() const
Definition: ListFindingsRequest.h:230
Aws::AccessAnalyzer::Model::ListFindingsRequest::SetFilter
void SetFilter(Aws::Map< Aws::String, Criterion > &&value)
Definition: ListFindingsRequest.h:117
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::ListFindingsRequest::SetSort
void SetSort(SortCriteria &&value)
Definition: ListFindingsRequest.h:240
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::ListFindingsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListFindingsRequest.h:173
Aws::AccessAnalyzer::Model::ListFindingsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListFindingsRequest.h:163
Aws::AccessAnalyzer::Model::ListFindingsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListFindingsRequest.h:204
Aws::AccessAnalyzer::Model::ListFindingsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListFindingsRequest.h:189
Aws::AccessAnalyzer::Model::ListFindingsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListFindingsRequest.h:168
SortCriteria.h
AWSMap.h
Aws::AccessAnalyzer::Model::ListFindingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AccessAnalyzer::Model::ListFindingsRequest::WithAnalyzerArn
ListFindingsRequest & WithAnalyzerArn(Aws::String &&value)
Definition: ListFindingsRequest.h:89
Aws::AccessAnalyzer::Model::ListFindingsRequest::WithFilter
ListFindingsRequest & WithFilter(Aws::Map< Aws::String, Criterion > &&value)
Definition: ListFindingsRequest.h:127
Aws::AccessAnalyzer::Model::ListFindingsRequest::AddFilter
ListFindingsRequest & AddFilter(const Aws::String &key, Criterion &&value)
Definition: ListFindingsRequest.h:142
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::AccessAnalyzer::Model::ListFindingsRequest::WithMaxResults
ListFindingsRequest & WithMaxResults(int value)
Definition: ListFindingsRequest.h:178
Aws::AccessAnalyzer::Model::ListFindingsRequest::AddFilter
ListFindingsRequest & AddFilter(Aws::String &&key, const Criterion &value)
Definition: ListFindingsRequest.h:137