AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListFindingsRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/accessanalyzer/model/SortCriteria.h>
12#include <aws/accessanalyzer/model/Criterion.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AccessAnalyzer
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_ACCESSANALYZER_API ListFindingsRequest();
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_ACCESSANALYZER_API Aws::String SerializePayload() const override;
40
41
43
48 inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
49 inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
50 inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
51 inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
52 inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
53 inline ListFindingsRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
54 inline ListFindingsRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
55 inline ListFindingsRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
57
59
62 inline const Aws::Map<Aws::String, Criterion>& GetFilter() const{ return m_filter; }
63 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
64 inline void SetFilter(const Aws::Map<Aws::String, Criterion>& value) { m_filterHasBeenSet = true; m_filter = value; }
65 inline void SetFilter(Aws::Map<Aws::String, Criterion>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
66 inline ListFindingsRequest& WithFilter(const Aws::Map<Aws::String, Criterion>& value) { SetFilter(value); return *this;}
67 inline ListFindingsRequest& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
68 inline ListFindingsRequest& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
69 inline ListFindingsRequest& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
70 inline ListFindingsRequest& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
71 inline ListFindingsRequest& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
72 inline ListFindingsRequest& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
73 inline ListFindingsRequest& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
75
77
80 inline const SortCriteria& GetSort() const{ return m_sort; }
81 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
82 inline void SetSort(const SortCriteria& value) { m_sortHasBeenSet = true; m_sort = value; }
83 inline void SetSort(SortCriteria&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
84 inline ListFindingsRequest& WithSort(const SortCriteria& value) { SetSort(value); return *this;}
85 inline ListFindingsRequest& WithSort(SortCriteria&& value) { SetSort(std::move(value)); return *this;}
87
89
92 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
96 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
97 inline ListFindingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
98 inline ListFindingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
99 inline ListFindingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
101
103
106 inline int GetMaxResults() const{ return m_maxResults; }
107 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
108 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
109 inline ListFindingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
111 private:
112
113 Aws::String m_analyzerArn;
114 bool m_analyzerArnHasBeenSet = false;
115
117 bool m_filterHasBeenSet = false;
118
119 SortCriteria m_sort;
120 bool m_sortHasBeenSet = false;
121
122 Aws::String m_nextToken;
123 bool m_nextTokenHasBeenSet = false;
124
125 int m_maxResults;
126 bool m_maxResultsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace AccessAnalyzer
131} // namespace Aws
ListFindingsRequest & AddFilter(Aws::String &&key, Criterion &&value)
ListFindingsRequest & WithAnalyzerArn(const Aws::String &value)
ListFindingsRequest & WithAnalyzerArn(const char *value)
void SetFilter(Aws::Map< Aws::String, Criterion > &&value)
ListFindingsRequest & AddFilter(const Aws::String &key, Criterion &&value)
ListFindingsRequest & WithAnalyzerArn(Aws::String &&value)
void SetFilter(const Aws::Map< Aws::String, Criterion > &value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
ListFindingsRequest & WithNextToken(const Aws::String &value)
ListFindingsRequest & WithFilter(Aws::Map< Aws::String, Criterion > &&value)
ListFindingsRequest & AddFilter(Aws::String &&key, const Criterion &value)
ListFindingsRequest & AddFilter(const char *key, const Criterion &value)
ListFindingsRequest & WithSort(const SortCriteria &value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Criterion > & GetFilter() const
ListFindingsRequest & WithNextToken(const char *value)
ListFindingsRequest & WithFilter(const Aws::Map< Aws::String, Criterion > &value)
ListFindingsRequest & AddFilter(const char *key, Criterion &&value)
ListFindingsRequest & WithNextToken(Aws::String &&value)
ListFindingsRequest & WithSort(SortCriteria &&value)
ListFindingsRequest & AddFilter(const Aws::String &key, const Criterion &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String