7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/LifecyclePolicyStatus.h>
10#include <aws/imagebuilder/model/LifecyclePolicyResourceType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/imagebuilder/model/LifecyclePolicyResourceSelection.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/imagebuilder/model/LifecyclePolicyDetail.h>
55 inline void SetArn(
Aws::String&& value) { m_arnHasBeenSet =
true; m_arn = std::move(value); }
56 inline void SetArn(
const char* value) { m_arnHasBeenSet =
true; m_arn.assign(value); }
70 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
84 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
111 inline void SetExecutionRole(
const char* value) { m_executionRoleHasBeenSet =
true; m_executionRole.assign(value); }
209 inline LifecyclePolicy&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
214 bool m_arnHasBeenSet =
false;
217 bool m_nameHasBeenSet =
false;
220 bool m_descriptionHasBeenSet =
false;
223 bool m_statusHasBeenSet =
false;
226 bool m_executionRoleHasBeenSet =
false;
229 bool m_resourceTypeHasBeenSet =
false;
232 bool m_policyDetailsHasBeenSet =
false;
235 bool m_resourceSelectionHasBeenSet =
false;
238 bool m_dateCreatedHasBeenSet =
false;
241 bool m_dateUpdatedHasBeenSet =
false;
244 bool m_dateLastRunHasBeenSet =
false;
247 bool m_tagsHasBeenSet =
false;
void SetDescription(Aws::String &&value)
LifecyclePolicy & AddTags(Aws::String &&key, const char *value)
void SetExecutionRole(const Aws::String &value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const LifecyclePolicyStatus & GetStatus() const
void SetDescription(const char *value)
void SetDateCreated(Aws::Utils::DateTime &&value)
LifecyclePolicy & WithResourceSelection(LifecyclePolicyResourceSelection &&value)
LifecyclePolicy & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetResourceType(LifecyclePolicyResourceType &&value)
void SetDateLastRun(Aws::Utils::DateTime &&value)
void SetArn(Aws::String &&value)
const Aws::Utils::DateTime & GetDateUpdated() const
void SetDateCreated(const Aws::Utils::DateTime &value)
const Aws::Vector< LifecyclePolicyDetail > & GetPolicyDetails() const
void SetName(const char *value)
void SetStatus(const LifecyclePolicyStatus &value)
LifecyclePolicy & WithExecutionRole(const Aws::String &value)
void SetName(const Aws::String &value)
void SetDateUpdated(Aws::Utils::DateTime &&value)
bool DescriptionHasBeenSet() const
void SetArn(const char *value)
const Aws::String & GetExecutionRole() const
LifecyclePolicy & WithDateUpdated(const Aws::Utils::DateTime &value)
LifecyclePolicy & WithExecutionRole(Aws::String &&value)
void SetDateLastRun(const Aws::Utils::DateTime &value)
bool TagsHasBeenSet() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
LifecyclePolicy & WithResourceType(const LifecyclePolicyResourceType &value)
void SetArn(const Aws::String &value)
void SetDateUpdated(const Aws::Utils::DateTime &value)
bool ResourceSelectionHasBeenSet() const
void SetName(Aws::String &&value)
LifecyclePolicy & AddTags(const Aws::String &key, Aws::String &&value)
void SetPolicyDetails(const Aws::Vector< LifecyclePolicyDetail > &value)
AWS_IMAGEBUILDER_API LifecyclePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DateUpdatedHasBeenSet() const
LifecyclePolicy & AddTags(const char *key, const char *value)
bool ArnHasBeenSet() const
const LifecyclePolicyResourceSelection & GetResourceSelection() const
LifecyclePolicy & WithPolicyDetails(Aws::Vector< LifecyclePolicyDetail > &&value)
LifecyclePolicy & AddPolicyDetails(LifecyclePolicyDetail &&value)
void SetDescription(const Aws::String &value)
LifecyclePolicy & AddTags(const char *key, Aws::String &&value)
const Aws::String & GetDescription() const
LifecyclePolicy & AddTags(Aws::String &&key, Aws::String &&value)
bool StatusHasBeenSet() const
bool ResourceTypeHasBeenSet() const
AWS_IMAGEBUILDER_API LifecyclePolicy(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicy & WithDateLastRun(const Aws::Utils::DateTime &value)
void SetStatus(LifecyclePolicyStatus &&value)
LifecyclePolicy & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
LifecyclePolicy & WithStatus(const LifecyclePolicyStatus &value)
LifecyclePolicy & WithDescription(Aws::String &&value)
LifecyclePolicy & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
bool DateCreatedHasBeenSet() const
const Aws::String & GetArn() const
bool PolicyDetailsHasBeenSet() const
const Aws::String & GetName() const
LifecyclePolicy & WithName(Aws::String &&value)
void SetResourceType(const LifecyclePolicyResourceType &value)
LifecyclePolicy & WithDateCreated(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetDateLastRun() const
LifecyclePolicy & WithName(const Aws::String &value)
LifecyclePolicy & WithResourceSelection(const LifecyclePolicyResourceSelection &value)
LifecyclePolicy & AddPolicyDetails(const LifecyclePolicyDetail &value)
bool DateLastRunHasBeenSet() const
AWS_IMAGEBUILDER_API LifecyclePolicy()
void SetExecutionRole(const char *value)
LifecyclePolicy & WithDateCreated(const Aws::Utils::DateTime &value)
LifecyclePolicy & WithDescription(const Aws::String &value)
LifecyclePolicy & WithDateLastRun(Aws::Utils::DateTime &&value)
LifecyclePolicy & WithPolicyDetails(const Aws::Vector< LifecyclePolicyDetail > &value)
LifecyclePolicy & WithArn(const Aws::String &value)
LifecyclePolicy & AddTags(const Aws::String &key, const Aws::String &value)
LifecyclePolicy & WithDateUpdated(Aws::Utils::DateTime &&value)
LifecyclePolicy & WithName(const char *value)
LifecyclePolicy & WithExecutionRole(const char *value)
void SetResourceSelection(const LifecyclePolicyResourceSelection &value)
bool ExecutionRoleHasBeenSet() const
LifecyclePolicy & WithArn(const char *value)
const LifecyclePolicyResourceType & GetResourceType() const
LifecyclePolicy & WithResourceType(LifecyclePolicyResourceType &&value)
LifecyclePolicy & WithStatus(LifecyclePolicyStatus &&value)
bool NameHasBeenSet() const
LifecyclePolicy & WithDescription(const char *value)
const Aws::Utils::DateTime & GetDateCreated() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetExecutionRole(Aws::String &&value)
void SetResourceSelection(LifecyclePolicyResourceSelection &&value)
void SetPolicyDetails(Aws::Vector< LifecyclePolicyDetail > &&value)
LifecyclePolicy & WithArn(Aws::String &&value)
LifecyclePolicyResourceType
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