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/FindingSource.h>
27namespace AccessAnalyzer
53 inline void SetId(
Aws::String&& value) { m_idHasBeenSet =
true; m_id = std::move(value); }
54 inline void SetId(
const char* value) { m_idHasBeenSet =
true; m_id.assign(value); }
77 inline FindingSummary&
AddPrincipal(
const char* key,
const char* value) { m_principalHasBeenSet =
true; m_principal.emplace(key, value);
return *
this; }
93 inline FindingSummary&
AddAction(
const char* value) { m_actionHasBeenSet =
true; m_action.push_back(value);
return *
this; }
104 inline void SetResource(
const char* value) { m_resourceHasBeenSet =
true; m_resource.assign(value); }
117 inline void SetIsPublic(
bool value) { m_isPublicHasBeenSet =
true; m_isPublic = value; }
150 inline FindingSummary&
AddCondition(
const char* key,
const char* value) { m_conditionHasBeenSet =
true; m_condition.emplace(key, value);
return *
this; }
210 inline void SetResourceOwnerAccount(
const char* value) { m_resourceOwnerAccountHasBeenSet =
true; m_resourceOwnerAccount.assign(value); }
224 inline void SetError(
const char* value) { m_errorHasBeenSet =
true; m_error.assign(value); }
247 bool m_idHasBeenSet =
false;
250 bool m_principalHasBeenSet =
false;
253 bool m_actionHasBeenSet =
false;
256 bool m_resourceHasBeenSet =
false;
259 bool m_isPublicHasBeenSet =
false;
262 bool m_resourceTypeHasBeenSet =
false;
265 bool m_conditionHasBeenSet =
false;
268 bool m_createdAtHasBeenSet =
false;
271 bool m_analyzedAtHasBeenSet =
false;
274 bool m_updatedAtHasBeenSet =
false;
277 bool m_statusHasBeenSet =
false;
280 bool m_resourceOwnerAccountHasBeenSet =
false;
283 bool m_errorHasBeenSet =
false;
286 bool m_sourcesHasBeenSet =
false;
FindingSummary & WithId(const Aws::String &value)
void SetError(Aws::String &&value)
FindingSummary & AddCondition(Aws::String &&key, const Aws::String &value)
FindingSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetPrincipal() const
AWS_ACCESSANALYZER_API FindingSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingSummary & WithError(Aws::String &&value)
void SetCondition(Aws::Map< Aws::String, Aws::String > &&value)
bool IsPublicHasBeenSet() const
bool ResourceHasBeenSet() const
FindingSummary & AddSources(const FindingSource &value)
FindingSummary & WithId(const char *value)
FindingSummary & AddPrincipal(const Aws::String &key, Aws::String &&value)
void SetStatus(FindingStatus &&value)
bool ErrorHasBeenSet() const
void SetResource(const char *value)
FindingSummary & AddPrincipal(Aws::String &&key, const char *value)
FindingSummary & AddPrincipal(Aws::String &&key, Aws::String &&value)
FindingSummary & WithResourceType(ResourceType &&value)
FindingSummary & AddCondition(const Aws::String &key, const Aws::String &value)
FindingSummary & WithId(Aws::String &&value)
void SetAnalyzedAt(Aws::Utils::DateTime &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetSources(Aws::Vector< FindingSource > &&value)
FindingSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
bool ResourceTypeHasBeenSet() const
FindingSummary & AddAction(Aws::String &&value)
void SetResource(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetId() const
void SetResourceType(const ResourceType &value)
void SetResourceOwnerAccount(const Aws::String &value)
void SetPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
bool ResourceOwnerAccountHasBeenSet() const
void SetIsPublic(bool value)
FindingSummary & WithResourceType(const ResourceType &value)
void SetCondition(const Aws::Map< Aws::String, Aws::String > &value)
FindingSummary & WithResource(Aws::String &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
FindingSummary & WithResource(const Aws::String &value)
FindingSummary & AddPrincipal(const Aws::String &key, const Aws::String &value)
const Aws::Utils::DateTime & GetAnalyzedAt() const
bool CreatedAtHasBeenSet() const
FindingSummary & WithResource(const char *value)
void SetResourceOwnerAccount(const char *value)
FindingSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
FindingSummary & WithError(const char *value)
FindingSummary & WithResourceOwnerAccount(const Aws::String &value)
void SetResourceType(ResourceType &&value)
bool SourcesHasBeenSet() const
FindingSummary & AddAction(const Aws::String &value)
FindingSummary & WithAnalyzedAt(Aws::Utils::DateTime &&value)
AWS_ACCESSANALYZER_API FindingSummary()
void SetError(const char *value)
FindingSummary & WithAction(const Aws::Vector< Aws::String > &value)
FindingSummary & AddCondition(const Aws::String &key, Aws::String &&value)
FindingSummary & WithIsPublic(bool value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetResource() const
bool ConditionHasBeenSet() const
FindingSummary & AddPrincipal(const char *key, Aws::String &&value)
FindingSummary & AddPrincipal(Aws::String &&key, const Aws::String &value)
FindingSummary & WithAction(Aws::Vector< Aws::String > &&value)
bool StatusHasBeenSet() const
const Aws::String & GetError() const
void SetId(Aws::String &&value)
FindingSummary & AddPrincipal(const char *key, const char *value)
void SetStatus(const FindingStatus &value)
bool ActionHasBeenSet() const
FindingSummary & WithStatus(FindingStatus &&value)
void SetAction(const Aws::Vector< Aws::String > &value)
void SetSources(const Aws::Vector< FindingSource > &value)
bool AnalyzedAtHasBeenSet() const
FindingSummary & WithResourceOwnerAccount(Aws::String &&value)
const Aws::String & GetResourceOwnerAccount() const
FindingSummary & WithPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
FindingSummary & WithSources(const Aws::Vector< FindingSource > &value)
AWS_ACCESSANALYZER_API FindingSummary(Aws::Utils::Json::JsonView jsonValue)
FindingSummary & WithError(const Aws::String &value)
bool IdHasBeenSet() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< FindingSource > & GetSources() const
FindingSummary & WithResourceOwnerAccount(const char *value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetId(const char *value)
FindingSummary & WithSources(Aws::Vector< FindingSource > &&value)
FindingSummary & AddCondition(const char *key, Aws::String &&value)
void SetError(const Aws::String &value)
void SetAction(Aws::Vector< Aws::String > &&value)
FindingSummary & AddCondition(Aws::String &&key, Aws::String &&value)
void SetPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
FindingSummary & AddSources(FindingSource &&value)
void SetResourceOwnerAccount(Aws::String &&value)
void SetAnalyzedAt(const Aws::Utils::DateTime &value)
const ResourceType & GetResourceType() const
FindingSummary & AddCondition(const char *key, const char *value)
void SetResource(Aws::String &&value)
FindingSummary & AddCondition(Aws::String &&key, const char *value)
FindingSummary & WithStatus(const FindingStatus &value)
const Aws::Vector< Aws::String > & GetAction() const
FindingSummary & WithPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
FindingSummary & WithCondition(const Aws::Map< Aws::String, Aws::String > &value)
bool PrincipalHasBeenSet() const
FindingSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::Map< Aws::String, Aws::String > & GetCondition() const
bool UpdatedAtHasBeenSet() const
const FindingStatus & GetStatus() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
FindingSummary & WithAnalyzedAt(const Aws::Utils::DateTime &value)
FindingSummary & AddAction(const char *value)
FindingSummary & WithCondition(Aws::Map< Aws::String, Aws::String > &&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