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 {
48 template <
typename NameT = Aws::String>
50 m_nameHasBeenSet =
true;
51 m_name = std::forward<NameT>(value);
53 template <
typename NameT = Aws::String>
55 SetName(std::forward<NameT>(value));
66 template <
typename DescriptionT = Aws::String>
68 m_descriptionHasBeenSet =
true;
69 m_description = std::forward<DescriptionT>(value);
71 template <
typename DescriptionT = Aws::String>
87 m_statusHasBeenSet =
true;
105 template <
typename ExecutionRoleT = Aws::String>
107 m_executionRoleHasBeenSet =
true;
108 m_executionRole = std::forward<ExecutionRoleT>(value);
110 template <
typename ExecutionRoleT = Aws::String>
129 m_resourceTypeHasBeenSet =
true;
130 m_resourceType = value;
146 template <
typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
148 m_policyDetailsHasBeenSet =
true;
149 m_policyDetails = std::forward<PolicyDetailsT>(value);
151 template <
typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
156 template <
typename PolicyDetailsT = LifecyclePolicyDetail>
158 m_policyDetailsHasBeenSet =
true;
159 m_policyDetails.emplace_back(std::forward<PolicyDetailsT>(value));
172 template <
typename ResourceSelectionT = LifecyclePolicyResourceSelection>
174 m_resourceSelectionHasBeenSet =
true;
175 m_resourceSelection = std::forward<ResourceSelectionT>(value);
177 template <
typename ResourceSelectionT = LifecyclePolicyResourceSelection>
190 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
192 m_tagsHasBeenSet =
true;
193 m_tags = std::forward<TagsT>(value);
195 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 SetTags(std::forward<TagsT>(value));
200 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
202 m_tagsHasBeenSet =
true;
203 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
219 template <
typename ClientTokenT = Aws::String>
221 m_clientTokenHasBeenSet =
true;
222 m_clientToken = std::forward<ClientTokenT>(value);
224 template <
typename ClientTokenT = Aws::String>
240 m_dryRunHasBeenSet =
true;
261 LifecyclePolicyResourceSelection m_resourceSelection;
267 bool m_dryRun{
false};
268 bool m_nameHasBeenSet =
false;
269 bool m_descriptionHasBeenSet =
false;
270 bool m_statusHasBeenSet =
false;
271 bool m_executionRoleHasBeenSet =
false;
272 bool m_resourceTypeHasBeenSet =
false;
273 bool m_policyDetailsHasBeenSet =
false;
274 bool m_resourceSelectionHasBeenSet =
false;
275 bool m_tagsHasBeenSet =
false;
276 bool m_clientTokenHasBeenSet =
true;
277 bool m_dryRunHasBeenSet =
false;
static Aws::Utils::UUID PseudoRandomUUID()
bool DryRunHasBeenSet() const
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
void SetDryRun(bool value)
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
CreateLifecyclePolicyRequest & WithDryRun(bool value)
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