AWS SDK for C++

AWS SDK for C++ Version 1.11.800

Loading...
Searching...
No Matches
GetFindingsV2Request.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHubRequest.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/FindingScopes.h>
12#include <aws/securityhub/model/OcsfFindingFilters.h>
13#include <aws/securityhub/model/SortCriterion.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SecurityHub {
19namespace Model {
20
24 public:
25 AWS_SECURITYHUB_API GetFindingsV2Request() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetFindingsV2"; }
32
33 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
34
36
41 inline const OcsfFindingFilters& GetFilters() const { return m_filters; }
42 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
43 template <typename FiltersT = OcsfFindingFilters>
44 void SetFilters(FiltersT&& value) {
45 m_filtersHasBeenSet = true;
46 m_filters = std::forward<FiltersT>(value);
47 }
48 template <typename FiltersT = OcsfFindingFilters>
49 GetFindingsV2Request& WithFilters(FiltersT&& value) {
50 SetFilters(std::forward<FiltersT>(value));
51 return *this;
52 }
54
56
66 inline const FindingScopes& GetScopes() const { return m_scopes; }
67 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
68 template <typename ScopesT = FindingScopes>
69 void SetScopes(ScopesT&& value) {
70 m_scopesHasBeenSet = true;
71 m_scopes = std::forward<ScopesT>(value);
72 }
73 template <typename ScopesT = FindingScopes>
74 GetFindingsV2Request& WithScopes(ScopesT&& value) {
75 SetScopes(std::forward<ScopesT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Vector<SortCriterion>& GetSortCriteria() const { return m_sortCriteria; }
85 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
86 template <typename SortCriteriaT = Aws::Vector<SortCriterion>>
87 void SetSortCriteria(SortCriteriaT&& value) {
88 m_sortCriteriaHasBeenSet = true;
89 m_sortCriteria = std::forward<SortCriteriaT>(value);
90 }
91 template <typename SortCriteriaT = Aws::Vector<SortCriterion>>
92 GetFindingsV2Request& WithSortCriteria(SortCriteriaT&& value) {
93 SetSortCriteria(std::forward<SortCriteriaT>(value));
94 return *this;
95 }
96 template <typename SortCriteriaT = SortCriterion>
97 GetFindingsV2Request& AddSortCriteria(SortCriteriaT&& value) {
98 m_sortCriteriaHasBeenSet = true;
99 m_sortCriteria.emplace_back(std::forward<SortCriteriaT>(value));
100 return *this;
101 }
103
105
111 inline const Aws::String& GetNextToken() const { return m_nextToken; }
112 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
113 template <typename NextTokenT = Aws::String>
114 void SetNextToken(NextTokenT&& value) {
115 m_nextTokenHasBeenSet = true;
116 m_nextToken = std::forward<NextTokenT>(value);
117 }
118 template <typename NextTokenT = Aws::String>
119 GetFindingsV2Request& WithNextToken(NextTokenT&& value) {
120 SetNextToken(std::forward<NextTokenT>(value));
121 return *this;
122 }
124
126
129 inline int GetMaxResults() const { return m_maxResults; }
130 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
131 inline void SetMaxResults(int value) {
132 m_maxResultsHasBeenSet = true;
133 m_maxResults = value;
134 }
136 SetMaxResults(value);
137 return *this;
138 }
140 private:
141 OcsfFindingFilters m_filters;
142
143 FindingScopes m_scopes;
144
145 Aws::Vector<SortCriterion> m_sortCriteria;
146
147 Aws::String m_nextToken;
148
149 int m_maxResults{0};
150 bool m_filtersHasBeenSet = false;
151 bool m_scopesHasBeenSet = false;
152 bool m_sortCriteriaHasBeenSet = false;
153 bool m_nextTokenHasBeenSet = false;
154 bool m_maxResultsHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace SecurityHub
159} // namespace Aws
AWS_SECURITYHUB_API GetFindingsV2Request()=default
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< SortCriterion > & GetSortCriteria() const
GetFindingsV2Request & WithSortCriteria(SortCriteriaT &&value)
GetFindingsV2Request & WithScopes(ScopesT &&value)
GetFindingsV2Request & WithMaxResults(int value)
GetFindingsV2Request & WithNextToken(NextTokenT &&value)
GetFindingsV2Request & AddSortCriteria(SortCriteriaT &&value)
const OcsfFindingFilters & GetFilters() const
GetFindingsV2Request & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector