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/FindingSource.h>
28namespace AccessAnalyzer
57 inline void SetId(
Aws::String&& value) { m_idHasBeenSet =
true; m_id = std::move(value); }
58 inline void SetId(
const char* value) { m_idHasBeenSet =
true; m_id.assign(value); }
73 inline void SetExistingFindingId(
const char* value) { m_existingFindingIdHasBeenSet =
true; m_existingFindingId.assign(value); }
156 inline void SetResource(
const char* value) { m_resourceHasBeenSet =
true; m_resource.assign(value); }
169 inline void SetIsPublic(
bool value) { m_isPublicHasBeenSet =
true; m_isPublic = value; }
244 inline void SetResourceOwnerAccount(
const char* value) { m_resourceOwnerAccountHasBeenSet =
true; m_resourceOwnerAccount.assign(value); }
258 inline void SetError(
const char* value) { m_errorHasBeenSet =
true; m_error.assign(value); }
281 bool m_idHasBeenSet =
false;
284 bool m_existingFindingIdHasBeenSet =
false;
287 bool m_existingFindingStatusHasBeenSet =
false;
290 bool m_principalHasBeenSet =
false;
293 bool m_actionHasBeenSet =
false;
296 bool m_conditionHasBeenSet =
false;
299 bool m_resourceHasBeenSet =
false;
302 bool m_isPublicHasBeenSet =
false;
305 bool m_resourceTypeHasBeenSet =
false;
308 bool m_createdAtHasBeenSet =
false;
311 bool m_changeTypeHasBeenSet =
false;
314 bool m_statusHasBeenSet =
false;
317 bool m_resourceOwnerAccountHasBeenSet =
false;
320 bool m_errorHasBeenSet =
false;
323 bool m_sourcesHasBeenSet =
false;
bool ExistingFindingStatusHasBeenSet() const
const Aws::String & GetError() const
void SetResourceOwnerAccount(const char *value)
bool ConditionHasBeenSet() const
void SetChangeType(const FindingChangeType &value)
AccessPreviewFinding & AddPrincipal(Aws::String &&key, Aws::String &&value)
void SetError(const char *value)
AccessPreviewFinding & AddCondition(const Aws::String &key, Aws::String &&value)
AccessPreviewFinding & AddCondition(Aws::String &&key, const Aws::String &value)
void SetAction(Aws::Vector< Aws::String > &&value)
AWS_ACCESSANALYZER_API AccessPreviewFinding()
void SetExistingFindingId(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
AccessPreviewFinding & WithResource(const char *value)
AccessPreviewFinding & WithId(const char *value)
AccessPreviewFinding & WithAction(Aws::Vector< Aws::String > &&value)
bool PrincipalHasBeenSet() const
const Aws::String & GetResourceOwnerAccount() const
AccessPreviewFinding & WithResourceOwnerAccount(Aws::String &&value)
void SetStatus(FindingStatus &&value)
AccessPreviewFinding & AddPrincipal(const char *key, Aws::String &&value)
void SetSources(Aws::Vector< FindingSource > &&value)
AccessPreviewFinding & WithExistingFindingStatus(const FindingStatus &value)
AccessPreviewFinding & WithCondition(Aws::Map< Aws::String, Aws::String > &&value)
void SetResource(const Aws::String &value)
bool CreatedAtHasBeenSet() const
AccessPreviewFinding & WithResourceType(const ResourceType &value)
AccessPreviewFinding & AddAction(Aws::String &&value)
const ResourceType & GetResourceType() const
AccessPreviewFinding & WithSources(Aws::Vector< FindingSource > &&value)
bool ResourceTypeHasBeenSet() const
AccessPreviewFinding & WithChangeType(FindingChangeType &&value)
void SetResourceType(const ResourceType &value)
AccessPreviewFinding & AddPrincipal(const Aws::String &key, Aws::String &&value)
void SetResource(Aws::String &&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 & AddCondition(const char *key, Aws::String &&value)
AccessPreviewFinding & WithIsPublic(bool value)
AccessPreviewFinding & WithExistingFindingId(Aws::String &&value)
void SetResourceType(ResourceType &&value)
void SetStatus(const FindingStatus &value)
AccessPreviewFinding & WithPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
void SetAction(const Aws::Vector< Aws::String > &value)
AccessPreviewFinding & WithResource(Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AccessPreviewFinding & AddCondition(const char *key, const char *value)
void SetPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
AccessPreviewFinding & WithError(const Aws::String &value)
AccessPreviewFinding & AddAction(const Aws::String &value)
void SetExistingFindingStatus(const FindingStatus &value)
AccessPreviewFinding & WithAction(const Aws::Vector< Aws::String > &value)
const Aws::String & GetResource() const
const Aws::String & GetId() const
const Aws::String & GetExistingFindingId() const
AccessPreviewFinding & WithSources(const Aws::Vector< FindingSource > &value)
AccessPreviewFinding & WithResourceType(ResourceType &&value)
void SetResourceOwnerAccount(Aws::String &&value)
AccessPreviewFinding & WithExistingFindingId(const Aws::String &value)
bool IsPublicHasBeenSet() const
AccessPreviewFinding & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetError(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAction() const
AccessPreviewFinding & AddPrincipal(const Aws::String &key, const Aws::String &value)
void SetError(const Aws::String &value)
void SetChangeType(FindingChangeType &&value)
AccessPreviewFinding & AddCondition(Aws::String &&key, Aws::String &&value)
bool ErrorHasBeenSet() const
bool SourcesHasBeenSet() const
void SetId(const char *value)
AccessPreviewFinding & AddCondition(const Aws::String &key, const Aws::String &value)
AccessPreviewFinding & AddAction(const char *value)
void SetCondition(Aws::Map< Aws::String, Aws::String > &&value)
bool ResourceOwnerAccountHasBeenSet() const
void SetExistingFindingId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetPrincipal() const
AccessPreviewFinding & WithError(const char *value)
bool ChangeTypeHasBeenSet() const
AccessPreviewFinding & AddSources(FindingSource &&value)
bool ExistingFindingIdHasBeenSet() const
void SetIsPublic(bool value)
AccessPreviewFinding & AddSources(const FindingSource &value)
bool StatusHasBeenSet() const
AccessPreviewFinding & AddPrincipal(Aws::String &&key, const Aws::String &value)
AccessPreviewFinding & AddCondition(Aws::String &&key, const char *value)
void SetId(Aws::String &&value)
void SetCondition(const Aws::Map< Aws::String, Aws::String > &value)
AccessPreviewFinding & WithStatus(FindingStatus &&value)
AccessPreviewFinding & WithResourceOwnerAccount(const char *value)
const FindingChangeType & GetChangeType() const
AccessPreviewFinding & AddPrincipal(const char *key, const char *value)
const FindingStatus & GetExistingFindingStatus() const
AccessPreviewFinding & WithCondition(const Aws::Map< Aws::String, Aws::String > &value)
AccessPreviewFinding & WithExistingFindingId(const char *value)
bool IdHasBeenSet() const
AccessPreviewFinding & WithId(const Aws::String &value)
void SetExistingFindingStatus(FindingStatus &&value)
AccessPreviewFinding & WithPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
AccessPreviewFinding & WithId(Aws::String &&value)
AccessPreviewFinding & WithResource(const Aws::String &value)
AccessPreviewFinding & WithExistingFindingStatus(FindingStatus &&value)
AWS_ACCESSANALYZER_API AccessPreviewFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessPreviewFinding & WithChangeType(const FindingChangeType &value)
AccessPreviewFinding & WithResourceOwnerAccount(const Aws::String &value)
bool ResourceHasBeenSet() const
bool ActionHasBeenSet() const
void SetResourceOwnerAccount(const Aws::String &value)
void SetExistingFindingId(const Aws::String &value)
AccessPreviewFinding & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetSources(const Aws::Vector< FindingSource > &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
const FindingStatus & GetStatus() const
AccessPreviewFinding & AddPrincipal(Aws::String &&key, const char *value)
void SetResource(const char *value)
AccessPreviewFinding & WithError(Aws::String &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
void SetId(const Aws::String &value)
AccessPreviewFinding & WithStatus(const FindingStatus &value)
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