7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/ResourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/accessanalyzer/model/FindingStatus.h>
25namespace AccessAnalyzer
50 template<
typename ResourceArnT = Aws::String>
51 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet =
true; m_resourceArn = std::forward<ResourceArnT>(value); }
52 template<
typename ResourceArnT = Aws::String>
72 template<
typename CreatedAtT = Aws::Utils::DateTime>
73 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
74 template<
typename CreatedAtT = Aws::Utils::DateTime>
84 template<
typename AnalyzedAtT = Aws::Utils::DateTime>
85 void SetAnalyzedAt(AnalyzedAtT&& value) { m_analyzedAtHasBeenSet =
true; m_analyzedAt = std::forward<AnalyzedAtT>(value); }
86 template<
typename AnalyzedAtT = Aws::Utils::DateTime>
96 template<
typename UpdatedAtT = Aws::Utils::DateTime>
97 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
98 template<
typename UpdatedAtT = Aws::Utils::DateTime>
109 inline void SetIsPublic(
bool value) { m_isPublicHasBeenSet =
true; m_isPublic = value; }
120 template<
typename ActionsT = Aws::Vector<Aws::String>>
121 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
122 template<
typename ActionsT = Aws::Vector<Aws::String>>
124 template<
typename ActionsT = Aws::String>
125 AnalyzedResource&
AddActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions.emplace_back(std::forward<ActionsT>(value));
return *
this; }
135 template<
typename SharedViaT = Aws::Vector<Aws::String>>
136 void SetSharedVia(SharedViaT&& value) { m_sharedViaHasBeenSet =
true; m_sharedVia = std::forward<SharedViaT>(value); }
137 template<
typename SharedViaT = Aws::Vector<Aws::String>>
139 template<
typename SharedViaT = Aws::String>
140 AnalyzedResource&
AddSharedVia(SharedViaT&& value) { m_sharedViaHasBeenSet =
true; m_sharedVia.emplace_back(std::forward<SharedViaT>(value));
return *
this; }
159 template<
typename ResourceOwnerAccountT = Aws::String>
160 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) { m_resourceOwnerAccountHasBeenSet =
true; m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value); }
161 template<
typename ResourceOwnerAccountT = Aws::String>
171 template<
typename ErrorT = Aws::String>
172 void SetError(ErrorT&& value) { m_errorHasBeenSet =
true; m_error = std::forward<ErrorT>(value); }
173 template<
typename ErrorT = Aws::String>
179 bool m_resourceArnHasBeenSet =
false;
182 bool m_resourceTypeHasBeenSet =
false;
185 bool m_createdAtHasBeenSet =
false;
188 bool m_analyzedAtHasBeenSet =
false;
191 bool m_updatedAtHasBeenSet =
false;
193 bool m_isPublic{
false};
194 bool m_isPublicHasBeenSet =
false;
197 bool m_actionsHasBeenSet =
false;
200 bool m_sharedViaHasBeenSet =
false;
203 bool m_statusHasBeenSet =
false;
206 bool m_resourceOwnerAccountHasBeenSet =
false;
209 bool m_errorHasBeenSet =
false;
AnalyzedResource & WithStatus(FindingStatus value)
AWS_ACCESSANALYZER_API AnalyzedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceOwnerAccount() const
AnalyzedResource & WithSharedVia(SharedViaT &&value)
AnalyzedResource & WithResourceArn(ResourceArnT &&value)
AnalyzedResource & WithResourceOwnerAccount(ResourceOwnerAccountT &&value)
void SetCreatedAt(CreatedAtT &&value)
bool UpdatedAtHasBeenSet() const
const Aws::Vector< Aws::String > & GetActions() const
const Aws::Utils::DateTime & GetCreatedAt() const
bool ErrorHasBeenSet() const
AnalyzedResource & WithResourceType(ResourceType value)
void SetUpdatedAt(UpdatedAtT &&value)
bool ResourceOwnerAccountHasBeenSet() const
bool SharedViaHasBeenSet() const
AnalyzedResource & AddSharedVia(SharedViaT &&value)
AWS_ACCESSANALYZER_API AnalyzedResource(Aws::Utils::Json::JsonView jsonValue)
AnalyzedResource & WithActions(ActionsT &&value)
bool ResourceArnHasBeenSet() const
void SetIsPublic(bool value)
void SetSharedVia(SharedViaT &&value)
AWS_ACCESSANALYZER_API AnalyzedResource()=default
AnalyzedResource & WithAnalyzedAt(AnalyzedAtT &&value)
void SetResourceType(ResourceType value)
const Aws::String & GetResourceArn() const
void SetResourceOwnerAccount(ResourceOwnerAccountT &&value)
const Aws::Utils::DateTime & GetAnalyzedAt() const
bool StatusHasBeenSet() const
ResourceType GetResourceType() const
const Aws::Vector< Aws::String > & GetSharedVia() const
const Aws::Utils::DateTime & GetUpdatedAt() const
bool ActionsHasBeenSet() const
FindingStatus GetStatus() const
void SetActions(ActionsT &&value)
bool ResourceTypeHasBeenSet() const
AnalyzedResource & WithCreatedAt(CreatedAtT &&value)
bool AnalyzedAtHasBeenSet() const
AnalyzedResource & AddActions(ActionsT &&value)
bool IsPublicHasBeenSet() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AnalyzedResource & WithIsPublic(bool value)
AnalyzedResource & WithUpdatedAt(UpdatedAtT &&value)
bool CreatedAtHasBeenSet() const
void SetError(ErrorT &&value)
const Aws::String & GetError() const
AnalyzedResource & WithError(ErrorT &&value)
void SetStatus(FindingStatus value)
void SetAnalyzedAt(AnalyzedAtT &&value)
void SetResourceArn(ResourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue