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); }
75 inline Finding&
AddPrincipal(
const char* key,
Aws::String&& value) { m_principalHasBeenSet =
true; m_principal.emplace(key, std::move(value));
return *
this; }
76 inline Finding&
AddPrincipal(
Aws::String&& key,
const char* value) { m_principalHasBeenSet =
true; m_principal.emplace(std::move(key), value);
return *
this; }
77 inline Finding&
AddPrincipal(
const char* key,
const char* value) { m_principalHasBeenSet =
true; m_principal.emplace(key, value);
return *
this; }
93 inline Finding&
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 Finding&
AddCondition(
const char* key,
const char* value) { m_conditionHasBeenSet =
true; m_condition.emplace(key, value);
return *
this; }
209 inline void SetResourceOwnerAccount(
const char* value) { m_resourceOwnerAccountHasBeenSet =
true; m_resourceOwnerAccount.assign(value); }
223 inline void SetError(
const char* value) { m_errorHasBeenSet =
true; m_error.assign(value); }
246 bool m_idHasBeenSet =
false;
249 bool m_principalHasBeenSet =
false;
252 bool m_actionHasBeenSet =
false;
255 bool m_resourceHasBeenSet =
false;
258 bool m_isPublicHasBeenSet =
false;
261 bool m_resourceTypeHasBeenSet =
false;
264 bool m_conditionHasBeenSet =
false;
267 bool m_createdAtHasBeenSet =
false;
270 bool m_analyzedAtHasBeenSet =
false;
273 bool m_updatedAtHasBeenSet =
false;
276 bool m_statusHasBeenSet =
false;
279 bool m_resourceOwnerAccountHasBeenSet =
false;
282 bool m_errorHasBeenSet =
false;
285 bool m_sourcesHasBeenSet =
false;
Finding & WithId(const Aws::String &value)
Finding & AddCondition(const char *key, Aws::String &&value)
bool IdHasBeenSet() const
void SetResourceType(const ResourceType &value)
bool CreatedAtHasBeenSet() const
Finding & AddAction(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
Finding & WithError(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetError(const Aws::String &value)
Finding & WithSources(const Aws::Vector< FindingSource > &value)
Finding & WithAction(const Aws::Vector< Aws::String > &value)
Finding & WithPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
Finding & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetAnalyzedAt(Aws::Utils::DateTime &&value)
Finding & AddAction(const char *value)
Finding & WithAnalyzedAt(Aws::Utils::DateTime &&value)
Finding & AddPrincipal(const Aws::String &key, Aws::String &&value)
AWS_ACCESSANALYZER_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
Finding & WithIsPublic(bool value)
Finding & WithCondition(Aws::Map< Aws::String, Aws::String > &&value)
void SetAction(Aws::Vector< Aws::String > &&value)
void SetIsPublic(bool value)
bool PrincipalHasBeenSet() const
Finding & WithCondition(const Aws::Map< Aws::String, Aws::String > &value)
void SetPrincipal(Aws::Map< Aws::String, Aws::String > &&value)
Finding & WithResourceType(const ResourceType &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
void SetSources(const Aws::Vector< FindingSource > &value)
void SetCondition(Aws::Map< Aws::String, Aws::String > &&value)
Finding & WithAction(Aws::Vector< Aws::String > &&value)
Finding & WithResourceOwnerAccount(const char *value)
const Aws::String & GetResourceOwnerAccount() const
Finding & WithResourceOwnerAccount(const Aws::String &value)
bool IsPublicHasBeenSet() const
void SetResourceOwnerAccount(const Aws::String &value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
Finding & AddCondition(const char *key, const char *value)
void SetId(Aws::String &&value)
bool ResourceHasBeenSet() const
const Aws::Utils::DateTime & GetAnalyzedAt() const
Finding & WithStatus(FindingStatus &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetId() const
const Aws::Map< Aws::String, Aws::String > & GetPrincipal() const
void SetResourceOwnerAccount(Aws::String &&value)
bool ResourceTypeHasBeenSet() const
Finding & WithStatus(const FindingStatus &value)
Finding & WithResource(const char *value)
Finding & AddPrincipal(Aws::String &&key, Aws::String &&value)
void SetId(const Aws::String &value)
const ResourceType & GetResourceType() const
const FindingStatus & GetStatus() const
const Aws::Vector< FindingSource > & GetSources() const
const Aws::Map< Aws::String, Aws::String > & GetCondition() const
const Aws::String & GetResource() const
void SetResourceOwnerAccount(const char *value)
Finding & AddSources(FindingSource &&value)
Finding & WithResource(Aws::String &&value)
Finding & WithResourceOwnerAccount(Aws::String &&value)
bool ConditionHasBeenSet() const
void SetCondition(const Aws::Map< Aws::String, Aws::String > &value)
void SetStatus(FindingStatus &&value)
Finding & WithAnalyzedAt(const Aws::Utils::DateTime &value)
Finding & AddPrincipal(const char *key, Aws::String &&value)
bool UpdatedAtHasBeenSet() const
Finding & WithId(Aws::String &&value)
const Aws::String & GetError() const
bool ErrorHasBeenSet() const
void SetResource(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Finding & AddCondition(const Aws::String &key, const Aws::String &value)
Finding & AddSources(const FindingSource &value)
Finding & AddPrincipal(const Aws::String &key, const Aws::String &value)
Finding & AddCondition(Aws::String &&key, const Aws::String &value)
Finding & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetAnalyzedAt(const Aws::Utils::DateTime &value)
bool ResourceOwnerAccountHasBeenSet() const
Finding & WithError(const Aws::String &value)
Finding & AddPrincipal(Aws::String &&key, const Aws::String &value)
AWS_ACCESSANALYZER_API Finding()
Finding & AddPrincipal(const char *key, const char *value)
void SetError(Aws::String &&value)
void SetResource(const char *value)
bool AnalyzedAtHasBeenSet() const
Finding & WithResource(const Aws::String &value)
void SetAction(const Aws::Vector< Aws::String > &value)
Finding & WithCreatedAt(Aws::Utils::DateTime &&value)
Finding & WithResourceType(ResourceType &&value)
Finding & AddCondition(Aws::String &&key, const char *value)
Finding & AddAction(Aws::String &&value)
bool StatusHasBeenSet() const
Finding & AddCondition(Aws::String &&key, Aws::String &&value)
void SetSources(Aws::Vector< FindingSource > &&value)
bool ActionHasBeenSet() const
const Aws::Vector< Aws::String > & GetAction() const
void SetId(const char *value)
Finding & WithPrincipal(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_ACCESSANALYZER_API Finding(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(ResourceType &&value)
Finding & AddCondition(const Aws::String &key, Aws::String &&value)
Finding & AddPrincipal(Aws::String &&key, const char *value)
Finding & WithError(Aws::String &&value)
void SetError(const char *value)
void SetResource(const Aws::String &value)
Finding & WithSources(Aws::Vector< FindingSource > &&value)
void SetStatus(const FindingStatus &value)
Finding & WithUpdatedAt(const Aws::Utils::DateTime &value)
Finding & WithId(const char *value)
bool SourcesHasBeenSet() const
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