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>
61 template <
typename DescriptionT = Aws::String>
63 m_descriptionHasBeenSet =
true;
64 m_description = std::forward<DescriptionT>(value);
66 template <
typename DescriptionT = Aws::String>
80 m_statusHasBeenSet =
true;
96 template <
typename ExecutionRoleT = Aws::String>
98 m_executionRoleHasBeenSet =
true;
99 m_executionRole = std::forward<ExecutionRoleT>(value);
101 template <
typename ExecutionRoleT = Aws::String>
115 m_resourceTypeHasBeenSet =
true;
116 m_resourceType = value;
130 template <
typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
132 m_policyDetailsHasBeenSet =
true;
133 m_policyDetails = std::forward<PolicyDetailsT>(value);
135 template <
typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
140 template <
typename PolicyDetailsT = LifecyclePolicyDetail>
142 m_policyDetailsHasBeenSet =
true;
143 m_policyDetails.emplace_back(std::forward<PolicyDetailsT>(value));
154 template <
typename ResourceSelectionT = LifecyclePolicyResourceSelection>
156 m_resourceSelectionHasBeenSet =
true;
157 m_resourceSelection = std::forward<ResourceSelectionT>(value);
159 template <
typename ResourceSelectionT = LifecyclePolicyResourceSelection>
175 template <
typename ClientTokenT = Aws::String>
177 m_clientTokenHasBeenSet =
true;
178 m_clientToken = std::forward<ClientTokenT>(value);
180 template <
typename ClientTokenT = Aws::String>
199 LifecyclePolicyResourceSelection m_resourceSelection;
202 bool m_lifecyclePolicyArnHasBeenSet =
false;
203 bool m_descriptionHasBeenSet =
false;
204 bool m_statusHasBeenSet =
false;
205 bool m_executionRoleHasBeenSet =
false;
206 bool m_resourceTypeHasBeenSet =
false;
207 bool m_policyDetailsHasBeenSet =
false;
208 bool m_resourceSelectionHasBeenSet =
false;
209 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