AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/ResourceControlPolicyRestriction.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
39 {
40 public:
41 AWS_ACCESSANALYZER_API FindingSummary() = default;
42 AWS_ACCESSANALYZER_API FindingSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ACCESSANALYZER_API FindingSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetId() const { return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 template<typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
55 template<typename IdT = Aws::String>
56 FindingSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
58
60
64 inline const Aws::Map<Aws::String, Aws::String>& GetPrincipal() const { return m_principal; }
65 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
66 template<typename PrincipalT = Aws::Map<Aws::String, Aws::String>>
67 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
68 template<typename PrincipalT = Aws::Map<Aws::String, Aws::String>>
69 FindingSummary& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
70 template<typename PrincipalKeyT = Aws::String, typename PrincipalValueT = Aws::String>
71 FindingSummary& AddPrincipal(PrincipalKeyT&& key, PrincipalValueT&& value) {
72 m_principalHasBeenSet = true; m_principal.emplace(std::forward<PrincipalKeyT>(key), std::forward<PrincipalValueT>(value)); return *this;
73 }
75
77
81 inline const Aws::Vector<Aws::String>& GetAction() const { return m_action; }
82 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
83 template<typename ActionT = Aws::Vector<Aws::String>>
84 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
85 template<typename ActionT = Aws::Vector<Aws::String>>
86 FindingSummary& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
87 template<typename ActionT = Aws::String>
88 FindingSummary& AddAction(ActionT&& value) { m_actionHasBeenSet = true; m_action.emplace_back(std::forward<ActionT>(value)); return *this; }
90
92
95 inline const Aws::String& GetResource() const { return m_resource; }
96 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
97 template<typename ResourceT = Aws::String>
98 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
99 template<typename ResourceT = Aws::String>
100 FindingSummary& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
102
104
108 inline bool GetIsPublic() const { return m_isPublic; }
109 inline bool IsPublicHasBeenSet() const { return m_isPublicHasBeenSet; }
110 inline void SetIsPublic(bool value) { m_isPublicHasBeenSet = true; m_isPublic = value; }
111 inline FindingSummary& WithIsPublic(bool value) { SetIsPublic(value); return *this;}
113
115
118 inline ResourceType GetResourceType() const { return m_resourceType; }
119 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
120 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
121 inline FindingSummary& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
123
125
129 inline const Aws::Map<Aws::String, Aws::String>& GetCondition() const { return m_condition; }
130 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
131 template<typename ConditionT = Aws::Map<Aws::String, Aws::String>>
132 void SetCondition(ConditionT&& value) { m_conditionHasBeenSet = true; m_condition = std::forward<ConditionT>(value); }
133 template<typename ConditionT = Aws::Map<Aws::String, Aws::String>>
134 FindingSummary& WithCondition(ConditionT&& value) { SetCondition(std::forward<ConditionT>(value)); return *this;}
135 template<typename ConditionKeyT = Aws::String, typename ConditionValueT = Aws::String>
136 FindingSummary& AddCondition(ConditionKeyT&& key, ConditionValueT&& value) {
137 m_conditionHasBeenSet = true; m_condition.emplace(std::forward<ConditionKeyT>(key), std::forward<ConditionValueT>(value)); return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
146 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
147 template<typename CreatedAtT = Aws::Utils::DateTime>
148 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
149 template<typename CreatedAtT = Aws::Utils::DateTime>
150 FindingSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
152
154
158 inline const Aws::Utils::DateTime& GetAnalyzedAt() const { return m_analyzedAt; }
159 inline bool AnalyzedAtHasBeenSet() const { return m_analyzedAtHasBeenSet; }
160 template<typename AnalyzedAtT = Aws::Utils::DateTime>
161 void SetAnalyzedAt(AnalyzedAtT&& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = std::forward<AnalyzedAtT>(value); }
162 template<typename AnalyzedAtT = Aws::Utils::DateTime>
163 FindingSummary& WithAnalyzedAt(AnalyzedAtT&& value) { SetAnalyzedAt(std::forward<AnalyzedAtT>(value)); return *this;}
165
167
170 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
171 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
172 template<typename UpdatedAtT = Aws::Utils::DateTime>
173 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
174 template<typename UpdatedAtT = Aws::Utils::DateTime>
175 FindingSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
177
179
182 inline FindingStatus GetStatus() const { return m_status; }
183 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
184 inline void SetStatus(FindingStatus value) { m_statusHasBeenSet = true; m_status = value; }
185 inline FindingSummary& WithStatus(FindingStatus value) { SetStatus(value); return *this;}
187
189
192 inline const Aws::String& GetResourceOwnerAccount() const { return m_resourceOwnerAccount; }
193 inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; }
194 template<typename ResourceOwnerAccountT = Aws::String>
195 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value); }
196 template<typename ResourceOwnerAccountT = Aws::String>
197 FindingSummary& WithResourceOwnerAccount(ResourceOwnerAccountT&& value) { SetResourceOwnerAccount(std::forward<ResourceOwnerAccountT>(value)); return *this;}
199
201
204 inline const Aws::String& GetError() const { return m_error; }
205 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
206 template<typename ErrorT = Aws::String>
207 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
208 template<typename ErrorT = Aws::String>
209 FindingSummary& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
211
213
217 inline const Aws::Vector<FindingSource>& GetSources() const { return m_sources; }
218 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
219 template<typename SourcesT = Aws::Vector<FindingSource>>
220 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
221 template<typename SourcesT = Aws::Vector<FindingSource>>
222 FindingSummary& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
223 template<typename SourcesT = FindingSource>
224 FindingSummary& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
226
228
232 inline ResourceControlPolicyRestriction GetResourceControlPolicyRestriction() const { return m_resourceControlPolicyRestriction; }
233 inline bool ResourceControlPolicyRestrictionHasBeenSet() const { return m_resourceControlPolicyRestrictionHasBeenSet; }
234 inline void SetResourceControlPolicyRestriction(ResourceControlPolicyRestriction value) { m_resourceControlPolicyRestrictionHasBeenSet = true; m_resourceControlPolicyRestriction = value; }
237 private:
238
239 Aws::String m_id;
240 bool m_idHasBeenSet = false;
241
243 bool m_principalHasBeenSet = false;
244
246 bool m_actionHasBeenSet = false;
247
248 Aws::String m_resource;
249 bool m_resourceHasBeenSet = false;
250
251 bool m_isPublic{false};
252 bool m_isPublicHasBeenSet = false;
253
254 ResourceType m_resourceType{ResourceType::NOT_SET};
255 bool m_resourceTypeHasBeenSet = false;
256
258 bool m_conditionHasBeenSet = false;
259
260 Aws::Utils::DateTime m_createdAt{};
261 bool m_createdAtHasBeenSet = false;
262
263 Aws::Utils::DateTime m_analyzedAt{};
264 bool m_analyzedAtHasBeenSet = false;
265
266 Aws::Utils::DateTime m_updatedAt{};
267 bool m_updatedAtHasBeenSet = false;
268
270 bool m_statusHasBeenSet = false;
271
272 Aws::String m_resourceOwnerAccount;
273 bool m_resourceOwnerAccountHasBeenSet = false;
274
275 Aws::String m_error;
276 bool m_errorHasBeenSet = false;
277
279 bool m_sourcesHasBeenSet = false;
280
282 bool m_resourceControlPolicyRestrictionHasBeenSet = false;
283 };
284
285} // namespace Model
286} // namespace AccessAnalyzer
287} // namespace Aws
FindingSummary & AddAction(ActionT &&value)
FindingSummary & AddCondition(ConditionKeyT &&key, ConditionValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetPrincipal() const
AWS_ACCESSANALYZER_API FindingSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
FindingSummary & WithResourceControlPolicyRestriction(ResourceControlPolicyRestriction value)
const Aws::Utils::DateTime & GetAnalyzedAt() const
FindingSummary & WithResource(ResourceT &&value)
FindingSummary & WithUpdatedAt(UpdatedAtT &&value)
FindingSummary & WithResourceOwnerAccount(ResourceOwnerAccountT &&value)
FindingSummary & WithResourceType(ResourceType value)
FindingSummary & WithIsPublic(bool value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetResource() const
AWS_ACCESSANALYZER_API FindingSummary()=default
FindingSummary & WithPrincipal(PrincipalT &&value)
void SetResourceControlPolicyRestriction(ResourceControlPolicyRestriction value)
FindingSummary & WithCreatedAt(CreatedAtT &&value)
FindingSummary & WithStatus(FindingStatus value)
FindingSummary & WithAction(ActionT &&value)
FindingSummary & WithError(ErrorT &&value)
FindingSummary & WithCondition(ConditionT &&value)
const Aws::String & GetResourceOwnerAccount() const
AWS_ACCESSANALYZER_API FindingSummary(Aws::Utils::Json::JsonView jsonValue)
FindingSummary & WithAnalyzedAt(AnalyzedAtT &&value)
const Aws::Vector< FindingSource > & GetSources() const
FindingSummary & AddSources(SourcesT &&value)
void SetResourceOwnerAccount(ResourceOwnerAccountT &&value)
FindingSummary & WithId(IdT &&value)
ResourceControlPolicyRestriction GetResourceControlPolicyRestriction() const
FindingSummary & AddPrincipal(PrincipalKeyT &&key, PrincipalValueT &&value)
FindingSummary & WithSources(SourcesT &&value)
const Aws::Vector< Aws::String > & GetAction() const
const Aws::Map< Aws::String, Aws::String > & GetCondition() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
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