AWS SDK for C++

AWS SDK for C++ Version 1.11.901

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
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
81 inline LifecyclePolicyStatus GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 inline void SetStatus(LifecyclePolicyStatus value) {
84 m_statusHasBeenSet = true;
85 m_status = value;
86 }
88 SetStatus(value);
89 return *this;
90 }
92
94
98 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
99 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
100 template <typename ExecutionRoleT = Aws::String>
101 void SetExecutionRole(ExecutionRoleT&& value) {
102 m_executionRoleHasBeenSet = true;
103 m_executionRole = std::forward<ExecutionRoleT>(value);
104 }
105 template <typename ExecutionRoleT = Aws::String>
107 SetExecutionRole(std::forward<ExecutionRoleT>(value));
108 return *this;
109 }
111
113
118 inline LifecyclePolicyResourceType GetResourceType() const { return m_resourceType; }
119 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
121 m_resourceTypeHasBeenSet = true;
122 m_resourceType = value;
123 }
125 SetResourceType(value);
126 return *this;
127 }
129
131
134 inline const Aws::Vector<LifecyclePolicyDetail>& GetPolicyDetails() const { return m_policyDetails; }
135 inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
136 template <typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
137 void SetPolicyDetails(PolicyDetailsT&& value) {
138 m_policyDetailsHasBeenSet = true;
139 m_policyDetails = std::forward<PolicyDetailsT>(value);
140 }
141 template <typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
143 SetPolicyDetails(std::forward<PolicyDetailsT>(value));
144 return *this;
145 }
146 template <typename PolicyDetailsT = LifecyclePolicyDetail>
148 m_policyDetailsHasBeenSet = true;
149 m_policyDetails.emplace_back(std::forward<PolicyDetailsT>(value));
150 return *this;
151 }
153
155
160 inline const LifecyclePolicyResourceSelection& GetResourceSelection() const { return m_resourceSelection; }
161 inline bool ResourceSelectionHasBeenSet() const { return m_resourceSelectionHasBeenSet; }
162 template <typename ResourceSelectionT = LifecyclePolicyResourceSelection>
163 void SetResourceSelection(ResourceSelectionT&& value) {
164 m_resourceSelectionHasBeenSet = true;
165 m_resourceSelection = std::forward<ResourceSelectionT>(value);
166 }
167 template <typename ResourceSelectionT = LifecyclePolicyResourceSelection>
169 SetResourceSelection(std::forward<ResourceSelectionT>(value));
170 return *this;
171 }
173
175
183 inline const Aws::String& GetClientToken() const { return m_clientToken; }
184 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
185 template <typename ClientTokenT = Aws::String>
186 void SetClientToken(ClientTokenT&& value) {
187 m_clientTokenHasBeenSet = true;
188 m_clientToken = std::forward<ClientTokenT>(value);
189 }
190 template <typename ClientTokenT = Aws::String>
192 SetClientToken(std::forward<ClientTokenT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_lifecyclePolicyArn;
198
199 Aws::String m_description;
200
202
203 Aws::String m_executionRole;
204
206
208
209 LifecyclePolicyResourceSelection m_resourceSelection;
210
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;
220};
221
222} // namespace Model
223} // namespace imagebuilder
224} // 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