AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AnalyzedResource.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/FindingStatus.h>
9#include <aws/accessanalyzer/model/ResourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AccessAnalyzer {
24namespace Model {
25
32 public:
33 AWS_ACCESSANALYZER_API AnalyzedResource() = default;
34 AWS_ACCESSANALYZER_API AnalyzedResource(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ACCESSANALYZER_API AnalyzedResource& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
43 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
44 template <typename ResourceArnT = Aws::String>
45 void SetResourceArn(ResourceArnT&& value) {
46 m_resourceArnHasBeenSet = true;
47 m_resourceArn = std::forward<ResourceArnT>(value);
48 }
49 template <typename ResourceArnT = Aws::String>
50 AnalyzedResource& WithResourceArn(ResourceArnT&& value) {
51 SetResourceArn(std::forward<ResourceArnT>(value));
52 return *this;
53 }
55
57
60 inline ResourceType GetResourceType() const { return m_resourceType; }
61 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 inline void SetResourceType(ResourceType value) {
63 m_resourceTypeHasBeenSet = true;
64 m_resourceType = value;
65 }
67 SetResourceType(value);
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
77 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
78 template <typename CreatedAtT = Aws::Utils::DateTime>
79 void SetCreatedAt(CreatedAtT&& value) {
80 m_createdAtHasBeenSet = true;
81 m_createdAt = std::forward<CreatedAtT>(value);
82 }
83 template <typename CreatedAtT = Aws::Utils::DateTime>
84 AnalyzedResource& WithCreatedAt(CreatedAtT&& value) {
85 SetCreatedAt(std::forward<CreatedAtT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetAnalyzedAt() const { return m_analyzedAt; }
95 inline bool AnalyzedAtHasBeenSet() const { return m_analyzedAtHasBeenSet; }
96 template <typename AnalyzedAtT = Aws::Utils::DateTime>
97 void SetAnalyzedAt(AnalyzedAtT&& value) {
98 m_analyzedAtHasBeenSet = true;
99 m_analyzedAt = std::forward<AnalyzedAtT>(value);
100 }
101 template <typename AnalyzedAtT = Aws::Utils::DateTime>
102 AnalyzedResource& WithAnalyzedAt(AnalyzedAtT&& value) {
103 SetAnalyzedAt(std::forward<AnalyzedAtT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
113 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
114 template <typename UpdatedAtT = Aws::Utils::DateTime>
115 void SetUpdatedAt(UpdatedAtT&& value) {
116 m_updatedAtHasBeenSet = true;
117 m_updatedAt = std::forward<UpdatedAtT>(value);
118 }
119 template <typename UpdatedAtT = Aws::Utils::DateTime>
120 AnalyzedResource& WithUpdatedAt(UpdatedAtT&& value) {
121 SetUpdatedAt(std::forward<UpdatedAtT>(value));
122 return *this;
123 }
125
127
131 inline bool GetIsPublic() const { return m_isPublic; }
132 inline bool IsPublicHasBeenSet() const { return m_isPublicHasBeenSet; }
133 inline void SetIsPublic(bool value) {
134 m_isPublicHasBeenSet = true;
135 m_isPublic = value;
136 }
137 inline AnalyzedResource& WithIsPublic(bool value) {
138 SetIsPublic(value);
139 return *this;
140 }
142
144
148 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
149 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
150 template <typename ActionsT = Aws::Vector<Aws::String>>
151 void SetActions(ActionsT&& value) {
152 m_actionsHasBeenSet = true;
153 m_actions = std::forward<ActionsT>(value);
154 }
155 template <typename ActionsT = Aws::Vector<Aws::String>>
156 AnalyzedResource& WithActions(ActionsT&& value) {
157 SetActions(std::forward<ActionsT>(value));
158 return *this;
159 }
160 template <typename ActionsT = Aws::String>
161 AnalyzedResource& AddActions(ActionsT&& value) {
162 m_actionsHasBeenSet = true;
163 m_actions.emplace_back(std::forward<ActionsT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::Vector<Aws::String>& GetSharedVia() const { return m_sharedVia; }
174 inline bool SharedViaHasBeenSet() const { return m_sharedViaHasBeenSet; }
175 template <typename SharedViaT = Aws::Vector<Aws::String>>
176 void SetSharedVia(SharedViaT&& value) {
177 m_sharedViaHasBeenSet = true;
178 m_sharedVia = std::forward<SharedViaT>(value);
179 }
180 template <typename SharedViaT = Aws::Vector<Aws::String>>
181 AnalyzedResource& WithSharedVia(SharedViaT&& value) {
182 SetSharedVia(std::forward<SharedViaT>(value));
183 return *this;
184 }
185 template <typename SharedViaT = Aws::String>
186 AnalyzedResource& AddSharedVia(SharedViaT&& value) {
187 m_sharedViaHasBeenSet = true;
188 m_sharedVia.emplace_back(std::forward<SharedViaT>(value));
189 return *this;
190 }
192
194
197 inline FindingStatus GetStatus() const { return m_status; }
198 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
199 inline void SetStatus(FindingStatus value) {
200 m_statusHasBeenSet = true;
201 m_status = value;
202 }
204 SetStatus(value);
205 return *this;
206 }
208
210
213 inline const Aws::String& GetResourceOwnerAccount() const { return m_resourceOwnerAccount; }
214 inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; }
215 template <typename ResourceOwnerAccountT = Aws::String>
216 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) {
217 m_resourceOwnerAccountHasBeenSet = true;
218 m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value);
219 }
220 template <typename ResourceOwnerAccountT = Aws::String>
221 AnalyzedResource& WithResourceOwnerAccount(ResourceOwnerAccountT&& value) {
222 SetResourceOwnerAccount(std::forward<ResourceOwnerAccountT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::String& GetError() const { return m_error; }
232 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
233 template <typename ErrorT = Aws::String>
234 void SetError(ErrorT&& value) {
235 m_errorHasBeenSet = true;
236 m_error = std::forward<ErrorT>(value);
237 }
238 template <typename ErrorT = Aws::String>
239 AnalyzedResource& WithError(ErrorT&& value) {
240 SetError(std::forward<ErrorT>(value));
241 return *this;
242 }
244 private:
245 Aws::String m_resourceArn;
246
247 ResourceType m_resourceType{ResourceType::NOT_SET};
248
249 Aws::Utils::DateTime m_createdAt{};
250
251 Aws::Utils::DateTime m_analyzedAt{};
252
253 Aws::Utils::DateTime m_updatedAt{};
254
255 bool m_isPublic{false};
256
257 Aws::Vector<Aws::String> m_actions;
258
259 Aws::Vector<Aws::String> m_sharedVia;
260
262
263 Aws::String m_resourceOwnerAccount;
264
265 Aws::String m_error;
266 bool m_resourceArnHasBeenSet = false;
267 bool m_resourceTypeHasBeenSet = false;
268 bool m_createdAtHasBeenSet = false;
269 bool m_analyzedAtHasBeenSet = false;
270 bool m_updatedAtHasBeenSet = false;
271 bool m_isPublicHasBeenSet = false;
272 bool m_actionsHasBeenSet = false;
273 bool m_sharedViaHasBeenSet = false;
274 bool m_statusHasBeenSet = false;
275 bool m_resourceOwnerAccountHasBeenSet = false;
276 bool m_errorHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace AccessAnalyzer
281} // namespace Aws
AnalyzedResource & WithStatus(FindingStatus value)
AWS_ACCESSANALYZER_API AnalyzedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceOwnerAccount() const
AnalyzedResource & WithSharedVia(SharedViaT &&value)
AnalyzedResource & WithResourceArn(ResourceArnT &&value)
AnalyzedResource & WithResourceOwnerAccount(ResourceOwnerAccountT &&value)
const Aws::Vector< Aws::String > & GetActions() const
const Aws::Utils::DateTime & GetCreatedAt() const
AnalyzedResource & WithResourceType(ResourceType value)
AnalyzedResource & AddSharedVia(SharedViaT &&value)
AWS_ACCESSANALYZER_API AnalyzedResource(Aws::Utils::Json::JsonView jsonValue)
AnalyzedResource & WithActions(ActionsT &&value)
AWS_ACCESSANALYZER_API AnalyzedResource()=default
AnalyzedResource & WithAnalyzedAt(AnalyzedAtT &&value)
void SetResourceOwnerAccount(ResourceOwnerAccountT &&value)
const Aws::Utils::DateTime & GetAnalyzedAt() const
const Aws::Vector< Aws::String > & GetSharedVia() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AnalyzedResource & WithCreatedAt(CreatedAtT &&value)
AnalyzedResource & AddActions(ActionsT &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AnalyzedResource & WithIsPublic(bool value)
AnalyzedResource & WithUpdatedAt(UpdatedAtT &&value)
AnalyzedResource & WithError(ErrorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue