7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/FindingStatus.h>
9#include <aws/accessanalyzer/model/ResourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
23namespace AccessAnalyzer {
44 template <
typename ResourceArnT = Aws::String>
46 m_resourceArnHasBeenSet =
true;
47 m_resourceArn = std::forward<ResourceArnT>(value);
49 template <
typename ResourceArnT = Aws::String>
63 m_resourceTypeHasBeenSet =
true;
64 m_resourceType = value;
78 template <
typename CreatedAtT = Aws::Utils::DateTime>
80 m_createdAtHasBeenSet =
true;
81 m_createdAt = std::forward<CreatedAtT>(value);
83 template <
typename CreatedAtT = Aws::Utils::DateTime>
96 template <
typename AnalyzedAtT = Aws::Utils::DateTime>
98 m_analyzedAtHasBeenSet =
true;
99 m_analyzedAt = std::forward<AnalyzedAtT>(value);
101 template <
typename AnalyzedAtT = Aws::Utils::DateTime>
114 template <
typename UpdatedAtT = Aws::Utils::DateTime>
116 m_updatedAtHasBeenSet =
true;
117 m_updatedAt = std::forward<UpdatedAtT>(value);
119 template <
typename UpdatedAtT = Aws::Utils::DateTime>
134 m_isPublicHasBeenSet =
true;
150 template <
typename ActionsT = Aws::Vector<Aws::String>>
152 m_actionsHasBeenSet =
true;
153 m_actions = std::forward<ActionsT>(value);
155 template <
typename ActionsT = Aws::Vector<Aws::String>>
160 template <
typename ActionsT = Aws::String>
162 m_actionsHasBeenSet =
true;
163 m_actions.emplace_back(std::forward<ActionsT>(value));
175 template <
typename SharedViaT = Aws::Vector<Aws::String>>
177 m_sharedViaHasBeenSet =
true;
178 m_sharedVia = std::forward<SharedViaT>(value);
180 template <
typename SharedViaT = Aws::Vector<Aws::String>>
185 template <
typename SharedViaT = Aws::String>
187 m_sharedViaHasBeenSet =
true;
188 m_sharedVia.emplace_back(std::forward<SharedViaT>(value));
200 m_statusHasBeenSet =
true;
215 template <
typename ResourceOwnerAccountT = Aws::String>
217 m_resourceOwnerAccountHasBeenSet =
true;
218 m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value);
220 template <
typename ResourceOwnerAccountT = Aws::String>
233 template <
typename ErrorT = Aws::String>
235 m_errorHasBeenSet =
true;
236 m_error = std::forward<ErrorT>(value);
238 template <
typename ErrorT = Aws::String>
240 SetError(std::forward<ErrorT>(value));
255 bool m_isPublic{
false};
266 bool m_resourceArnHasBeenSet =
false;
267 bool m_resourceTypeHasBeenSet =
false;
268 bool m_createdAtHasBeenSet =
false;
269 bool m_analyzedAtHasBeenSet =
false;
270 bool m_updatedAtHasBeenSet =
false;
271 bool m_isPublicHasBeenSet =
false;
272 bool m_actionsHasBeenSet =
false;
273 bool m_sharedViaHasBeenSet =
false;
274 bool m_statusHasBeenSet =
false;
275 bool m_resourceOwnerAccountHasBeenSet =
false;
276 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