AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Finding.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/accessanalyzer/model/ResourceType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/accessanalyzer/model/FindingStatus.h>
14#include <aws/accessanalyzer/model/FindingSource.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace AccessAnalyzer
28{
29namespace Model
30{
31
37 class Finding
38 {
39 public:
40 AWS_ACCESSANALYZER_API Finding();
41 AWS_ACCESSANALYZER_API Finding(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ACCESSANALYZER_API Finding& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const{ return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline Finding& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline Finding& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline Finding& WithId(const char* value) { SetId(value); return *this;}
59
61
65 inline const Aws::Map<Aws::String, Aws::String>& GetPrincipal() const{ return m_principal; }
66 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
67 inline void SetPrincipal(const Aws::Map<Aws::String, Aws::String>& value) { m_principalHasBeenSet = true; m_principal = value; }
68 inline void SetPrincipal(Aws::Map<Aws::String, Aws::String>&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
69 inline Finding& WithPrincipal(const Aws::Map<Aws::String, Aws::String>& value) { SetPrincipal(value); return *this;}
70 inline Finding& WithPrincipal(Aws::Map<Aws::String, Aws::String>&& value) { SetPrincipal(std::move(value)); return *this;}
71 inline Finding& AddPrincipal(const Aws::String& key, const Aws::String& value) { m_principalHasBeenSet = true; m_principal.emplace(key, value); return *this; }
72 inline Finding& AddPrincipal(Aws::String&& key, const Aws::String& value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), value); return *this; }
73 inline Finding& AddPrincipal(const Aws::String& key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(key, std::move(value)); return *this; }
74 inline Finding& AddPrincipal(Aws::String&& key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), std::move(value)); return *this; }
75 inline Finding& AddPrincipal(const char* key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(key, std::move(value)); return *this; }
76 inline Finding& AddPrincipal(Aws::String&& key, const char* value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), value); return *this; }
77 inline Finding& AddPrincipal(const char* key, const char* value) { m_principalHasBeenSet = true; m_principal.emplace(key, value); return *this; }
79
81
85 inline const Aws::Vector<Aws::String>& GetAction() const{ return m_action; }
86 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
87 inline void SetAction(const Aws::Vector<Aws::String>& value) { m_actionHasBeenSet = true; m_action = value; }
88 inline void SetAction(Aws::Vector<Aws::String>&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
89 inline Finding& WithAction(const Aws::Vector<Aws::String>& value) { SetAction(value); return *this;}
90 inline Finding& WithAction(Aws::Vector<Aws::String>&& value) { SetAction(std::move(value)); return *this;}
91 inline Finding& AddAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action.push_back(value); return *this; }
92 inline Finding& AddAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action.push_back(std::move(value)); return *this; }
93 inline Finding& AddAction(const char* value) { m_actionHasBeenSet = true; m_action.push_back(value); return *this; }
95
97
100 inline const Aws::String& GetResource() const{ return m_resource; }
101 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
102 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
103 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
104 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
105 inline Finding& WithResource(const Aws::String& value) { SetResource(value); return *this;}
106 inline Finding& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
107 inline Finding& WithResource(const char* value) { SetResource(value); return *this;}
109
111
115 inline bool GetIsPublic() const{ return m_isPublic; }
116 inline bool IsPublicHasBeenSet() const { return m_isPublicHasBeenSet; }
117 inline void SetIsPublic(bool value) { m_isPublicHasBeenSet = true; m_isPublic = value; }
118 inline Finding& WithIsPublic(bool value) { SetIsPublic(value); return *this;}
120
122
125 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
126 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
127 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
128 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
129 inline Finding& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
130 inline Finding& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
132
134
138 inline const Aws::Map<Aws::String, Aws::String>& GetCondition() const{ return m_condition; }
139 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
140 inline void SetCondition(const Aws::Map<Aws::String, Aws::String>& value) { m_conditionHasBeenSet = true; m_condition = value; }
141 inline void SetCondition(Aws::Map<Aws::String, Aws::String>&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
142 inline Finding& WithCondition(const Aws::Map<Aws::String, Aws::String>& value) { SetCondition(value); return *this;}
143 inline Finding& WithCondition(Aws::Map<Aws::String, Aws::String>&& value) { SetCondition(std::move(value)); return *this;}
144 inline Finding& AddCondition(const Aws::String& key, const Aws::String& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, value); return *this; }
145 inline Finding& AddCondition(Aws::String&& key, const Aws::String& value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), value); return *this; }
146 inline Finding& AddCondition(const Aws::String& key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, std::move(value)); return *this; }
147 inline Finding& AddCondition(Aws::String&& key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), std::move(value)); return *this; }
148 inline Finding& AddCondition(const char* key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, std::move(value)); return *this; }
149 inline Finding& AddCondition(Aws::String&& key, const char* value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), value); return *this; }
150 inline Finding& AddCondition(const char* key, const char* value) { m_conditionHasBeenSet = true; m_condition.emplace(key, value); return *this; }
152
154
157 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
158 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
159 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
160 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
161 inline Finding& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
162 inline Finding& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
164
166
169 inline const Aws::Utils::DateTime& GetAnalyzedAt() const{ return m_analyzedAt; }
170 inline bool AnalyzedAtHasBeenSet() const { return m_analyzedAtHasBeenSet; }
171 inline void SetAnalyzedAt(const Aws::Utils::DateTime& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = value; }
172 inline void SetAnalyzedAt(Aws::Utils::DateTime&& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = std::move(value); }
173 inline Finding& WithAnalyzedAt(const Aws::Utils::DateTime& value) { SetAnalyzedAt(value); return *this;}
174 inline Finding& WithAnalyzedAt(Aws::Utils::DateTime&& value) { SetAnalyzedAt(std::move(value)); return *this;}
176
178
181 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
182 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
183 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
184 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
185 inline Finding& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
186 inline Finding& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
188
190
193 inline const FindingStatus& GetStatus() const{ return m_status; }
194 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
195 inline void SetStatus(const FindingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
196 inline void SetStatus(FindingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
197 inline Finding& WithStatus(const FindingStatus& value) { SetStatus(value); return *this;}
198 inline Finding& WithStatus(FindingStatus&& value) { SetStatus(std::move(value)); return *this;}
200
202
205 inline const Aws::String& GetResourceOwnerAccount() const{ return m_resourceOwnerAccount; }
206 inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; }
207 inline void SetResourceOwnerAccount(const Aws::String& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = value; }
208 inline void SetResourceOwnerAccount(Aws::String&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::move(value); }
209 inline void SetResourceOwnerAccount(const char* value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount.assign(value); }
210 inline Finding& WithResourceOwnerAccount(const Aws::String& value) { SetResourceOwnerAccount(value); return *this;}
211 inline Finding& WithResourceOwnerAccount(Aws::String&& value) { SetResourceOwnerAccount(std::move(value)); return *this;}
212 inline Finding& WithResourceOwnerAccount(const char* value) { SetResourceOwnerAccount(value); return *this;}
214
216
219 inline const Aws::String& GetError() const{ return m_error; }
220 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
221 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
222 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
223 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
224 inline Finding& WithError(const Aws::String& value) { SetError(value); return *this;}
225 inline Finding& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
226 inline Finding& WithError(const char* value) { SetError(value); return *this;}
228
230
234 inline const Aws::Vector<FindingSource>& GetSources() const{ return m_sources; }
235 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
236 inline void SetSources(const Aws::Vector<FindingSource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
237 inline void SetSources(Aws::Vector<FindingSource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
238 inline Finding& WithSources(const Aws::Vector<FindingSource>& value) { SetSources(value); return *this;}
239 inline Finding& WithSources(Aws::Vector<FindingSource>&& value) { SetSources(std::move(value)); return *this;}
240 inline Finding& AddSources(const FindingSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
241 inline Finding& AddSources(FindingSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
243 private:
244
245 Aws::String m_id;
246 bool m_idHasBeenSet = false;
247
249 bool m_principalHasBeenSet = false;
250
252 bool m_actionHasBeenSet = false;
253
254 Aws::String m_resource;
255 bool m_resourceHasBeenSet = false;
256
257 bool m_isPublic;
258 bool m_isPublicHasBeenSet = false;
259
260 ResourceType m_resourceType;
261 bool m_resourceTypeHasBeenSet = false;
262
264 bool m_conditionHasBeenSet = false;
265
266 Aws::Utils::DateTime m_createdAt;
267 bool m_createdAtHasBeenSet = false;
268
269 Aws::Utils::DateTime m_analyzedAt;
270 bool m_analyzedAtHasBeenSet = false;
271
272 Aws::Utils::DateTime m_updatedAt;
273 bool m_updatedAtHasBeenSet = false;
274
275 FindingStatus m_status;
276 bool m_statusHasBeenSet = false;
277
278 Aws::String m_resourceOwnerAccount;
279 bool m_resourceOwnerAccountHasBeenSet = false;
280
281 Aws::String m_error;
282 bool m_errorHasBeenSet = false;
283
285 bool m_sourcesHasBeenSet = false;
286 };
287
288} // namespace Model
289} // namespace AccessAnalyzer
290} // namespace Aws
Finding & WithId(const Aws::String &value)
Definition Finding.h:55
Finding & AddCondition(const char *key, Aws::String &&value)
Definition Finding.h:148
void SetResourceType(const ResourceType &value)
Definition Finding.h:127
Finding & AddAction(const Aws::String &value)
Definition Finding.h:91
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:160
Finding & WithError(const char *value)
Definition Finding.h:226
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Finding.h:157
void SetError(const Aws::String &value)
Definition Finding.h:221
Finding & WithSources(const Aws::Vector< FindingSource > &value)
Definition Finding.h:238
Finding & WithAction(const Aws::Vector< Aws::String > &value)
Definition Finding.h:89
Finding & WithPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
Definition Finding.h:70
Finding & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:161
void SetAnalyzedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:172
Finding & AddAction(const char *value)
Definition Finding.h:93
Finding & WithAnalyzedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:174
Finding & AddPrincipal(const Aws::String &key, Aws::String &&value)
Definition Finding.h:73
AWS_ACCESSANALYZER_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
Finding & WithIsPublic(bool value)
Definition Finding.h:118
Finding & WithCondition(Aws::Map< Aws::String, Aws::String > &&value)
Definition Finding.h:143
void SetAction(Aws::Vector< Aws::String > &&value)
Definition Finding.h:88
Finding & WithCondition(const Aws::Map< Aws::String, Aws::String > &value)
Definition Finding.h:142
void SetPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
Definition Finding.h:68
Finding & WithResourceType(const ResourceType &value)
Definition Finding.h:129
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:159
void SetPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
Definition Finding.h:67
void SetSources(const Aws::Vector< FindingSource > &value)
Definition Finding.h:236
void SetCondition(Aws::Map< Aws::String, Aws::String > &&value)
Definition Finding.h:141
Finding & WithAction(Aws::Vector< Aws::String > &&value)
Definition Finding.h:90
Finding & WithResourceOwnerAccount(const char *value)
Definition Finding.h:212
const Aws::String & GetResourceOwnerAccount() const
Definition Finding.h:205
Finding & WithResourceOwnerAccount(const Aws::String &value)
Definition Finding.h:210
void SetResourceOwnerAccount(const Aws::String &value)
Definition Finding.h:207
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
Finding & AddCondition(const char *key, const char *value)
Definition Finding.h:150
void SetId(Aws::String &&value)
Definition Finding.h:53
const Aws::Utils::DateTime & GetAnalyzedAt() const
Definition Finding.h:169
Finding & WithStatus(FindingStatus &&value)
Definition Finding.h:198
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:184
const Aws::String & GetId() const
Definition Finding.h:50
const Aws::Map< Aws::String, Aws::String > & GetPrincipal() const
Definition Finding.h:65
void SetResourceOwnerAccount(Aws::String &&value)
Definition Finding.h:208
Finding & WithStatus(const FindingStatus &value)
Definition Finding.h:197
Finding & WithResource(const char *value)
Definition Finding.h:107
Finding & AddPrincipal(Aws::String &&key, Aws::String &&value)
Definition Finding.h:74
void SetId(const Aws::String &value)
Definition Finding.h:52
const ResourceType & GetResourceType() const
Definition Finding.h:125
const FindingStatus & GetStatus() const
Definition Finding.h:193
const Aws::Vector< FindingSource > & GetSources() const
Definition Finding.h:234
const Aws::Map< Aws::String, Aws::String > & GetCondition() const
Definition Finding.h:138
const Aws::String & GetResource() const
Definition Finding.h:100
void SetResourceOwnerAccount(const char *value)
Definition Finding.h:209
Finding & AddSources(FindingSource &&value)
Definition Finding.h:241
Finding & WithResource(Aws::String &&value)
Definition Finding.h:106
Finding & WithResourceOwnerAccount(Aws::String &&value)
Definition Finding.h:211
void SetCondition(const Aws::Map< Aws::String, Aws::String > &value)
Definition Finding.h:140
void SetStatus(FindingStatus &&value)
Definition Finding.h:196
Finding & WithAnalyzedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:173
Finding & AddPrincipal(const char *key, Aws::String &&value)
Definition Finding.h:75
Finding & WithId(Aws::String &&value)
Definition Finding.h:56
const Aws::String & GetError() const
Definition Finding.h:219
void SetResource(Aws::String &&value)
Definition Finding.h:103
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:183
Finding & AddCondition(const Aws::String &key, const Aws::String &value)
Definition Finding.h:144
Finding & AddSources(const FindingSource &value)
Definition Finding.h:240
Finding & AddPrincipal(const Aws::String &key, const Aws::String &value)
Definition Finding.h:71
Finding & AddCondition(Aws::String &&key, const Aws::String &value)
Definition Finding.h:145
Finding & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:186
void SetAnalyzedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:171
bool ResourceOwnerAccountHasBeenSet() const
Definition Finding.h:206
Finding & WithError(const Aws::String &value)
Definition Finding.h:224
Finding & AddPrincipal(Aws::String &&key, const Aws::String &value)
Definition Finding.h:72
AWS_ACCESSANALYZER_API Finding()
Finding & AddPrincipal(const char *key, const char *value)
Definition Finding.h:77
void SetError(Aws::String &&value)
Definition Finding.h:222
void SetResource(const char *value)
Definition Finding.h:104
Finding & WithResource(const Aws::String &value)
Definition Finding.h:105
void SetAction(const Aws::Vector< Aws::String > &value)
Definition Finding.h:87
Finding & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Finding.h:162
Finding & WithResourceType(ResourceType &&value)
Definition Finding.h:130
Finding & AddCondition(Aws::String &&key, const char *value)
Definition Finding.h:149
Finding & AddAction(Aws::String &&value)
Definition Finding.h:92
Finding & AddCondition(Aws::String &&key, Aws::String &&value)
Definition Finding.h:147
void SetSources(Aws::Vector< FindingSource > &&value)
Definition Finding.h:237
const Aws::Vector< Aws::String > & GetAction() const
Definition Finding.h:85
void SetId(const char *value)
Definition Finding.h:54
Finding & WithPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
Definition Finding.h:69
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Finding.h:181
AWS_ACCESSANALYZER_API Finding(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(ResourceType &&value)
Definition Finding.h:128
Finding & AddCondition(const Aws::String &key, Aws::String &&value)
Definition Finding.h:146
Finding & AddPrincipal(Aws::String &&key, const char *value)
Definition Finding.h:76
Finding & WithError(Aws::String &&value)
Definition Finding.h:225
void SetError(const char *value)
Definition Finding.h:223
void SetResource(const Aws::String &value)
Definition Finding.h:102
Finding & WithSources(Aws::Vector< FindingSource > &&value)
Definition Finding.h:239
void SetStatus(const FindingStatus &value)
Definition Finding.h:195
Finding & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition Finding.h:185
Finding & WithId(const char *value)
Definition Finding.h:57
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