AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace AccessAnalyzer {
28namespace Model {
30 public:
31 AWS_ACCESSANALYZER_API GetFindingV2Result() = default;
34
36
40 inline const Aws::Utils::DateTime& GetAnalyzedAt() const { return m_analyzedAt; }
41 template <typename AnalyzedAtT = Aws::Utils::DateTime>
42 void SetAnalyzedAt(AnalyzedAtT&& value) {
43 m_analyzedAtHasBeenSet = true;
44 m_analyzedAt = std::forward<AnalyzedAtT>(value);
45 }
46 template <typename AnalyzedAtT = Aws::Utils::DateTime>
47 GetFindingV2Result& WithAnalyzedAt(AnalyzedAtT&& value) {
48 SetAnalyzedAt(std::forward<AnalyzedAtT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
58 template <typename CreatedAtT = Aws::Utils::DateTime>
59 void SetCreatedAt(CreatedAtT&& value) {
60 m_createdAtHasBeenSet = true;
61 m_createdAt = std::forward<CreatedAtT>(value);
62 }
63 template <typename CreatedAtT = Aws::Utils::DateTime>
64 GetFindingV2Result& WithCreatedAt(CreatedAtT&& value) {
65 SetCreatedAt(std::forward<CreatedAtT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetError() const { return m_error; }
75 template <typename ErrorT = Aws::String>
76 void SetError(ErrorT&& value) {
77 m_errorHasBeenSet = true;
78 m_error = std::forward<ErrorT>(value);
79 }
80 template <typename ErrorT = Aws::String>
81 GetFindingV2Result& WithError(ErrorT&& value) {
82 SetError(std::forward<ErrorT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetId() const { return m_id; }
92 template <typename IdT = Aws::String>
93 void SetId(IdT&& value) {
94 m_idHasBeenSet = true;
95 m_id = std::forward<IdT>(value);
96 }
97 template <typename IdT = Aws::String>
98 GetFindingV2Result& WithId(IdT&& value) {
99 SetId(std::forward<IdT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetNextToken() const { return m_nextToken; }
109 template <typename NextTokenT = Aws::String>
110 void SetNextToken(NextTokenT&& value) {
111 m_nextTokenHasBeenSet = true;
112 m_nextToken = std::forward<NextTokenT>(value);
113 }
114 template <typename NextTokenT = Aws::String>
115 GetFindingV2Result& WithNextToken(NextTokenT&& value) {
116 SetNextToken(std::forward<NextTokenT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetResource() const { return m_resource; }
126 template <typename ResourceT = Aws::String>
127 void SetResource(ResourceT&& value) {
128 m_resourceHasBeenSet = true;
129 m_resource = std::forward<ResourceT>(value);
130 }
131 template <typename ResourceT = Aws::String>
132 GetFindingV2Result& WithResource(ResourceT&& value) {
133 SetResource(std::forward<ResourceT>(value));
134 return *this;
135 }
137
139
142 inline ResourceType GetResourceType() const { return m_resourceType; }
143 inline void SetResourceType(ResourceType value) {
144 m_resourceTypeHasBeenSet = true;
145 m_resourceType = value;
146 }
148 SetResourceType(value);
149 return *this;
150 }
152
154
157 inline const Aws::String& GetResourceOwnerAccount() const { return m_resourceOwnerAccount; }
158 template <typename ResourceOwnerAccountT = Aws::String>
159 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) {
160 m_resourceOwnerAccountHasBeenSet = true;
161 m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value);
162 }
163 template <typename ResourceOwnerAccountT = Aws::String>
164 GetFindingV2Result& WithResourceOwnerAccount(ResourceOwnerAccountT&& value) {
165 SetResourceOwnerAccount(std::forward<ResourceOwnerAccountT>(value));
166 return *this;
167 }
169
171
174 inline FindingStatus GetStatus() const { return m_status; }
175 inline void SetStatus(FindingStatus value) {
176 m_statusHasBeenSet = true;
177 m_status = value;
178 }
180 SetStatus(value);
181 return *this;
182 }
184
186
189 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
190 template <typename UpdatedAtT = Aws::Utils::DateTime>
191 void SetUpdatedAt(UpdatedAtT&& value) {
192 m_updatedAtHasBeenSet = true;
193 m_updatedAt = std::forward<UpdatedAtT>(value);
194 }
195 template <typename UpdatedAtT = Aws::Utils::DateTime>
196 GetFindingV2Result& WithUpdatedAt(UpdatedAtT&& value) {
197 SetUpdatedAt(std::forward<UpdatedAtT>(value));
198 return *this;
199 }
201
203
207 inline const Aws::Vector<FindingDetails>& GetFindingDetails() const { return m_findingDetails; }
208 template <typename FindingDetailsT = Aws::Vector<FindingDetails>>
209 void SetFindingDetails(FindingDetailsT&& value) {
210 m_findingDetailsHasBeenSet = true;
211 m_findingDetails = std::forward<FindingDetailsT>(value);
212 }
213 template <typename FindingDetailsT = Aws::Vector<FindingDetails>>
214 GetFindingV2Result& WithFindingDetails(FindingDetailsT&& value) {
215 SetFindingDetails(std::forward<FindingDetailsT>(value));
216 return *this;
217 }
218 template <typename FindingDetailsT = FindingDetails>
219 GetFindingV2Result& AddFindingDetails(FindingDetailsT&& value) {
220 m_findingDetailsHasBeenSet = true;
221 m_findingDetails.emplace_back(std::forward<FindingDetailsT>(value));
222 return *this;
223 }
225
227
234 inline FindingType GetFindingType() const { return m_findingType; }
235 inline void SetFindingType(FindingType value) {
236 m_findingTypeHasBeenSet = true;
237 m_findingType = value;
238 }
240 SetFindingType(value);
241 return *this;
242 }
244
246
247 inline const Aws::String& GetRequestId() const { return m_requestId; }
248 template <typename RequestIdT = Aws::String>
249 void SetRequestId(RequestIdT&& value) {
250 m_requestIdHasBeenSet = true;
251 m_requestId = std::forward<RequestIdT>(value);
252 }
253 template <typename RequestIdT = Aws::String>
254 GetFindingV2Result& WithRequestId(RequestIdT&& value) {
255 SetRequestId(std::forward<RequestIdT>(value));
256 return *this;
257 }
259 private:
260 Aws::Utils::DateTime m_analyzedAt{};
261
262 Aws::Utils::DateTime m_createdAt{};
263
264 Aws::String m_error;
265
266 Aws::String m_id;
267
268 Aws::String m_nextToken;
269
270 Aws::String m_resource;
271
272 ResourceType m_resourceType{ResourceType::NOT_SET};
273
274 Aws::String m_resourceOwnerAccount;
275
277
278 Aws::Utils::DateTime m_updatedAt{};
279
280 Aws::Vector<FindingDetails> m_findingDetails;
281
282 FindingType m_findingType{FindingType::NOT_SET};
283
284 Aws::String m_requestId;
285 bool m_analyzedAtHasBeenSet = false;
286 bool m_createdAtHasBeenSet = false;
287 bool m_errorHasBeenSet = false;
288 bool m_idHasBeenSet = false;
289 bool m_nextTokenHasBeenSet = false;
290 bool m_resourceHasBeenSet = false;
291 bool m_resourceTypeHasBeenSet = false;
292 bool m_resourceOwnerAccountHasBeenSet = false;
293 bool m_statusHasBeenSet = false;
294 bool m_updatedAtHasBeenSet = false;
295 bool m_findingDetailsHasBeenSet = false;
296 bool m_findingTypeHasBeenSet = false;
297 bool m_requestIdHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace AccessAnalyzer
302} // 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)
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