AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FindingSummary.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
38 {
39 public:
40 AWS_ACCESSANALYZER_API FindingSummary();
41 AWS_ACCESSANALYZER_API FindingSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ACCESSANALYZER_API FindingSummary& 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 FindingSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline FindingSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline FindingSummary& 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 FindingSummary& WithPrincipal(const Aws::Map<Aws::String, Aws::String>& value) { SetPrincipal(value); return *this;}
70 inline FindingSummary& WithPrincipal(Aws::Map<Aws::String, Aws::String>&& value) { SetPrincipal(std::move(value)); return *this;}
71 inline FindingSummary& AddPrincipal(const Aws::String& key, const Aws::String& value) { m_principalHasBeenSet = true; m_principal.emplace(key, value); return *this; }
72 inline FindingSummary& AddPrincipal(Aws::String&& key, const Aws::String& value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), value); return *this; }
73 inline FindingSummary& AddPrincipal(const Aws::String& key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(key, std::move(value)); return *this; }
74 inline FindingSummary& AddPrincipal(Aws::String&& key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), std::move(value)); return *this; }
75 inline FindingSummary& AddPrincipal(const char* key, Aws::String&& value) { m_principalHasBeenSet = true; m_principal.emplace(key, std::move(value)); return *this; }
76 inline FindingSummary& AddPrincipal(Aws::String&& key, const char* value) { m_principalHasBeenSet = true; m_principal.emplace(std::move(key), value); return *this; }
77 inline FindingSummary& 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 FindingSummary& WithAction(const Aws::Vector<Aws::String>& value) { SetAction(value); return *this;}
90 inline FindingSummary& WithAction(Aws::Vector<Aws::String>&& value) { SetAction(std::move(value)); return *this;}
91 inline FindingSummary& AddAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action.push_back(value); return *this; }
92 inline FindingSummary& AddAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action.push_back(std::move(value)); return *this; }
93 inline FindingSummary& 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 FindingSummary& WithResource(const Aws::String& value) { SetResource(value); return *this;}
106 inline FindingSummary& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
107 inline FindingSummary& 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 FindingSummary& 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 FindingSummary& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
130 inline FindingSummary& 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); }
143 inline FindingSummary& WithCondition(Aws::Map<Aws::String, Aws::String>&& value) { SetCondition(std::move(value)); return *this;}
144 inline FindingSummary& AddCondition(const Aws::String& key, const Aws::String& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, value); return *this; }
145 inline FindingSummary& AddCondition(Aws::String&& key, const Aws::String& value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), value); return *this; }
146 inline FindingSummary& AddCondition(const Aws::String& key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, std::move(value)); return *this; }
147 inline FindingSummary& AddCondition(Aws::String&& key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), std::move(value)); return *this; }
148 inline FindingSummary& AddCondition(const char* key, Aws::String&& value) { m_conditionHasBeenSet = true; m_condition.emplace(key, std::move(value)); return *this; }
149 inline FindingSummary& AddCondition(Aws::String&& key, const char* value) { m_conditionHasBeenSet = true; m_condition.emplace(std::move(key), value); return *this; }
150 inline FindingSummary& 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 FindingSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
162 inline FindingSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
164
166
170 inline const Aws::Utils::DateTime& GetAnalyzedAt() const{ return m_analyzedAt; }
171 inline bool AnalyzedAtHasBeenSet() const { return m_analyzedAtHasBeenSet; }
172 inline void SetAnalyzedAt(const Aws::Utils::DateTime& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = value; }
173 inline void SetAnalyzedAt(Aws::Utils::DateTime&& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = std::move(value); }
174 inline FindingSummary& WithAnalyzedAt(const Aws::Utils::DateTime& value) { SetAnalyzedAt(value); return *this;}
175 inline FindingSummary& WithAnalyzedAt(Aws::Utils::DateTime&& value) { SetAnalyzedAt(std::move(value)); return *this;}
177
179
182 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
183 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
184 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
185 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
186 inline FindingSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
187 inline FindingSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
189
191
194 inline const FindingStatus& GetStatus() const{ return m_status; }
195 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
196 inline void SetStatus(const FindingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
197 inline void SetStatus(FindingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
198 inline FindingSummary& WithStatus(const FindingStatus& value) { SetStatus(value); return *this;}
199 inline FindingSummary& WithStatus(FindingStatus&& value) { SetStatus(std::move(value)); return *this;}
201
203
206 inline const Aws::String& GetResourceOwnerAccount() const{ return m_resourceOwnerAccount; }
207 inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; }
208 inline void SetResourceOwnerAccount(const Aws::String& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = value; }
209 inline void SetResourceOwnerAccount(Aws::String&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::move(value); }
210 inline void SetResourceOwnerAccount(const char* value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount.assign(value); }
211 inline FindingSummary& WithResourceOwnerAccount(const Aws::String& value) { SetResourceOwnerAccount(value); return *this;}
212 inline FindingSummary& WithResourceOwnerAccount(Aws::String&& value) { SetResourceOwnerAccount(std::move(value)); return *this;}
213 inline FindingSummary& WithResourceOwnerAccount(const char* value) { SetResourceOwnerAccount(value); return *this;}
215
217
220 inline const Aws::String& GetError() const{ return m_error; }
221 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
222 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
223 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
224 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
225 inline FindingSummary& WithError(const Aws::String& value) { SetError(value); return *this;}
226 inline FindingSummary& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
227 inline FindingSummary& WithError(const char* value) { SetError(value); return *this;}
229
231
235 inline const Aws::Vector<FindingSource>& GetSources() const{ return m_sources; }
236 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
237 inline void SetSources(const Aws::Vector<FindingSource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
238 inline void SetSources(Aws::Vector<FindingSource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
239 inline FindingSummary& WithSources(const Aws::Vector<FindingSource>& value) { SetSources(value); return *this;}
240 inline FindingSummary& WithSources(Aws::Vector<FindingSource>&& value) { SetSources(std::move(value)); return *this;}
241 inline FindingSummary& AddSources(const FindingSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
242 inline FindingSummary& AddSources(FindingSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
244 private:
245
246 Aws::String m_id;
247 bool m_idHasBeenSet = false;
248
250 bool m_principalHasBeenSet = false;
251
253 bool m_actionHasBeenSet = false;
254
255 Aws::String m_resource;
256 bool m_resourceHasBeenSet = false;
257
258 bool m_isPublic;
259 bool m_isPublicHasBeenSet = false;
260
261 ResourceType m_resourceType;
262 bool m_resourceTypeHasBeenSet = false;
263
265 bool m_conditionHasBeenSet = false;
266
267 Aws::Utils::DateTime m_createdAt;
268 bool m_createdAtHasBeenSet = false;
269
270 Aws::Utils::DateTime m_analyzedAt;
271 bool m_analyzedAtHasBeenSet = false;
272
273 Aws::Utils::DateTime m_updatedAt;
274 bool m_updatedAtHasBeenSet = false;
275
276 FindingStatus m_status;
277 bool m_statusHasBeenSet = false;
278
279 Aws::String m_resourceOwnerAccount;
280 bool m_resourceOwnerAccountHasBeenSet = false;
281
282 Aws::String m_error;
283 bool m_errorHasBeenSet = false;
284
286 bool m_sourcesHasBeenSet = false;
287 };
288
289} // namespace Model
290} // namespace AccessAnalyzer
291} // namespace Aws
FindingSummary & WithId(const Aws::String &value)
FindingSummary & AddCondition(Aws::String &&key, const Aws::String &value)
FindingSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetPrincipal() const
AWS_ACCESSANALYZER_API FindingSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingSummary & WithError(Aws::String &&value)
void SetCondition(Aws::Map< Aws::String, Aws::String > &&value)
FindingSummary & AddSources(const FindingSource &value)
FindingSummary & WithId(const char *value)
FindingSummary & AddPrincipal(const Aws::String &key, Aws::String &&value)
FindingSummary & AddPrincipal(Aws::String &&key, const char *value)
FindingSummary & AddPrincipal(Aws::String &&key, Aws::String &&value)
FindingSummary & WithResourceType(ResourceType &&value)
FindingSummary & AddCondition(const Aws::String &key, const Aws::String &value)
FindingSummary & WithId(Aws::String &&value)
void SetAnalyzedAt(Aws::Utils::DateTime &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetSources(Aws::Vector< FindingSource > &&value)
FindingSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
FindingSummary & AddAction(Aws::String &&value)
void SetResource(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetResourceType(const ResourceType &value)
void SetResourceOwnerAccount(const Aws::String &value)
void SetPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
FindingSummary & WithResourceType(const ResourceType &value)
void SetCondition(const Aws::Map< Aws::String, Aws::String > &value)
FindingSummary & WithResource(Aws::String &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
FindingSummary & WithResource(const Aws::String &value)
FindingSummary & AddPrincipal(const Aws::String &key, const Aws::String &value)
const Aws::Utils::DateTime & GetAnalyzedAt() const
FindingSummary & WithResource(const char *value)
void SetResourceOwnerAccount(const char *value)
FindingSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
FindingSummary & WithError(const char *value)
FindingSummary & WithResourceOwnerAccount(const Aws::String &value)
void SetResourceType(ResourceType &&value)
FindingSummary & AddAction(const Aws::String &value)
FindingSummary & WithAnalyzedAt(Aws::Utils::DateTime &&value)
AWS_ACCESSANALYZER_API FindingSummary()
FindingSummary & WithAction(const Aws::Vector< Aws::String > &value)
FindingSummary & AddCondition(const Aws::String &key, Aws::String &&value)
FindingSummary & WithIsPublic(bool value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetResource() const
FindingSummary & AddPrincipal(const char *key, Aws::String &&value)
FindingSummary & AddPrincipal(Aws::String &&key, const Aws::String &value)
FindingSummary & WithAction(Aws::Vector< Aws::String > &&value)
FindingSummary & AddPrincipal(const char *key, const char *value)
void SetStatus(const FindingStatus &value)
FindingSummary & WithStatus(FindingStatus &&value)
void SetAction(const Aws::Vector< Aws::String > &value)
void SetSources(const Aws::Vector< FindingSource > &value)
FindingSummary & WithResourceOwnerAccount(Aws::String &&value)
const Aws::String & GetResourceOwnerAccount() const
FindingSummary & WithPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
FindingSummary & WithSources(const Aws::Vector< FindingSource > &value)
AWS_ACCESSANALYZER_API FindingSummary(Aws::Utils::Json::JsonView jsonValue)
FindingSummary & WithError(const Aws::String &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< FindingSource > & GetSources() const
FindingSummary & WithResourceOwnerAccount(const char *value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
FindingSummary & WithSources(Aws::Vector< FindingSource > &&value)
FindingSummary & AddCondition(const char *key, Aws::String &&value)
void SetError(const Aws::String &value)
void SetAction(Aws::Vector< Aws::String > &&value)
FindingSummary & AddCondition(Aws::String &&key, Aws::String &&value)
void SetPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
FindingSummary & AddSources(FindingSource &&value)
void SetResourceOwnerAccount(Aws::String &&value)
void SetAnalyzedAt(const Aws::Utils::DateTime &value)
const ResourceType & GetResourceType() const
FindingSummary & AddCondition(const char *key, const char *value)
FindingSummary & AddCondition(Aws::String &&key, const char *value)
FindingSummary & WithStatus(const FindingStatus &value)
const Aws::Vector< Aws::String > & GetAction() const
FindingSummary & WithPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
FindingSummary & WithCondition(const Aws::Map< Aws::String, Aws::String > &value)
FindingSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::Map< Aws::String, Aws::String > & GetCondition() const
const FindingStatus & GetStatus() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
FindingSummary & WithAnalyzedAt(const Aws::Utils::DateTime &value)
FindingSummary & AddAction(const char *value)
FindingSummary & WithCondition(Aws::Map< Aws::String, Aws::String > &&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