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>
28namespace AccessAnalyzer
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>
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>>
70 template<
typename PrincipalKeyT = Aws::String,
typename PrincipalValueT = Aws::String>
72 m_principalHasBeenSet =
true; m_principal.emplace(std::forward<PrincipalKeyT>(key), std::forward<PrincipalValueT>(value));
return *
this;
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>>
87 template<
typename ActionT = Aws::String>
88 FindingSummary&
AddAction(ActionT&& value) { m_actionHasBeenSet =
true; m_action.emplace_back(std::forward<ActionT>(value));
return *
this; }
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>
110 inline void SetIsPublic(
bool value) { m_isPublicHasBeenSet =
true; m_isPublic = value; }
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>>
135 template<
typename ConditionKeyT = Aws::String,
typename ConditionValueT = Aws::String>
137 m_conditionHasBeenSet =
true; m_condition.emplace(std::forward<ConditionKeyT>(key), std::forward<ConditionValueT>(value));
return *
this;
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>
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>
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>
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>
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>
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>>
223 template<
typename SourcesT = FindingSource>
224 FindingSummary&
AddSources(SourcesT&& value) { m_sourcesHasBeenSet =
true; m_sources.emplace_back(std::forward<SourcesT>(value));
return *
this; }
240 bool m_idHasBeenSet =
false;
243 bool m_principalHasBeenSet =
false;
246 bool m_actionHasBeenSet =
false;
249 bool m_resourceHasBeenSet =
false;
251 bool m_isPublic{
false};
252 bool m_isPublicHasBeenSet =
false;
255 bool m_resourceTypeHasBeenSet =
false;
258 bool m_conditionHasBeenSet =
false;
261 bool m_createdAtHasBeenSet =
false;
264 bool m_analyzedAtHasBeenSet =
false;
267 bool m_updatedAtHasBeenSet =
false;
270 bool m_statusHasBeenSet =
false;
273 bool m_resourceOwnerAccountHasBeenSet =
false;
276 bool m_errorHasBeenSet =
false;
279 bool m_sourcesHasBeenSet =
false;
282 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