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
41 AWS_ACCESSANALYZER_API
Finding() =
default;
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 Finding&
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>
159 template<
typename AnalyzedAtT = Aws::Utils::DateTime>
160 void SetAnalyzedAt(AnalyzedAtT&& value) { m_analyzedAtHasBeenSet =
true; m_analyzedAt = std::forward<AnalyzedAtT>(value); }
161 template<
typename AnalyzedAtT = Aws::Utils::DateTime>
171 template<
typename UpdatedAtT = Aws::Utils::DateTime>
172 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
173 template<
typename UpdatedAtT = Aws::Utils::DateTime>
193 template<
typename ResourceOwnerAccountT = Aws::String>
194 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) { m_resourceOwnerAccountHasBeenSet =
true; m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value); }
195 template<
typename ResourceOwnerAccountT = Aws::String>
205 template<
typename ErrorT = Aws::String>
206 void SetError(ErrorT&& value) { m_errorHasBeenSet =
true; m_error = std::forward<ErrorT>(value); }
207 template<
typename ErrorT = Aws::String>
218 template<
typename SourcesT = Aws::Vector<FindingSource>>
219 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet =
true; m_sources = std::forward<SourcesT>(value); }
220 template<
typename SourcesT = Aws::Vector<FindingSource>>
222 template<
typename SourcesT = FindingSource>
223 Finding&
AddSources(SourcesT&& value) { m_sourcesHasBeenSet =
true; m_sources.emplace_back(std::forward<SourcesT>(value));
return *
this; }
239 bool m_idHasBeenSet =
false;
242 bool m_principalHasBeenSet =
false;
245 bool m_actionHasBeenSet =
false;
248 bool m_resourceHasBeenSet =
false;
250 bool m_isPublic{
false};
251 bool m_isPublicHasBeenSet =
false;
254 bool m_resourceTypeHasBeenSet =
false;
257 bool m_conditionHasBeenSet =
false;
260 bool m_createdAtHasBeenSet =
false;
263 bool m_analyzedAtHasBeenSet =
false;
266 bool m_updatedAtHasBeenSet =
false;
269 bool m_statusHasBeenSet =
false;
272 bool m_resourceOwnerAccountHasBeenSet =
false;
275 bool m_errorHasBeenSet =
false;
278 bool m_sourcesHasBeenSet =
false;
281 bool m_resourceControlPolicyRestrictionHasBeenSet =
false;
void SetCondition(ConditionT &&value)
bool IdHasBeenSet() const
Finding & WithAnalyzedAt(AnalyzedAtT &&value)
Finding & WithResourceControlPolicyRestriction(ResourceControlPolicyRestriction value)
bool CreatedAtHasBeenSet() const
FindingStatus GetStatus() const
const Aws::Utils::DateTime & GetCreatedAt() const
Finding & WithId(IdT &&value)
void SetResourceControlPolicyRestriction(ResourceControlPolicyRestriction value)
Finding & WithResourceOwnerAccount(ResourceOwnerAccountT &&value)
AWS_ACCESSANALYZER_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
Finding & WithIsPublic(bool value)
void SetIsPublic(bool value)
bool PrincipalHasBeenSet() const
Finding & WithStatus(FindingStatus value)
void SetCreatedAt(CreatedAtT &&value)
void SetResourceType(ResourceType value)
Finding & AddSources(SourcesT &&value)
const Aws::String & GetResourceOwnerAccount() const
bool IsPublicHasBeenSet() const
void SetResourceOwnerAccount(ResourceOwnerAccountT &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(FindingStatus value)
bool ResourceHasBeenSet() const
const Aws::Utils::DateTime & GetAnalyzedAt() const
const Aws::String & GetId() const
const Aws::Map< Aws::String, Aws::String > & GetPrincipal() const
Finding & WithPrincipal(PrincipalT &&value)
bool ResourceTypeHasBeenSet() const
const Aws::Vector< FindingSource > & GetSources() const
bool ResourceControlPolicyRestrictionHasBeenSet() const
Finding & WithResourceType(ResourceType value)
const Aws::Map< Aws::String, Aws::String > & GetCondition() const
const Aws::String & GetResource() const
void SetUpdatedAt(UpdatedAtT &&value)
Finding & WithCondition(ConditionT &&value)
bool ConditionHasBeenSet() const
ResourceControlPolicyRestriction GetResourceControlPolicyRestriction() const
bool UpdatedAtHasBeenSet() const
const Aws::String & GetError() const
Finding & WithError(ErrorT &&value)
bool ErrorHasBeenSet() const
void SetAnalyzedAt(AnalyzedAtT &&value)
void SetPrincipal(PrincipalT &&value)
Finding & WithUpdatedAt(UpdatedAtT &&value)
void SetSources(SourcesT &&value)
void SetResource(ResourceT &&value)
bool ResourceOwnerAccountHasBeenSet() const
bool AnalyzedAtHasBeenSet() const
Finding & WithSources(SourcesT &&value)
Finding & WithResource(ResourceT &&value)
Finding & WithCreatedAt(CreatedAtT &&value)
Finding & AddCondition(ConditionKeyT &&key, ConditionValueT &&value)
bool StatusHasBeenSet() const
ResourceType GetResourceType() const
bool ActionHasBeenSet() const
const Aws::Vector< Aws::String > & GetAction() const
void SetAction(ActionT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_ACCESSANALYZER_API Finding(Aws::Utils::Json::JsonView jsonValue)
void SetError(ErrorT &&value)
AWS_ACCESSANALYZER_API Finding()=default
Finding & WithAction(ActionT &&value)
Finding & AddPrincipal(PrincipalKeyT &&key, PrincipalValueT &&value)
Finding & AddAction(ActionT &&value)
bool SourcesHasBeenSet() 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