7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/FindingStatus.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/accessanalyzer/model/ResourceType.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/accessanalyzer/model/FindingChangeType.h>
15#include <aws/accessanalyzer/model/ResourceControlPolicyRestriction.h>
16#include <aws/accessanalyzer/model/FindingSource.h>
29namespace AccessAnalyzer
57 template<
typename IdT = Aws::String>
58 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
59 template<
typename IdT = Aws::String>
70 template<
typename ExistingFindingIdT = Aws::String>
71 void SetExistingFindingId(ExistingFindingIdT&& value) { m_existingFindingIdHasBeenSet =
true; m_existingFindingId = std::forward<ExistingFindingIdT>(value); }
72 template<
typename ExistingFindingIdT = Aws::String>
93 template<
typename PrincipalT = Aws::Map<Aws::String, Aws::String>>
94 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet =
true; m_principal = std::forward<PrincipalT>(value); }
95 template<
typename PrincipalT = Aws::Map<Aws::String, Aws::String>>
97 template<
typename PrincipalKeyT = Aws::String,
typename PrincipalValueT = Aws::String>
99 m_principalHasBeenSet =
true; m_principal.emplace(std::forward<PrincipalKeyT>(key), std::forward<PrincipalValueT>(value));
return *
this;
110 template<
typename ActionT = Aws::Vector<Aws::String>>
111 void SetAction(ActionT&& value) { m_actionHasBeenSet =
true; m_action = std::forward<ActionT>(value); }
112 template<
typename ActionT = Aws::Vector<Aws::String>>
114 template<
typename ActionT = Aws::String>
125 template<
typename ConditionT = Aws::Map<Aws::String, Aws::String>>
126 void SetCondition(ConditionT&& value) { m_conditionHasBeenSet =
true; m_condition = std::forward<ConditionT>(value); }
127 template<
typename ConditionT = Aws::Map<Aws::String, Aws::String>>
129 template<
typename ConditionKeyT = Aws::String,
typename ConditionValueT = Aws::String>
131 m_conditionHasBeenSet =
true; m_condition.emplace(std::forward<ConditionKeyT>(key), std::forward<ConditionValueT>(value));
return *
this;
142 template<
typename ResourceT = Aws::String>
143 void SetResource(ResourceT&& value) { m_resourceHasBeenSet =
true; m_resource = std::forward<ResourceT>(value); }
144 template<
typename ResourceT = Aws::String>
155 inline void SetIsPublic(
bool value) { m_isPublicHasBeenSet =
true; m_isPublic = value; }
175 template<
typename CreatedAtT = Aws::Utils::DateTime>
176 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
177 template<
typename CreatedAtT = Aws::Utils::DateTime>
222 template<
typename ResourceOwnerAccountT = Aws::String>
223 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) { m_resourceOwnerAccountHasBeenSet =
true; m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value); }
224 template<
typename ResourceOwnerAccountT = Aws::String>
234 template<
typename ErrorT = Aws::String>
235 void SetError(ErrorT&& value) { m_errorHasBeenSet =
true; m_error = std::forward<ErrorT>(value); }
236 template<
typename ErrorT = Aws::String>
247 template<
typename SourcesT = Aws::Vector<FindingSource>>
248 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet =
true; m_sources = std::forward<SourcesT>(value); }
249 template<
typename SourcesT = Aws::Vector<FindingSource>>
251 template<
typename SourcesT = FindingSource>
268 bool m_idHasBeenSet =
false;
271 bool m_existingFindingIdHasBeenSet =
false;
274 bool m_existingFindingStatusHasBeenSet =
false;
277 bool m_principalHasBeenSet =
false;
280 bool m_actionHasBeenSet =
false;
283 bool m_conditionHasBeenSet =
false;
286 bool m_resourceHasBeenSet =
false;
288 bool m_isPublic{
false};
289 bool m_isPublicHasBeenSet =
false;
292 bool m_resourceTypeHasBeenSet =
false;
295 bool m_createdAtHasBeenSet =
false;
298 bool m_changeTypeHasBeenSet =
false;
301 bool m_statusHasBeenSet =
false;
304 bool m_resourceOwnerAccountHasBeenSet =
false;
307 bool m_errorHasBeenSet =
false;
310 bool m_sourcesHasBeenSet =
false;
313 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