AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateLifecyclePolicyRequest.h
1
6#pragma once
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>
16
17#include <utility>
18
19namespace Aws {
20namespace imagebuilder {
21namespace Model {
22
26 public:
27 AWS_IMAGEBUILDER_API UpdateLifecyclePolicyRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateLifecyclePolicy"; }
34
35 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetLifecyclePolicyArn() const { return m_lifecyclePolicyArn; }
42 inline bool LifecyclePolicyArnHasBeenSet() const { return m_lifecyclePolicyArnHasBeenSet; }
43 template <typename LifecyclePolicyArnT = Aws::String>
44 void SetLifecyclePolicyArn(LifecyclePolicyArnT&& value) {
45 m_lifecyclePolicyArnHasBeenSet = true;
46 m_lifecyclePolicyArn = std::forward<LifecyclePolicyArnT>(value);
47 }
48 template <typename LifecyclePolicyArnT = Aws::String>
50 SetLifecyclePolicyArn(std::forward<LifecyclePolicyArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline LifecyclePolicyStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(LifecyclePolicyStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
95 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
96 template <typename ExecutionRoleT = Aws::String>
97 void SetExecutionRole(ExecutionRoleT&& value) {
98 m_executionRoleHasBeenSet = true;
99 m_executionRole = std::forward<ExecutionRoleT>(value);
100 }
101 template <typename ExecutionRoleT = Aws::String>
103 SetExecutionRole(std::forward<ExecutionRoleT>(value));
104 return *this;
105 }
107
109
112 inline LifecyclePolicyResourceType GetResourceType() const { return m_resourceType; }
113 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
115 m_resourceTypeHasBeenSet = true;
116 m_resourceType = value;
117 }
119 SetResourceType(value);
120 return *this;
121 }
123
125
128 inline const Aws::Vector<LifecyclePolicyDetail>& GetPolicyDetails() const { return m_policyDetails; }
129 inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
130 template <typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
131 void SetPolicyDetails(PolicyDetailsT&& value) {
132 m_policyDetailsHasBeenSet = true;
133 m_policyDetails = std::forward<PolicyDetailsT>(value);
134 }
135 template <typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
137 SetPolicyDetails(std::forward<PolicyDetailsT>(value));
138 return *this;
139 }
140 template <typename PolicyDetailsT = LifecyclePolicyDetail>
142 m_policyDetailsHasBeenSet = true;
143 m_policyDetails.emplace_back(std::forward<PolicyDetailsT>(value));
144 return *this;
145 }
147
149
152 inline const LifecyclePolicyResourceSelection& GetResourceSelection() const { return m_resourceSelection; }
153 inline bool ResourceSelectionHasBeenSet() const { return m_resourceSelectionHasBeenSet; }
154 template <typename ResourceSelectionT = LifecyclePolicyResourceSelection>
155 void SetResourceSelection(ResourceSelectionT&& value) {
156 m_resourceSelectionHasBeenSet = true;
157 m_resourceSelection = std::forward<ResourceSelectionT>(value);
158 }
159 template <typename ResourceSelectionT = LifecyclePolicyResourceSelection>
161 SetResourceSelection(std::forward<ResourceSelectionT>(value));
162 return *this;
163 }
165
167
173 inline const Aws::String& GetClientToken() const { return m_clientToken; }
174 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
175 template <typename ClientTokenT = Aws::String>
176 void SetClientToken(ClientTokenT&& value) {
177 m_clientTokenHasBeenSet = true;
178 m_clientToken = std::forward<ClientTokenT>(value);
179 }
180 template <typename ClientTokenT = Aws::String>
182 SetClientToken(std::forward<ClientTokenT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_lifecyclePolicyArn;
188
189 Aws::String m_description;
190
192
193 Aws::String m_executionRole;
194
196
198
199 LifecyclePolicyResourceSelection m_resourceSelection;
200
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;
210};
211
212} // namespace Model
213} // namespace imagebuilder
214} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
UpdateLifecyclePolicyRequest & WithStatus(LifecyclePolicyStatus value)
UpdateLifecyclePolicyRequest & WithLifecyclePolicyArn(LifecyclePolicyArnT &&value)
UpdateLifecyclePolicyRequest & AddPolicyDetails(PolicyDetailsT &&value)
UpdateLifecyclePolicyRequest & WithResourceType(LifecyclePolicyResourceType value)
UpdateLifecyclePolicyRequest & WithPolicyDetails(PolicyDetailsT &&value)
AWS_IMAGEBUILDER_API UpdateLifecyclePolicyRequest()=default
UpdateLifecyclePolicyRequest & WithDescription(DescriptionT &&value)
const LifecyclePolicyResourceSelection & GetResourceSelection() const
UpdateLifecyclePolicyRequest & WithExecutionRole(ExecutionRoleT &&value)
UpdateLifecyclePolicyRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< LifecyclePolicyDetail > & GetPolicyDetails() const
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
UpdateLifecyclePolicyRequest & WithResourceSelection(ResourceSelectionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector