7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/imagebuilder/model/LifecyclePolicyStatus.h>
11#include <aws/imagebuilder/model/LifecyclePolicyResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/imagebuilder/model/LifecyclePolicyResourceSelection.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/imagebuilder/model/LifecyclePolicyDetail.h>
17#include <aws/core/utils/UUID.h>
48 template<
typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
50 template<
typename NameT = Aws::String>
60 template<
typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
62 template<
typename DescriptionT = Aws::String>
83 template<
typename ExecutionRoleT = Aws::String>
84 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet =
true; m_executionRole = std::forward<ExecutionRoleT>(value); }
85 template<
typename ExecutionRoleT = Aws::String>
105 template<
typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
106 void SetPolicyDetails(PolicyDetailsT&& value) { m_policyDetailsHasBeenSet =
true; m_policyDetails = std::forward<PolicyDetailsT>(value); }
107 template<
typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
109 template<
typename PolicyDetailsT = LifecyclePolicyDetail>
120 template<
typename ResourceSelectionT = LifecyclePolicyResourceSelection>
121 void SetResourceSelection(ResourceSelectionT&& value) { m_resourceSelectionHasBeenSet =
true; m_resourceSelection = std::forward<ResourceSelectionT>(value); }
122 template<
typename ResourceSelectionT = LifecyclePolicyResourceSelection>
132 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
134 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
138 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
151 template<
typename ClientTokenT = Aws::String>
152 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
153 template<
typename ClientTokenT = Aws::String>
159 bool m_nameHasBeenSet =
false;
162 bool m_descriptionHasBeenSet =
false;
165 bool m_statusHasBeenSet =
false;
168 bool m_executionRoleHasBeenSet =
false;
171 bool m_resourceTypeHasBeenSet =
false;
174 bool m_policyDetailsHasBeenSet =
false;
176 LifecyclePolicyResourceSelection m_resourceSelection;
177 bool m_resourceSelectionHasBeenSet =
false;
180 bool m_tagsHasBeenSet =
false;
183 bool m_clientTokenHasBeenSet =
true;
static Aws::Utils::UUID PseudoRandomUUID()
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLifecyclePolicyRequest & WithStatus(LifecyclePolicyStatus value)
void SetPolicyDetails(PolicyDetailsT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
const Aws::String & GetClientToken() const
void SetTags(TagsT &&value)
const Aws::String & GetExecutionRole() const
void SetClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
CreateLifecyclePolicyRequest & WithTags(TagsT &&value)
CreateLifecyclePolicyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateLifecyclePolicyRequest & WithPolicyDetails(PolicyDetailsT &&value)
const Aws::String & GetDescription() const
const LifecyclePolicyResourceSelection & GetResourceSelection() const
bool ClientTokenHasBeenSet() const
void SetDescription(DescriptionT &&value)
bool ExecutionRoleHasBeenSet() const
CreateLifecyclePolicyRequest & WithExecutionRole(ExecutionRoleT &&value)
bool TagsHasBeenSet() const
CreateLifecyclePolicyRequest & WithName(NameT &&value)
CreateLifecyclePolicyRequest & WithClientToken(ClientTokenT &&value)
bool StatusHasBeenSet() const
CreateLifecyclePolicyRequest & WithDescription(DescriptionT &&value)
bool DescriptionHasBeenSet() const
void SetResourceSelection(ResourceSelectionT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
const Aws::Vector< LifecyclePolicyDetail > & GetPolicyDetails() const
bool ResourceSelectionHasBeenSet() const
CreateLifecyclePolicyRequest & AddPolicyDetails(PolicyDetailsT &&value)
LifecyclePolicyResourceType GetResourceType() const
void SetResourceType(LifecyclePolicyResourceType value)
void SetName(NameT &&value)
const Aws::String & GetName() const
CreateLifecyclePolicyRequest & WithResourceType(LifecyclePolicyResourceType value)
void SetStatus(LifecyclePolicyStatus value)
AWS_IMAGEBUILDER_API CreateLifecyclePolicyRequest()=default
CreateLifecyclePolicyRequest & WithResourceSelection(ResourceSelectionT &&value)
LifecyclePolicyStatus GetStatus() const
bool PolicyDetailsHasBeenSet() const
bool ResourceTypeHasBeenSet() const
bool NameHasBeenSet() const
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