7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/FindingSource.h>
9#include <aws/accessanalyzer/model/FindingStatus.h>
10#include <aws/accessanalyzer/model/ResourceControlPolicyRestriction.h>
11#include <aws/accessanalyzer/model/ResourceType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
26namespace AccessAnalyzer {
47 template <
typename IdT = Aws::String>
49 m_idHasBeenSet =
true;
50 m_id = std::forward<IdT>(value);
52 template <
typename IdT = Aws::String>
54 SetId(std::forward<IdT>(value));
66 template <
typename PrincipalT = Aws::Map<Aws::String, Aws::String>>
68 m_principalHasBeenSet =
true;
69 m_principal = std::forward<PrincipalT>(value);
71 template <
typename PrincipalT = Aws::Map<Aws::String, Aws::String>>
76 template <
typename PrincipalKeyT = Aws::String,
typename PrincipalValueT = Aws::String>
78 m_principalHasBeenSet =
true;
79 m_principal.emplace(std::forward<PrincipalKeyT>(key), std::forward<PrincipalValueT>(value));
91 template <
typename ActionT = Aws::Vector<Aws::String>>
93 m_actionHasBeenSet =
true;
94 m_action = std::forward<ActionT>(value);
96 template <
typename ActionT = Aws::Vector<Aws::String>>
101 template <
typename ActionT = Aws::String>
103 m_actionHasBeenSet =
true;
104 m_action.emplace_back(std::forward<ActionT>(value));
115 template <
typename ResourceT = Aws::String>
117 m_resourceHasBeenSet =
true;
118 m_resource = std::forward<ResourceT>(value);
120 template <
typename ResourceT = Aws::String>
135 m_isPublicHasBeenSet =
true;
151 m_resourceTypeHasBeenSet =
true;
152 m_resourceType = value;
167 template <
typename ConditionT = Aws::Map<Aws::String, Aws::String>>
169 m_conditionHasBeenSet =
true;
170 m_condition = std::forward<ConditionT>(value);
172 template <
typename ConditionT = Aws::Map<Aws::String, Aws::String>>
177 template <
typename ConditionKeyT = Aws::String,
typename ConditionValueT = Aws::String>
179 m_conditionHasBeenSet =
true;
180 m_condition.emplace(std::forward<ConditionKeyT>(key), std::forward<ConditionValueT>(value));
191 template <
typename CreatedAtT = Aws::Utils::DateTime>
193 m_createdAtHasBeenSet =
true;
194 m_createdAt = std::forward<CreatedAtT>(value);
196 template <
typename CreatedAtT = Aws::Utils::DateTime>
210 template <
typename AnalyzedAtT = Aws::Utils::DateTime>
212 m_analyzedAtHasBeenSet =
true;
213 m_analyzedAt = std::forward<AnalyzedAtT>(value);
215 template <
typename AnalyzedAtT = Aws::Utils::DateTime>
228 template <
typename UpdatedAtT = Aws::Utils::DateTime>
230 m_updatedAtHasBeenSet =
true;
231 m_updatedAt = std::forward<UpdatedAtT>(value);
233 template <
typename UpdatedAtT = Aws::Utils::DateTime>
247 m_statusHasBeenSet =
true;
262 template <
typename ResourceOwnerAccountT = Aws::String>
264 m_resourceOwnerAccountHasBeenSet =
true;
265 m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value);
267 template <
typename ResourceOwnerAccountT = Aws::String>
280 template <
typename ErrorT = Aws::String>
282 m_errorHasBeenSet =
true;
283 m_error = std::forward<ErrorT>(value);
285 template <
typename ErrorT = Aws::String>
287 SetError(std::forward<ErrorT>(value));
299 template <
typename SourcesT = Aws::Vector<FindingSource>>
301 m_sourcesHasBeenSet =
true;
302 m_sources = std::forward<SourcesT>(value);
304 template <
typename SourcesT = Aws::Vector<FindingSource>>
309 template <
typename SourcesT = FindingSource>
311 m_sourcesHasBeenSet =
true;
312 m_sources.emplace_back(std::forward<SourcesT>(value));
325 m_resourceControlPolicyRestrictionHasBeenSet =
true;
326 m_resourceControlPolicyRestriction = value;
342 bool m_isPublic{
false};
363 bool m_idHasBeenSet =
false;
364 bool m_principalHasBeenSet =
false;
365 bool m_actionHasBeenSet =
false;
366 bool m_resourceHasBeenSet =
false;
367 bool m_isPublicHasBeenSet =
false;
368 bool m_resourceTypeHasBeenSet =
false;
369 bool m_conditionHasBeenSet =
false;
370 bool m_createdAtHasBeenSet =
false;
371 bool m_analyzedAtHasBeenSet =
false;
372 bool m_updatedAtHasBeenSet =
false;
373 bool m_statusHasBeenSet =
false;
374 bool m_resourceOwnerAccountHasBeenSet =
false;
375 bool m_errorHasBeenSet =
false;
376 bool m_sourcesHasBeenSet =
false;
377 bool m_resourceControlPolicyRestrictionHasBeenSet =
false;
FindingSummary & AddAction(ActionT &&value)
void SetAnalyzedAt(AnalyzedAtT &&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)
bool IsPublicHasBeenSet() const
bool ResourceHasBeenSet() const
FindingStatus GetStatus() const
bool ErrorHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
bool ResourceTypeHasBeenSet() const
void SetStatus(FindingStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetId() const
bool ResourceOwnerAccountHasBeenSet() const
void SetIsPublic(bool value)
FindingSummary & WithResourceControlPolicyRestriction(ResourceControlPolicyRestriction value)
const Aws::Utils::DateTime & GetAnalyzedAt() const
bool CreatedAtHasBeenSet() const
FindingSummary & WithResource(ResourceT &&value)
FindingSummary & WithUpdatedAt(UpdatedAtT &&value)
FindingSummary & WithResourceOwnerAccount(ResourceOwnerAccountT &&value)
bool SourcesHasBeenSet() const
FindingSummary & WithResourceType(ResourceType value)
void SetError(ErrorT &&value)
FindingSummary & WithIsPublic(bool value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetResource() const
bool ConditionHasBeenSet() const
void SetCondition(ConditionT &&value)
AWS_ACCESSANALYZER_API FindingSummary()=default
bool StatusHasBeenSet() const
const Aws::String & GetError() const
void SetResource(ResourceT &&value)
bool ResourceControlPolicyRestrictionHasBeenSet() const
FindingSummary & WithPrincipal(PrincipalT &&value)
void SetResourceControlPolicyRestriction(ResourceControlPolicyRestriction value)
bool ActionHasBeenSet() const
FindingSummary & WithCreatedAt(CreatedAtT &&value)
FindingSummary & WithStatus(FindingStatus value)
void SetCreatedAt(CreatedAtT &&value)
FindingSummary & WithAction(ActionT &&value)
bool AnalyzedAtHasBeenSet() const
void SetPrincipal(PrincipalT &&value)
FindingSummary & WithError(ErrorT &&value)
FindingSummary & WithCondition(ConditionT &&value)
const Aws::String & GetResourceOwnerAccount() const
AWS_ACCESSANALYZER_API FindingSummary(Aws::Utils::Json::JsonView jsonValue)
ResourceType GetResourceType() const
bool IdHasBeenSet() const
FindingSummary & WithAnalyzedAt(AnalyzedAtT &&value)
void SetSources(SourcesT &&value)
const Aws::Vector< FindingSource > & GetSources() const
FindingSummary & AddSources(SourcesT &&value)
void SetResourceOwnerAccount(ResourceOwnerAccountT &&value)
FindingSummary & WithId(IdT &&value)
void SetAction(ActionT &&value)
void SetResourceType(ResourceType value)
ResourceControlPolicyRestriction GetResourceControlPolicyRestriction() const
FindingSummary & AddPrincipal(PrincipalKeyT &&key, PrincipalValueT &&value)
FindingSummary & WithSources(SourcesT &&value)
const Aws::Vector< Aws::String > & GetAction() const
bool PrincipalHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetCondition() const
bool UpdatedAtHasBeenSet() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceControlPolicyRestriction
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