AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetFindingV2Result.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/accessanalyzer/model/ResourceType.h>
11#include <aws/accessanalyzer/model/FindingStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/accessanalyzer/model/FindingType.h>
14#include <aws/accessanalyzer/model/FindingDetails.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace AccessAnalyzer
30{
31namespace Model
32{
34 {
35 public:
36 AWS_ACCESSANALYZER_API GetFindingV2Result() = default;
39
40
42
46 inline const Aws::Utils::DateTime& GetAnalyzedAt() const { return m_analyzedAt; }
47 template<typename AnalyzedAtT = Aws::Utils::DateTime>
48 void SetAnalyzedAt(AnalyzedAtT&& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = std::forward<AnalyzedAtT>(value); }
49 template<typename AnalyzedAtT = Aws::Utils::DateTime>
50 GetFindingV2Result& WithAnalyzedAt(AnalyzedAtT&& value) { SetAnalyzedAt(std::forward<AnalyzedAtT>(value)); return *this;}
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) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
60 template<typename CreatedAtT = Aws::Utils::DateTime>
61 GetFindingV2Result& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
63
65
68 inline const Aws::String& GetError() const { return m_error; }
69 template<typename ErrorT = Aws::String>
70 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
71 template<typename ErrorT = Aws::String>
72 GetFindingV2Result& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
74
76
79 inline const Aws::String& GetId() const { return m_id; }
80 template<typename IdT = Aws::String>
81 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
82 template<typename IdT = Aws::String>
83 GetFindingV2Result& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
85
87
90 inline const Aws::String& GetNextToken() const { return m_nextToken; }
91 template<typename NextTokenT = Aws::String>
92 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
93 template<typename NextTokenT = Aws::String>
94 GetFindingV2Result& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
96
98
101 inline const Aws::String& GetResource() const { return m_resource; }
102 template<typename ResourceT = Aws::String>
103 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
104 template<typename ResourceT = Aws::String>
105 GetFindingV2Result& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
107
109
112 inline ResourceType GetResourceType() const { return m_resourceType; }
113 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
114 inline GetFindingV2Result& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
116
118
121 inline const Aws::String& GetResourceOwnerAccount() const { return m_resourceOwnerAccount; }
122 template<typename ResourceOwnerAccountT = Aws::String>
123 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value); }
124 template<typename ResourceOwnerAccountT = Aws::String>
125 GetFindingV2Result& WithResourceOwnerAccount(ResourceOwnerAccountT&& value) { SetResourceOwnerAccount(std::forward<ResourceOwnerAccountT>(value)); return *this;}
127
129
132 inline FindingStatus GetStatus() const { return m_status; }
133 inline void SetStatus(FindingStatus value) { m_statusHasBeenSet = true; m_status = value; }
134 inline GetFindingV2Result& WithStatus(FindingStatus value) { SetStatus(value); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
142 template<typename UpdatedAtT = Aws::Utils::DateTime>
143 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
144 template<typename UpdatedAtT = Aws::Utils::DateTime>
145 GetFindingV2Result& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
147
149
153 inline const Aws::Vector<FindingDetails>& GetFindingDetails() const { return m_findingDetails; }
154 template<typename FindingDetailsT = Aws::Vector<FindingDetails>>
155 void SetFindingDetails(FindingDetailsT&& value) { m_findingDetailsHasBeenSet = true; m_findingDetails = std::forward<FindingDetailsT>(value); }
156 template<typename FindingDetailsT = Aws::Vector<FindingDetails>>
157 GetFindingV2Result& WithFindingDetails(FindingDetailsT&& value) { SetFindingDetails(std::forward<FindingDetailsT>(value)); return *this;}
158 template<typename FindingDetailsT = FindingDetails>
159 GetFindingV2Result& AddFindingDetails(FindingDetailsT&& value) { m_findingDetailsHasBeenSet = true; m_findingDetails.emplace_back(std::forward<FindingDetailsT>(value)); return *this; }
161
163
170 inline FindingType GetFindingType() const { return m_findingType; }
171 inline void SetFindingType(FindingType value) { m_findingTypeHasBeenSet = true; m_findingType = value; }
172 inline GetFindingV2Result& WithFindingType(FindingType value) { SetFindingType(value); return *this;}
174
176
177 inline const Aws::String& GetRequestId() const { return m_requestId; }
178 template<typename RequestIdT = Aws::String>
179 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
180 template<typename RequestIdT = Aws::String>
181 GetFindingV2Result& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
183 private:
184
185 Aws::Utils::DateTime m_analyzedAt{};
186 bool m_analyzedAtHasBeenSet = false;
187
188 Aws::Utils::DateTime m_createdAt{};
189 bool m_createdAtHasBeenSet = false;
190
191 Aws::String m_error;
192 bool m_errorHasBeenSet = false;
193
194 Aws::String m_id;
195 bool m_idHasBeenSet = false;
196
197 Aws::String m_nextToken;
198 bool m_nextTokenHasBeenSet = false;
199
200 Aws::String m_resource;
201 bool m_resourceHasBeenSet = false;
202
203 ResourceType m_resourceType{ResourceType::NOT_SET};
204 bool m_resourceTypeHasBeenSet = false;
205
206 Aws::String m_resourceOwnerAccount;
207 bool m_resourceOwnerAccountHasBeenSet = false;
208
210 bool m_statusHasBeenSet = false;
211
212 Aws::Utils::DateTime m_updatedAt{};
213 bool m_updatedAtHasBeenSet = false;
214
215 Aws::Vector<FindingDetails> m_findingDetails;
216 bool m_findingDetailsHasBeenSet = false;
217
218 FindingType m_findingType{FindingType::NOT_SET};
219 bool m_findingTypeHasBeenSet = false;
220
221 Aws::String m_requestId;
222 bool m_requestIdHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace AccessAnalyzer
227} // 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