AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListFindingsV2Request.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
25 {
26 public:
27 AWS_ACCESSANALYZER_API ListFindingsV2Request();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListFindingsV2"; }
34
35 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
36
37
39
44 inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
45 inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
46 inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
47 inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
48 inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
49 inline ListFindingsV2Request& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
50 inline ListFindingsV2Request& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
51 inline ListFindingsV2Request& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
53
55
58 inline const Aws::Map<Aws::String, Criterion>& GetFilter() const{ return m_filter; }
59 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
60 inline void SetFilter(const Aws::Map<Aws::String, Criterion>& value) { m_filterHasBeenSet = true; m_filter = value; }
61 inline void SetFilter(Aws::Map<Aws::String, Criterion>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
62 inline ListFindingsV2Request& WithFilter(const Aws::Map<Aws::String, Criterion>& value) { SetFilter(value); return *this;}
63 inline ListFindingsV2Request& WithFilter(Aws::Map<Aws::String, Criterion>&& value) { SetFilter(std::move(value)); return *this;}
64 inline ListFindingsV2Request& AddFilter(const Aws::String& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
65 inline ListFindingsV2Request& AddFilter(Aws::String&& key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
66 inline ListFindingsV2Request& AddFilter(const Aws::String& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
67 inline ListFindingsV2Request& AddFilter(Aws::String&& key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
68 inline ListFindingsV2Request& AddFilter(const char* key, Criterion&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
69 inline ListFindingsV2Request& AddFilter(const char* key, const Criterion& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
71
73
76 inline int GetMaxResults() const{ return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
79 inline ListFindingsV2Request& WithMaxResults(int value) { SetMaxResults(value); return *this;}
81
83
86 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
89 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
90 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
91 inline ListFindingsV2Request& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
92 inline ListFindingsV2Request& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
93 inline ListFindingsV2Request& WithNextToken(const char* value) { SetNextToken(value); return *this;}
95
97
98 inline const SortCriteria& GetSort() const{ return m_sort; }
99 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
100 inline void SetSort(const SortCriteria& value) { m_sortHasBeenSet = true; m_sort = value; }
101 inline void SetSort(SortCriteria&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
102 inline ListFindingsV2Request& WithSort(const SortCriteria& value) { SetSort(value); return *this;}
103 inline ListFindingsV2Request& WithSort(SortCriteria&& value) { SetSort(std::move(value)); return *this;}
105 private:
106
107 Aws::String m_analyzerArn;
108 bool m_analyzerArnHasBeenSet = false;
109
111 bool m_filterHasBeenSet = false;
112
113 int m_maxResults;
114 bool m_maxResultsHasBeenSet = false;
115
116 Aws::String m_nextToken;
117 bool m_nextTokenHasBeenSet = false;
118
119 SortCriteria m_sort;
120 bool m_sortHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace AccessAnalyzer
125} // namespace Aws
void SetFilter(Aws::Map< Aws::String, Criterion > &&value)
virtual const char * GetServiceRequestName() const override
ListFindingsV2Request & WithFilter(Aws::Map< Aws::String, Criterion > &&value)
ListFindingsV2Request & WithFilter(const Aws::Map< Aws::String, Criterion > &value)
ListFindingsV2Request & WithAnalyzerArn(Aws::String &&value)
ListFindingsV2Request & AddFilter(const Aws::String &key, const Criterion &value)
ListFindingsV2Request & WithNextToken(const Aws::String &value)
ListFindingsV2Request & AddFilter(const char *key, Criterion &&value)
ListFindingsV2Request & AddFilter(const char *key, const Criterion &value)
ListFindingsV2Request & WithNextToken(Aws::String &&value)
ListFindingsV2Request & WithAnalyzerArn(const char *value)
ListFindingsV2Request & AddFilter(const Aws::String &key, Criterion &&value)
void SetFilter(const Aws::Map< Aws::String, Criterion > &value)
ListFindingsV2Request & WithSort(SortCriteria &&value)
const Aws::Map< Aws::String, Criterion > & GetFilter() const
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
ListFindingsV2Request & AddFilter(Aws::String &&key, Criterion &&value)
ListFindingsV2Request & AddFilter(Aws::String &&key, const Criterion &value)
ListFindingsV2Request & WithSort(const SortCriteria &value)
ListFindingsV2Request & WithAnalyzerArn(const Aws::String &value)
ListFindingsV2Request & WithNextToken(const char *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