7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/imagebuilder/ImagebuilderRequest.h>
12#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
13#include <aws/imagebuilder/model/LifecyclePolicyDetail.h>
14#include <aws/imagebuilder/model/LifecyclePolicyResourceSelection.h>
15#include <aws/imagebuilder/model/LifecyclePolicyResourceType.h>
16#include <aws/imagebuilder/model/LifecyclePolicyStatus.h>
21namespace imagebuilder {
44 template <
typename NameT = Aws::String>
46 m_nameHasBeenSet =
true;
47 m_name = std::forward<NameT>(value);
49 template <
typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
62 template <
typename DescriptionT = Aws::String>
64 m_descriptionHasBeenSet =
true;
65 m_description = std::forward<DescriptionT>(value);
67 template <
typename DescriptionT = Aws::String>
81 m_statusHasBeenSet =
true;
97 template <
typename ExecutionRoleT = Aws::String>
99 m_executionRoleHasBeenSet =
true;
100 m_executionRole = std::forward<ExecutionRoleT>(value);
102 template <
typename ExecutionRoleT = Aws::String>
116 m_resourceTypeHasBeenSet =
true;
117 m_resourceType = value;
131 template <
typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
133 m_policyDetailsHasBeenSet =
true;
134 m_policyDetails = std::forward<PolicyDetailsT>(value);
136 template <
typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
141 template <
typename PolicyDetailsT = LifecyclePolicyDetail>
143 m_policyDetailsHasBeenSet =
true;
144 m_policyDetails.emplace_back(std::forward<PolicyDetailsT>(value));
156 template <
typename ResourceSelectionT = LifecyclePolicyResourceSelection>
158 m_resourceSelectionHasBeenSet =
true;
159 m_resourceSelection = std::forward<ResourceSelectionT>(value);
161 template <
typename ResourceSelectionT = LifecyclePolicyResourceSelection>
174 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 m_tagsHasBeenSet =
true;
177 m_tags = std::forward<TagsT>(value);
179 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 SetTags(std::forward<TagsT>(value));
184 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
186 m_tagsHasBeenSet =
true;
187 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
201 template <
typename ClientTokenT = Aws::String>
203 m_clientTokenHasBeenSet =
true;
204 m_clientToken = std::forward<ClientTokenT>(value);
206 template <
typename ClientTokenT = Aws::String>
225 LifecyclePolicyResourceSelection m_resourceSelection;
230 bool m_nameHasBeenSet =
false;
231 bool m_descriptionHasBeenSet =
false;
232 bool m_statusHasBeenSet =
false;
233 bool m_executionRoleHasBeenSet =
false;
234 bool m_resourceTypeHasBeenSet =
false;
235 bool m_policyDetailsHasBeenSet =
false;
236 bool m_resourceSelectionHasBeenSet =
false;
237 bool m_tagsHasBeenSet =
false;
238 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