AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename AnalyzerArnT = Aws::String>
51 void SetAnalyzerArn(AnalyzerArnT&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::forward<AnalyzerArnT>(value); }
52 template<typename AnalyzerArnT = Aws::String>
53 ListFindingsRequest& WithAnalyzerArn(AnalyzerArnT&& value) { SetAnalyzerArn(std::forward<AnalyzerArnT>(value)); return *this;}
55
57
60 inline const Aws::Map<Aws::String, Criterion>& GetFilter() const { return m_filter; }
61 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
62 template<typename FilterT = Aws::Map<Aws::String, Criterion>>
63 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
64 template<typename FilterT = Aws::Map<Aws::String, Criterion>>
65 ListFindingsRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
66 template<typename FilterKeyT = Aws::String, typename FilterValueT = Criterion>
67 ListFindingsRequest& AddFilter(FilterKeyT&& key, FilterValueT&& value) {
68 m_filterHasBeenSet = true; m_filter.emplace(std::forward<FilterKeyT>(key), std::forward<FilterValueT>(value)); return *this;
69 }
71
73
76 inline const SortCriteria& GetSort() const { return m_sort; }
77 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
78 template<typename SortT = SortCriteria>
79 void SetSort(SortT&& value) { m_sortHasBeenSet = true; m_sort = std::forward<SortT>(value); }
80 template<typename SortT = SortCriteria>
81 ListFindingsRequest& WithSort(SortT&& value) { SetSort(std::forward<SortT>(value)); return *this;}
83
85
88 inline const Aws::String& GetNextToken() const { return m_nextToken; }
89 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
90 template<typename NextTokenT = Aws::String>
91 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
92 template<typename NextTokenT = Aws::String>
93 ListFindingsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
95
97
100 inline int GetMaxResults() const { return m_maxResults; }
101 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
102 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
103 inline ListFindingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
105 private:
106
107 Aws::String m_analyzerArn;
108 bool m_analyzerArnHasBeenSet = false;
109
111 bool m_filterHasBeenSet = false;
112
113 SortCriteria m_sort;
114 bool m_sortHasBeenSet = false;
115
116 Aws::String m_nextToken;
117 bool m_nextTokenHasBeenSet = false;
118
119 int m_maxResults{0};
120 bool m_maxResultsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace AccessAnalyzer
125} // namespace Aws
ListFindingsRequest & WithAnalyzerArn(AnalyzerArnT &&value)
ListFindingsRequest & WithNextToken(NextTokenT &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
ListFindingsRequest & AddFilter(FilterKeyT &&key, FilterValueT &&value)
ListFindingsRequest & WithSort(SortT &&value)
AWS_ACCESSANALYZER_API ListFindingsRequest()=default
virtual const char * GetServiceRequestName() const override
ListFindingsRequest & WithFilter(FilterT &&value)
const Aws::Map< Aws::String, Criterion > & GetFilter() const
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