AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessPreviewFinding.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/FindingStatus.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/accessanalyzer/model/ResourceType.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/accessanalyzer/model/FindingChangeType.h>
15#include <aws/accessanalyzer/model/FindingSource.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace AccessAnalyzer
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_ACCESSANALYZER_API AccessPreviewFinding();
43 AWS_ACCESSANALYZER_API AccessPreviewFinding(Aws::Utils::Json::JsonView jsonValue);
44 AWS_ACCESSANALYZER_API AccessPreviewFinding& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
54 inline const Aws::String& GetId() const{ return m_id; }
55 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
58 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
59 inline AccessPreviewFinding& WithId(const Aws::String& value) { SetId(value); return *this;}
60 inline AccessPreviewFinding& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
61 inline AccessPreviewFinding& WithId(const char* value) { SetId(value); return *this;}
63
65
69 inline const Aws::String& GetExistingFindingId() const{ return m_existingFindingId; }
70 inline bool ExistingFindingIdHasBeenSet() const { return m_existingFindingIdHasBeenSet; }
71 inline void SetExistingFindingId(const Aws::String& value) { m_existingFindingIdHasBeenSet = true; m_existingFindingId = value; }
72 inline void SetExistingFindingId(Aws::String&& value) { m_existingFindingIdHasBeenSet = true; m_existingFindingId = std::move(value); }
73 inline void SetExistingFindingId(const char* value) { m_existingFindingIdHasBeenSet = true; m_existingFindingId.assign(value); }
74 inline AccessPreviewFinding& WithExistingFindingId(const Aws::String& value) { SetExistingFindingId(value); return *this;}
75 inline AccessPreviewFinding& WithExistingFindingId(Aws::String&& value) { SetExistingFindingId(std::move(value)); return *this;}
76 inline AccessPreviewFinding& WithExistingFindingId(const char* value) { SetExistingFindingId(value); return *this;}
78
80
83 inline const FindingStatus& GetExistingFindingStatus() const{ return m_existingFindingStatus; }
84 inline bool ExistingFindingStatusHasBeenSet() const { return m_existingFindingStatusHasBeenSet; }
85 inline void SetExistingFindingStatus(const FindingStatus& value) { m_existingFindingStatusHasBeenSet = true; m_existingFindingStatus = value; }
86 inline void SetExistingFindingStatus(FindingStatus&& value) { m_existingFindingStatusHasBeenSet = true; m_existingFindingStatus = std::move(value); }
88 inline AccessPreviewFinding& WithExistingFindingStatus(FindingStatus&& value) { SetExistingFindingStatus(std::move(value)); return *this;}
90
92
96 inline const Aws::Map<Aws::String, Aws::String>& GetPrincipal() const{ return m_principal; }
97 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
98 inline void SetPrincipal(const Aws::Map<Aws::String, Aws::String>& value) { m_principalHasBeenSet = true; m_principal = value; }
99 inline void SetPrincipal(Aws::Map<Aws::String, Aws::String>&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
101 inline AccessPreviewFinding& WithPrincipal(Aws::Map<Aws::String, Aws::String>&& value) { SetPrincipal(std::move(value)); return *this;}
102 inline AccessPreviewFinding& AddPrincipal(const Aws::String& key, const Aws::String& value) { m_principalHasBeenSet = true; m_principal.emplace(key, value); return *this; }
103 inline AccessPreviewFinding& AddPrincipal(Aws::String&& key, const Aws::String& value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), value); return *this; }
104 inline AccessPreviewFinding& AddPrincipal(const Aws::String& key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(key, std::move(value)); return *this; }
105 inline AccessPreviewFinding& AddPrincipal(Aws::String&& key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), std::move(value)); return *this; }
106 inline AccessPreviewFinding& AddPrincipal(const char* key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(key, std::move(value)); return *this; }
107 inline AccessPreviewFinding& AddPrincipal(Aws::String&& key, const char* value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), value); return *this; }
108 inline AccessPreviewFinding& AddPrincipal(const char* key, const char* value) { m_principalHasBeenSet = true; m_principal.emplace(key, value); return *this; }
110
112
116 inline const Aws::Vector<Aws::String>& GetAction() const{ return m_action; }
117 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
118 inline void SetAction(const Aws::Vector<Aws::String>& value) { m_actionHasBeenSet = true; m_action = value; }
119 inline void SetAction(Aws::Vector<Aws::String>&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
120 inline AccessPreviewFinding& WithAction(const Aws::Vector<Aws::String>& value) { SetAction(value); return *this;}
121 inline AccessPreviewFinding& WithAction(Aws::Vector<Aws::String>&& value) { SetAction(std::move(value)); return *this;}
122 inline AccessPreviewFinding& AddAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action.push_back(value); return *this; }
123 inline AccessPreviewFinding& AddAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action.push_back(std::move(value)); return *this; }
124 inline AccessPreviewFinding& AddAction(const char* value) { m_actionHasBeenSet = true; m_action.push_back(value); return *this; }
126
128
132 inline const Aws::Map<Aws::String, Aws::String>& GetCondition() const{ return m_condition; }
133 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
134 inline void SetCondition(const Aws::Map<Aws::String, Aws::String>& value) { m_conditionHasBeenSet = true; m_condition = value; }
135 inline void SetCondition(Aws::Map<Aws::String, Aws::String>&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
137 inline AccessPreviewFinding& WithCondition(Aws::Map<Aws::String, Aws::String>&& value) { SetCondition(std::move(value)); return *this;}
138 inline AccessPreviewFinding& AddCondition(const Aws::String& key, const Aws::String& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, value); return *this; }
139 inline AccessPreviewFinding& AddCondition(Aws::String&& key, const Aws::String& value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), value); return *this; }
140 inline AccessPreviewFinding& AddCondition(const Aws::String& key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, std::move(value)); return *this; }
141 inline AccessPreviewFinding& AddCondition(Aws::String&& key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), std::move(value)); return *this; }
142 inline AccessPreviewFinding& AddCondition(const char* key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, std::move(value)); return *this; }
143 inline AccessPreviewFinding& AddCondition(Aws::String&& key, const char* value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), value); return *this; }
144 inline AccessPreviewFinding& AddCondition(const char* key, const char* value) { m_conditionHasBeenSet = true; m_condition.emplace(key, value); return *this; }
146
148
152 inline const Aws::String& GetResource() const{ return m_resource; }
153 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
154 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
155 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
156 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
157 inline AccessPreviewFinding& WithResource(const Aws::String& value) { SetResource(value); return *this;}
158 inline AccessPreviewFinding& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
159 inline AccessPreviewFinding& WithResource(const char* value) { SetResource(value); return *this;}
161
163
167 inline bool GetIsPublic() const{ return m_isPublic; }
168 inline bool IsPublicHasBeenSet() const { return m_isPublicHasBeenSet; }
169 inline void SetIsPublic(bool value) { m_isPublicHasBeenSet = true; m_isPublic = value; }
170 inline AccessPreviewFinding& WithIsPublic(bool value) { SetIsPublic(value); return *this;}
172
174
177 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
178 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
179 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
180 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
181 inline AccessPreviewFinding& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
182 inline AccessPreviewFinding& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
184
186
189 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
190 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
191 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
192 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
193 inline AccessPreviewFinding& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
194 inline AccessPreviewFinding& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
196
198
210 inline const FindingChangeType& GetChangeType() const{ return m_changeType; }
211 inline bool ChangeTypeHasBeenSet() const { return m_changeTypeHasBeenSet; }
212 inline void SetChangeType(const FindingChangeType& value) { m_changeTypeHasBeenSet = true; m_changeType = value; }
213 inline void SetChangeType(FindingChangeType&& value) { m_changeTypeHasBeenSet = true; m_changeType = std::move(value); }
214 inline AccessPreviewFinding& WithChangeType(const FindingChangeType& value) { SetChangeType(value); return *this;}
215 inline AccessPreviewFinding& WithChangeType(FindingChangeType&& value) { SetChangeType(std::move(value)); return *this;}
217
219
226 inline const FindingStatus& GetStatus() const{ return m_status; }
227 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
228 inline void SetStatus(const FindingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
229 inline void SetStatus(FindingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
230 inline AccessPreviewFinding& WithStatus(const FindingStatus& value) { SetStatus(value); return *this;}
231 inline AccessPreviewFinding& WithStatus(FindingStatus&& value) { SetStatus(std::move(value)); return *this;}
233
235
240 inline const Aws::String& GetResourceOwnerAccount() const{ return m_resourceOwnerAccount; }
241 inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; }
242 inline void SetResourceOwnerAccount(const Aws::String& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = value; }
243 inline void SetResourceOwnerAccount(Aws::String&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::move(value); }
244 inline void SetResourceOwnerAccount(const char* value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount.assign(value); }
246 inline AccessPreviewFinding& WithResourceOwnerAccount(Aws::String&& value) { SetResourceOwnerAccount(std::move(value)); return *this;}
247 inline AccessPreviewFinding& WithResourceOwnerAccount(const char* value) { SetResourceOwnerAccount(value); return *this;}
249
251
254 inline const Aws::String& GetError() const{ return m_error; }
255 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
256 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
257 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
258 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
259 inline AccessPreviewFinding& WithError(const Aws::String& value) { SetError(value); return *this;}
260 inline AccessPreviewFinding& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
261 inline AccessPreviewFinding& WithError(const char* value) { SetError(value); return *this;}
263
265
269 inline const Aws::Vector<FindingSource>& GetSources() const{ return m_sources; }
270 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
271 inline void SetSources(const Aws::Vector<FindingSource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
272 inline void SetSources(Aws::Vector<FindingSource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
273 inline AccessPreviewFinding& WithSources(const Aws::Vector<FindingSource>& value) { SetSources(value); return *this;}
274 inline AccessPreviewFinding& WithSources(Aws::Vector<FindingSource>&& value) { SetSources(std::move(value)); return *this;}
275 inline AccessPreviewFinding& AddSources(const FindingSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
276 inline AccessPreviewFinding& AddSources(FindingSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
278 private:
279
280 Aws::String m_id;
281 bool m_idHasBeenSet = false;
282
283 Aws::String m_existingFindingId;
284 bool m_existingFindingIdHasBeenSet = false;
285
286 FindingStatus m_existingFindingStatus;
287 bool m_existingFindingStatusHasBeenSet = false;
288
290 bool m_principalHasBeenSet = false;
291
293 bool m_actionHasBeenSet = false;
294
296 bool m_conditionHasBeenSet = false;
297
298 Aws::String m_resource;
299 bool m_resourceHasBeenSet = false;
300
301 bool m_isPublic;
302 bool m_isPublicHasBeenSet = false;
303
304 ResourceType m_resourceType;
305 bool m_resourceTypeHasBeenSet = false;
306
307 Aws::Utils::DateTime m_createdAt;
308 bool m_createdAtHasBeenSet = false;
309
310 FindingChangeType m_changeType;
311 bool m_changeTypeHasBeenSet = false;
312
313 FindingStatus m_status;
314 bool m_statusHasBeenSet = false;
315
316 Aws::String m_resourceOwnerAccount;
317 bool m_resourceOwnerAccountHasBeenSet = false;
318
319 Aws::String m_error;
320 bool m_errorHasBeenSet = false;
321
323 bool m_sourcesHasBeenSet = false;
324 };
325
326} // namespace Model
327} // namespace AccessAnalyzer
328} // namespace Aws
void SetChangeType(const FindingChangeType &value)
AccessPreviewFinding & AddPrincipal(Aws::String &&key, Aws::String &&value)
AccessPreviewFinding & AddCondition(const Aws::String &key, Aws::String &&value)
AccessPreviewFinding & AddCondition(Aws::String &&key, const Aws::String &value)
void SetAction(Aws::Vector< Aws::String > &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AccessPreviewFinding & WithResource(const char *value)
AccessPreviewFinding & WithId(const char *value)
AccessPreviewFinding & WithAction(Aws::Vector< Aws::String > &&value)
AccessPreviewFinding & WithResourceOwnerAccount(Aws::String &&value)
AccessPreviewFinding & AddPrincipal(const char *key, Aws::String &&value)
void SetSources(Aws::Vector< FindingSource > &&value)
AccessPreviewFinding & WithExistingFindingStatus(const FindingStatus &value)
AccessPreviewFinding & WithCondition(Aws::Map< Aws::String, Aws::String > &&value)
AccessPreviewFinding & WithResourceType(const ResourceType &value)
AccessPreviewFinding & AddAction(Aws::String &&value)
AccessPreviewFinding & WithSources(Aws::Vector< FindingSource > &&value)
AccessPreviewFinding & WithChangeType(FindingChangeType &&value)
AccessPreviewFinding & AddPrincipal(const Aws::String &key, Aws::String &&value)
const Aws::Vector< FindingSource > & GetSources() const
const Aws::Map< Aws::String, Aws::String > & GetCondition() const
AWS_ACCESSANALYZER_API AccessPreviewFinding(Aws::Utils::Json::JsonView jsonValue)
AccessPreviewFinding & AddCondition(const char *key, Aws::String &&value)
AccessPreviewFinding & WithExistingFindingId(Aws::String &&value)
AccessPreviewFinding & WithPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
void SetAction(const Aws::Vector< Aws::String > &value)
AccessPreviewFinding & WithResource(Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AccessPreviewFinding & AddCondition(const char *key, const char *value)
void SetPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
AccessPreviewFinding & WithError(const Aws::String &value)
AccessPreviewFinding & AddAction(const Aws::String &value)
void SetExistingFindingStatus(const FindingStatus &value)
AccessPreviewFinding & WithAction(const Aws::Vector< Aws::String > &value)
AccessPreviewFinding & WithSources(const Aws::Vector< FindingSource > &value)
AccessPreviewFinding & WithResourceType(ResourceType &&value)
AccessPreviewFinding & WithExistingFindingId(const Aws::String &value)
AccessPreviewFinding & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< Aws::String > & GetAction() const
AccessPreviewFinding & AddPrincipal(const Aws::String &key, const Aws::String &value)
AccessPreviewFinding & AddCondition(Aws::String &&key, Aws::String &&value)
AccessPreviewFinding & AddCondition(const Aws::String &key, const Aws::String &value)
AccessPreviewFinding & AddAction(const char *value)
void SetCondition(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetPrincipal() const
AccessPreviewFinding & WithError(const char *value)
AccessPreviewFinding & AddSources(FindingSource &&value)
AccessPreviewFinding & AddSources(const FindingSource &value)
AccessPreviewFinding & AddPrincipal(Aws::String &&key, const Aws::String &value)
AccessPreviewFinding & AddCondition(Aws::String &&key, const char *value)
void SetCondition(const Aws::Map< Aws::String, Aws::String > &value)
AccessPreviewFinding & WithStatus(FindingStatus &&value)
AccessPreviewFinding & WithResourceOwnerAccount(const char *value)
AccessPreviewFinding & AddPrincipal(const char *key, const char *value)
AccessPreviewFinding & WithCondition(const Aws::Map< Aws::String, Aws::String > &value)
AccessPreviewFinding & WithExistingFindingId(const char *value)
AccessPreviewFinding & WithId(const Aws::String &value)
AccessPreviewFinding & WithPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
AccessPreviewFinding & WithId(Aws::String &&value)
AccessPreviewFinding & WithResource(const Aws::String &value)
AccessPreviewFinding & WithExistingFindingStatus(FindingStatus &&value)
AWS_ACCESSANALYZER_API AccessPreviewFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessPreviewFinding & WithChangeType(const FindingChangeType &value)
AccessPreviewFinding & WithResourceOwnerAccount(const Aws::String &value)
AccessPreviewFinding & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetSources(const Aws::Vector< FindingSource > &value)
AccessPreviewFinding & AddPrincipal(Aws::String &&key, const char *value)
AccessPreviewFinding & WithError(Aws::String &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
AccessPreviewFinding & WithStatus(const FindingStatus &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue