AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
GetFindingV2Result.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/FindingDetails.h>
9#include <aws/accessanalyzer/model/FindingStatus.h>
10#include <aws/accessanalyzer/model/FindingType.h>
11#include <aws/accessanalyzer/model/ResourceType.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace AccessAnalyzer {
29namespace Model {
31 public:
32 AWS_ACCESSANALYZER_API GetFindingV2Result() = default;
35
37
41 inline const Aws::Utils::DateTime& GetAnalyzedAt() const { return m_analyzedAt; }
42 template <typename AnalyzedAtT = Aws::Utils::DateTime>
43 void SetAnalyzedAt(AnalyzedAtT&& value) {
44 m_analyzedAtHasBeenSet = true;
45 m_analyzedAt = std::forward<AnalyzedAtT>(value);
46 }
47 template <typename AnalyzedAtT = Aws::Utils::DateTime>
48 GetFindingV2Result& WithAnalyzedAt(AnalyzedAtT&& value) {
49 SetAnalyzedAt(std::forward<AnalyzedAtT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
59 template <typename CreatedAtT = Aws::Utils::DateTime>
60 void SetCreatedAt(CreatedAtT&& value) {
61 m_createdAtHasBeenSet = true;
62 m_createdAt = std::forward<CreatedAtT>(value);
63 }
64 template <typename CreatedAtT = Aws::Utils::DateTime>
65 GetFindingV2Result& WithCreatedAt(CreatedAtT&& value) {
66 SetCreatedAt(std::forward<CreatedAtT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetError() const { return m_error; }
76 template <typename ErrorT = Aws::String>
77 void SetError(ErrorT&& value) {
78 m_errorHasBeenSet = true;
79 m_error = std::forward<ErrorT>(value);
80 }
81 template <typename ErrorT = Aws::String>
82 GetFindingV2Result& WithError(ErrorT&& value) {
83 SetError(std::forward<ErrorT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetId() const { return m_id; }
93 template <typename IdT = Aws::String>
94 void SetId(IdT&& value) {
95 m_idHasBeenSet = true;
96 m_id = std::forward<IdT>(value);
97 }
98 template <typename IdT = Aws::String>
99 GetFindingV2Result& WithId(IdT&& value) {
100 SetId(std::forward<IdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetNextToken() const { return m_nextToken; }
110 template <typename NextTokenT = Aws::String>
111 void SetNextToken(NextTokenT&& value) {
112 m_nextTokenHasBeenSet = true;
113 m_nextToken = std::forward<NextTokenT>(value);
114 }
115 template <typename NextTokenT = Aws::String>
116 GetFindingV2Result& WithNextToken(NextTokenT&& value) {
117 SetNextToken(std::forward<NextTokenT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetResource() const { return m_resource; }
127 template <typename ResourceT = Aws::String>
128 void SetResource(ResourceT&& value) {
129 m_resourceHasBeenSet = true;
130 m_resource = std::forward<ResourceT>(value);
131 }
132 template <typename ResourceT = Aws::String>
133 GetFindingV2Result& WithResource(ResourceT&& value) {
134 SetResource(std::forward<ResourceT>(value));
135 return *this;
136 }
138
140
143 inline ResourceType GetResourceType() const { return m_resourceType; }
144 inline void SetResourceType(ResourceType value) {
145 m_resourceTypeHasBeenSet = true;
146 m_resourceType = value;
147 }
149 SetResourceType(value);
150 return *this;
151 }
153
155
158 inline const Aws::String& GetResourceOwnerAccount() const { return m_resourceOwnerAccount; }
159 template <typename ResourceOwnerAccountT = Aws::String>
160 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) {
161 m_resourceOwnerAccountHasBeenSet = true;
162 m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value);
163 }
164 template <typename ResourceOwnerAccountT = Aws::String>
165 GetFindingV2Result& WithResourceOwnerAccount(ResourceOwnerAccountT&& value) {
166 SetResourceOwnerAccount(std::forward<ResourceOwnerAccountT>(value));
167 return *this;
168 }
170
172
175 inline FindingStatus GetStatus() const { return m_status; }
176 inline void SetStatus(FindingStatus value) {
177 m_statusHasBeenSet = true;
178 m_status = value;
179 }
181 SetStatus(value);
182 return *this;
183 }
185
187
190 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
191 template <typename UpdatedAtT = Aws::Utils::DateTime>
192 void SetUpdatedAt(UpdatedAtT&& value) {
193 m_updatedAtHasBeenSet = true;
194 m_updatedAt = std::forward<UpdatedAtT>(value);
195 }
196 template <typename UpdatedAtT = Aws::Utils::DateTime>
197 GetFindingV2Result& WithUpdatedAt(UpdatedAtT&& value) {
198 SetUpdatedAt(std::forward<UpdatedAtT>(value));
199 return *this;
200 }
202
204
208 inline const Aws::Vector<FindingDetails>& GetFindingDetails() const { return m_findingDetails; }
209 template <typename FindingDetailsT = Aws::Vector<FindingDetails>>
210 void SetFindingDetails(FindingDetailsT&& value) {
211 m_findingDetailsHasBeenSet = true;
212 m_findingDetails = std::forward<FindingDetailsT>(value);
213 }
214 template <typename FindingDetailsT = Aws::Vector<FindingDetails>>
215 GetFindingV2Result& WithFindingDetails(FindingDetailsT&& value) {
216 SetFindingDetails(std::forward<FindingDetailsT>(value));
217 return *this;
218 }
219 template <typename FindingDetailsT = FindingDetails>
220 GetFindingV2Result& AddFindingDetails(FindingDetailsT&& value) {
221 m_findingDetailsHasBeenSet = true;
222 m_findingDetails.emplace_back(std::forward<FindingDetailsT>(value));
223 return *this;
224 }
226
228
235 inline FindingType GetFindingType() const { return m_findingType; }
236 inline void SetFindingType(FindingType value) {
237 m_findingTypeHasBeenSet = true;
238 m_findingType = value;
239 }
241 SetFindingType(value);
242 return *this;
243 }
245
247
248 inline const Aws::String& GetRequestId() const { return m_requestId; }
249 template <typename RequestIdT = Aws::String>
250 void SetRequestId(RequestIdT&& value) {
251 m_requestIdHasBeenSet = true;
252 m_requestId = std::forward<RequestIdT>(value);
253 }
254 template <typename RequestIdT = Aws::String>
255 GetFindingV2Result& WithRequestId(RequestIdT&& value) {
256 SetRequestId(std::forward<RequestIdT>(value));
257 return *this;
258 }
260 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
261
262 private:
263 Aws::Utils::DateTime m_analyzedAt{};
264
265 Aws::Utils::DateTime m_createdAt{};
266
267 Aws::String m_error;
268
269 Aws::String m_id;
270
271 Aws::String m_nextToken;
272
273 Aws::String m_resource;
274
275 ResourceType m_resourceType{ResourceType::NOT_SET};
276
277 Aws::String m_resourceOwnerAccount;
278
280
281 Aws::Utils::DateTime m_updatedAt{};
282
283 Aws::Vector<FindingDetails> m_findingDetails;
284
285 FindingType m_findingType{FindingType::NOT_SET};
286
287 Aws::String m_requestId;
288 Aws::Http::HttpResponseCode m_HttpResponseCode;
289 bool m_analyzedAtHasBeenSet = false;
290 bool m_createdAtHasBeenSet = false;
291 bool m_errorHasBeenSet = false;
292 bool m_idHasBeenSet = false;
293 bool m_nextTokenHasBeenSet = false;
294 bool m_resourceHasBeenSet = false;
295 bool m_resourceTypeHasBeenSet = false;
296 bool m_resourceOwnerAccountHasBeenSet = false;
297 bool m_statusHasBeenSet = false;
298 bool m_updatedAtHasBeenSet = false;
299 bool m_findingDetailsHasBeenSet = false;
300 bool m_findingTypeHasBeenSet = false;
301 bool m_requestIdHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace AccessAnalyzer
306} // namespace Aws
GetFindingV2Result & WithFindingType(FindingType value)
GetFindingV2Result & WithCreatedAt(CreatedAtT &&value)
GetFindingV2Result & WithFindingDetails(FindingDetailsT &&value)
GetFindingV2Result & AddFindingDetails(FindingDetailsT &&value)
GetFindingV2Result & WithStatus(FindingStatus value)
AWS_ACCESSANALYZER_API GetFindingV2Result(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResourceOwnerAccount(ResourceOwnerAccountT &&value)
GetFindingV2Result & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetAnalyzedAt() const
GetFindingV2Result & WithResource(ResourceT &&value)
GetFindingV2Result & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
GetFindingV2Result & WithResourceOwnerAccount(ResourceOwnerAccountT &&value)
GetFindingV2Result & WithNextToken(NextTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetFindingV2Result & WithResourceType(ResourceType value)
GetFindingV2Result & WithError(ErrorT &&value)
AWS_ACCESSANALYZER_API GetFindingV2Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ACCESSANALYZER_API GetFindingV2Result()=default
GetFindingV2Result & WithAnalyzedAt(AnalyzedAtT &&value)
const Aws::Vector< FindingDetails > & GetFindingDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue