7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/imagebuilder/ImagebuilderRequest.h>
11#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
12#include <aws/imagebuilder/model/LifecyclePolicyDetail.h>
13#include <aws/imagebuilder/model/LifecyclePolicyResourceSelection.h>
14#include <aws/imagebuilder/model/LifecyclePolicyResourceType.h>
15#include <aws/imagebuilder/model/LifecyclePolicyStatus.h>
20namespace imagebuilder {
43 template <
typename LifecyclePolicyArnT = Aws::String>
45 m_lifecyclePolicyArnHasBeenSet =
true;
46 m_lifecyclePolicyArn = std::forward<LifecyclePolicyArnT>(value);
48 template <
typename LifecyclePolicyArnT = Aws::String>
63 template <
typename DescriptionT = Aws::String>
65 m_descriptionHasBeenSet =
true;
66 m_description = std::forward<DescriptionT>(value);
68 template <
typename DescriptionT = Aws::String>
84 m_statusHasBeenSet =
true;
100 template <
typename ExecutionRoleT = Aws::String>
102 m_executionRoleHasBeenSet =
true;
103 m_executionRole = std::forward<ExecutionRoleT>(value);
105 template <
typename ExecutionRoleT = Aws::String>
121 m_resourceTypeHasBeenSet =
true;
122 m_resourceType = value;
136 template <
typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
138 m_policyDetailsHasBeenSet =
true;
139 m_policyDetails = std::forward<PolicyDetailsT>(value);
141 template <
typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
146 template <
typename PolicyDetailsT = LifecyclePolicyDetail>
148 m_policyDetailsHasBeenSet =
true;
149 m_policyDetails.emplace_back(std::forward<PolicyDetailsT>(value));
162 template <
typename ResourceSelectionT = LifecyclePolicyResourceSelection>
164 m_resourceSelectionHasBeenSet =
true;
165 m_resourceSelection = std::forward<ResourceSelectionT>(value);
167 template <
typename ResourceSelectionT = LifecyclePolicyResourceSelection>
185 template <
typename ClientTokenT = Aws::String>
187 m_clientTokenHasBeenSet =
true;
188 m_clientToken = std::forward<ClientTokenT>(value);
190 template <
typename ClientTokenT = Aws::String>
209 LifecyclePolicyResourceSelection m_resourceSelection;
212 bool m_lifecyclePolicyArnHasBeenSet =
false;
213 bool m_descriptionHasBeenSet =
false;
214 bool m_statusHasBeenSet =
false;
215 bool m_executionRoleHasBeenSet =
false;
216 bool m_resourceTypeHasBeenSet =
false;
217 bool m_policyDetailsHasBeenSet =
false;
218 bool m_resourceSelectionHasBeenSet =
false;
219 bool m_clientTokenHasBeenSet =
true;
static Aws::Utils::UUID PseudoRandomUUID()
UpdateLifecyclePolicyRequest & WithStatus(LifecyclePolicyStatus value)
bool DescriptionHasBeenSet() const
bool ExecutionRoleHasBeenSet() const
bool ClientTokenHasBeenSet() const
const Aws::String & GetExecutionRole() const
UpdateLifecyclePolicyRequest & WithLifecyclePolicyArn(LifecyclePolicyArnT &&value)
UpdateLifecyclePolicyRequest & AddPolicyDetails(PolicyDetailsT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
bool StatusHasBeenSet() const
UpdateLifecyclePolicyRequest & WithResourceType(LifecyclePolicyResourceType value)
void SetDescription(DescriptionT &&value)
bool PolicyDetailsHasBeenSet() const
UpdateLifecyclePolicyRequest & WithPolicyDetails(PolicyDetailsT &&value)
AWS_IMAGEBUILDER_API UpdateLifecyclePolicyRequest()=default
bool ResourceTypeHasBeenSet() const
bool ResourceSelectionHasBeenSet() const
UpdateLifecyclePolicyRequest & WithDescription(DescriptionT &&value)
const LifecyclePolicyResourceSelection & GetResourceSelection() const
void SetStatus(LifecyclePolicyStatus value)
const Aws::String & GetLifecyclePolicyArn() const
void SetResourceType(LifecyclePolicyResourceType value)
void SetResourceSelection(ResourceSelectionT &&value)
UpdateLifecyclePolicyRequest & WithExecutionRole(ExecutionRoleT &&value)
void SetLifecyclePolicyArn(LifecyclePolicyArnT &&value)
void SetPolicyDetails(PolicyDetailsT &&value)
const Aws::String & GetDescription() const
UpdateLifecyclePolicyRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< LifecyclePolicyDetail > & GetPolicyDetails() const
const Aws::String & GetClientToken() const
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
UpdateLifecyclePolicyRequest & WithResourceSelection(ResourceSelectionT &&value)
bool LifecyclePolicyArnHasBeenSet() const
void SetClientToken(ClientTokenT &&value)
LifecyclePolicyStatus GetStatus() const
LifecyclePolicyResourceType GetResourceType() const
LifecyclePolicyResourceType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector