7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/FindingChangeType.h>
9#include <aws/accessanalyzer/model/FindingSource.h>
10#include <aws/accessanalyzer/model/FindingStatus.h>
11#include <aws/accessanalyzer/model/ResourceControlPolicyRestriction.h>
12#include <aws/accessanalyzer/model/ResourceType.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
27namespace AccessAnalyzer {
51 template <
typename IdT = Aws::String>
53 m_idHasBeenSet =
true;
54 m_id = std::forward<IdT>(value);
56 template <
typename IdT = Aws::String>
58 SetId(std::forward<IdT>(value));
70 template <
typename ExistingFindingIdT = Aws::String>
72 m_existingFindingIdHasBeenSet =
true;
73 m_existingFindingId = std::forward<ExistingFindingIdT>(value);
75 template <
typename ExistingFindingIdT = Aws::String>
89 m_existingFindingStatusHasBeenSet =
true;
90 m_existingFindingStatus = value;
105 template <
typename PrincipalT = Aws::Map<Aws::String, Aws::String>>
107 m_principalHasBeenSet =
true;
108 m_principal = std::forward<PrincipalT>(value);
110 template <
typename PrincipalT = Aws::Map<Aws::String, Aws::String>>
115 template <
typename PrincipalKeyT = Aws::String,
typename PrincipalValueT = Aws::String>
117 m_principalHasBeenSet =
true;
118 m_principal.emplace(std::forward<PrincipalKeyT>(key), std::forward<PrincipalValueT>(value));
130 template <
typename ActionT = Aws::Vector<Aws::String>>
132 m_actionHasBeenSet =
true;
133 m_action = std::forward<ActionT>(value);
135 template <
typename ActionT = Aws::Vector<Aws::String>>
140 template <
typename ActionT = Aws::String>
142 m_actionHasBeenSet =
true;
143 m_action.emplace_back(std::forward<ActionT>(value));
155 template <
typename ConditionT = Aws::Map<Aws::String, Aws::String>>
157 m_conditionHasBeenSet =
true;
158 m_condition = std::forward<ConditionT>(value);
160 template <
typename ConditionT = Aws::Map<Aws::String, Aws::String>>
165 template <
typename ConditionKeyT = Aws::String,
typename ConditionValueT = Aws::String>
167 m_conditionHasBeenSet =
true;
168 m_condition.emplace(std::forward<ConditionKeyT>(key), std::forward<ConditionValueT>(value));
180 template <
typename ResourceT = Aws::String>
182 m_resourceHasBeenSet =
true;
183 m_resource = std::forward<ResourceT>(value);
185 template <
typename ResourceT = Aws::String>
200 m_isPublicHasBeenSet =
true;
216 m_resourceTypeHasBeenSet =
true;
217 m_resourceType = value;
231 template <
typename CreatedAtT = Aws::Utils::DateTime>
233 m_createdAtHasBeenSet =
true;
234 m_createdAt = std::forward<CreatedAtT>(value);
236 template <
typename CreatedAtT = Aws::Utils::DateTime>
259 m_changeTypeHasBeenSet =
true;
260 m_changeType = value;
279 m_statusHasBeenSet =
true;
296 template <
typename ResourceOwnerAccountT = Aws::String>
298 m_resourceOwnerAccountHasBeenSet =
true;
299 m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value);
301 template <
typename ResourceOwnerAccountT = Aws::String>
314 template <
typename ErrorT = Aws::String>
316 m_errorHasBeenSet =
true;
317 m_error = std::forward<ErrorT>(value);
319 template <
typename ErrorT = Aws::String>
321 SetError(std::forward<ErrorT>(value));
333 template <
typename SourcesT = Aws::Vector<FindingSource>>
335 m_sourcesHasBeenSet =
true;
336 m_sources = std::forward<SourcesT>(value);
338 template <
typename SourcesT = Aws::Vector<FindingSource>>
343 template <
typename SourcesT = FindingSource>
345 m_sourcesHasBeenSet =
true;
346 m_sources.emplace_back(std::forward<SourcesT>(value));
359 m_resourceControlPolicyRestrictionHasBeenSet =
true;
360 m_resourceControlPolicyRestriction = value;
382 bool m_isPublic{
false};
399 bool m_idHasBeenSet =
false;
400 bool m_existingFindingIdHasBeenSet =
false;
401 bool m_existingFindingStatusHasBeenSet =
false;
402 bool m_principalHasBeenSet =
false;
403 bool m_actionHasBeenSet =
false;
404 bool m_conditionHasBeenSet =
false;
405 bool m_resourceHasBeenSet =
false;
406 bool m_isPublicHasBeenSet =
false;
407 bool m_resourceTypeHasBeenSet =
false;
408 bool m_createdAtHasBeenSet =
false;
409 bool m_changeTypeHasBeenSet =
false;
410 bool m_statusHasBeenSet =
false;
411 bool m_resourceOwnerAccountHasBeenSet =
false;
412 bool m_errorHasBeenSet =
false;
413 bool m_sourcesHasBeenSet =
false;
414 bool m_resourceControlPolicyRestrictionHasBeenSet =
false;
bool ExistingFindingStatusHasBeenSet() const
const Aws::String & GetError() const
AccessPreviewFinding & WithExistingFindingId(ExistingFindingIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetCondition(ConditionT &&value)
bool ConditionHasBeenSet() const
FindingStatus GetExistingFindingStatus() const
AccessPreviewFinding & WithResourceOwnerAccount(ResourceOwnerAccountT &&value)
ResourceType GetResourceType() const
AccessPreviewFinding & WithResourceControlPolicyRestriction(ResourceControlPolicyRestriction value)
void SetResourceType(ResourceType value)
void SetSources(SourcesT &&value)
AccessPreviewFinding & WithPrincipal(PrincipalT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetResourceOwnerAccount(ResourceOwnerAccountT &&value)
bool PrincipalHasBeenSet() const
AWS_ACCESSANALYZER_API AccessPreviewFinding()=default
const Aws::String & GetResourceOwnerAccount() const
FindingChangeType GetChangeType() const
AccessPreviewFinding & WithChangeType(FindingChangeType value)
AccessPreviewFinding & AddCondition(ConditionKeyT &&key, ConditionValueT &&value)
bool CreatedAtHasBeenSet() const
bool ResourceTypeHasBeenSet() const
void SetAction(ActionT &&value)
const Aws::Vector< FindingSource > & GetSources() const
const Aws::Map< Aws::String, Aws::String > & GetCondition() const
AWS_ACCESSANALYZER_API AccessPreviewFinding(Aws::Utils::Json::JsonView jsonValue)
AccessPreviewFinding & WithIsPublic(bool value)
AccessPreviewFinding & WithError(ErrorT &&value)
AccessPreviewFinding & WithResourceType(ResourceType value)
void SetStatus(FindingStatus value)
void SetChangeType(FindingChangeType value)
ResourceControlPolicyRestriction GetResourceControlPolicyRestriction() const
const Aws::String & GetResource() const
const Aws::String & GetId() const
const Aws::String & GetExistingFindingId() const
bool IsPublicHasBeenSet() const
const Aws::Vector< Aws::String > & GetAction() const
AccessPreviewFinding & WithResource(ResourceT &&value)
void SetExistingFindingStatus(FindingStatus value)
bool ErrorHasBeenSet() const
AccessPreviewFinding & WithSources(SourcesT &&value)
bool SourcesHasBeenSet() const
void SetExistingFindingId(ExistingFindingIdT &&value)
bool ResourceOwnerAccountHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetPrincipal() const
void SetError(ErrorT &&value)
bool ChangeTypeHasBeenSet() const
bool ExistingFindingIdHasBeenSet() const
void SetIsPublic(bool value)
AccessPreviewFinding & WithExistingFindingStatus(FindingStatus value)
bool StatusHasBeenSet() const
AccessPreviewFinding & WithStatus(FindingStatus value)
AccessPreviewFinding & WithCondition(ConditionT &&value)
AccessPreviewFinding & WithAction(ActionT &&value)
bool IdHasBeenSet() const
AccessPreviewFinding & AddSources(SourcesT &&value)
AWS_ACCESSANALYZER_API AccessPreviewFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceControlPolicyRestriction(ResourceControlPolicyRestriction value)
bool ResourceControlPolicyRestrictionHasBeenSet() const
bool ResourceHasBeenSet() const
bool ActionHasBeenSet() const
AccessPreviewFinding & AddAction(ActionT &&value)
FindingStatus GetStatus() const
AccessPreviewFinding & WithCreatedAt(CreatedAtT &&value)
AccessPreviewFinding & AddPrincipal(PrincipalKeyT &&key, PrincipalValueT &&value)
void SetResource(ResourceT &&value)
AccessPreviewFinding & WithId(IdT &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrincipal(PrincipalT &&value)
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