AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateLaunchConfigurationTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/MgnRequest.h>
9#include <aws/mgn/Mgn_EXPORTS.h>
10#include <aws/mgn/model/BootMode.h>
11#include <aws/mgn/model/LaunchDisposition.h>
12#include <aws/mgn/model/LaunchTemplateDiskConf.h>
13#include <aws/mgn/model/Licensing.h>
14#include <aws/mgn/model/PostLaunchActions.h>
15#include <aws/mgn/model/TargetInstanceTypeRightSizingMethod.h>
16
17#include <utility>
18
19namespace Aws {
20namespace mgn {
21namespace Model {
22
26 public:
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 "UpdateLaunchConfigurationTemplate"; }
34
35 AWS_MGN_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetLaunchConfigurationTemplateID() const { return m_launchConfigurationTemplateID; }
42 inline bool LaunchConfigurationTemplateIDHasBeenSet() const { return m_launchConfigurationTemplateIDHasBeenSet; }
43 template <typename LaunchConfigurationTemplateIDT = Aws::String>
44 void SetLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT&& value) {
45 m_launchConfigurationTemplateIDHasBeenSet = true;
46 m_launchConfigurationTemplateID = std::forward<LaunchConfigurationTemplateIDT>(value);
47 }
48 template <typename LaunchConfigurationTemplateIDT = Aws::String>
50 SetLaunchConfigurationTemplateID(std::forward<LaunchConfigurationTemplateIDT>(value));
51 return *this;
52 }
54
56
59 inline const PostLaunchActions& GetPostLaunchActions() const { return m_postLaunchActions; }
60 inline bool PostLaunchActionsHasBeenSet() const { return m_postLaunchActionsHasBeenSet; }
61 template <typename PostLaunchActionsT = PostLaunchActions>
62 void SetPostLaunchActions(PostLaunchActionsT&& value) {
63 m_postLaunchActionsHasBeenSet = true;
64 m_postLaunchActions = std::forward<PostLaunchActionsT>(value);
65 }
66 template <typename PostLaunchActionsT = PostLaunchActions>
68 SetPostLaunchActions(std::forward<PostLaunchActionsT>(value));
69 return *this;
70 }
72
74
77 inline bool GetEnableMapAutoTagging() const { return m_enableMapAutoTagging; }
78 inline bool EnableMapAutoTaggingHasBeenSet() const { return m_enableMapAutoTaggingHasBeenSet; }
79 inline void SetEnableMapAutoTagging(bool value) {
80 m_enableMapAutoTaggingHasBeenSet = true;
81 m_enableMapAutoTagging = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::String& GetMapAutoTaggingMpeID() const { return m_mapAutoTaggingMpeID; }
94 inline bool MapAutoTaggingMpeIDHasBeenSet() const { return m_mapAutoTaggingMpeIDHasBeenSet; }
95 template <typename MapAutoTaggingMpeIDT = Aws::String>
96 void SetMapAutoTaggingMpeID(MapAutoTaggingMpeIDT&& value) {
97 m_mapAutoTaggingMpeIDHasBeenSet = true;
98 m_mapAutoTaggingMpeID = std::forward<MapAutoTaggingMpeIDT>(value);
99 }
100 template <typename MapAutoTaggingMpeIDT = Aws::String>
102 SetMapAutoTaggingMpeID(std::forward<MapAutoTaggingMpeIDT>(value));
103 return *this;
104 }
106
108
111 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
112 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
114 m_launchDispositionHasBeenSet = true;
115 m_launchDisposition = value;
116 }
119 return *this;
120 }
122
124
128 return m_targetInstanceTypeRightSizingMethod;
129 }
130 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
132 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
133 m_targetInstanceTypeRightSizingMethod = value;
134 }
137 return *this;
138 }
140
142
145 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
146 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
147 inline void SetCopyPrivateIp(bool value) {
148 m_copyPrivateIpHasBeenSet = true;
149 m_copyPrivateIp = value;
150 }
152 SetCopyPrivateIp(value);
153 return *this;
154 }
156
158
161 inline bool GetAssociatePublicIpAddress() const { return m_associatePublicIpAddress; }
162 inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; }
163 inline void SetAssociatePublicIpAddress(bool value) {
164 m_associatePublicIpAddressHasBeenSet = true;
165 m_associatePublicIpAddress = value;
166 }
169 return *this;
170 }
172
174
177 inline bool GetCopyTags() const { return m_copyTags; }
178 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
179 inline void SetCopyTags(bool value) {
180 m_copyTagsHasBeenSet = true;
181 m_copyTags = value;
182 }
184 SetCopyTags(value);
185 return *this;
186 }
188
190
191 inline const Licensing& GetLicensing() const { return m_licensing; }
192 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
193 template <typename LicensingT = Licensing>
194 void SetLicensing(LicensingT&& value) {
195 m_licensingHasBeenSet = true;
196 m_licensing = std::forward<LicensingT>(value);
197 }
198 template <typename LicensingT = Licensing>
200 SetLicensing(std::forward<LicensingT>(value));
201 return *this;
202 }
204
206
209 inline BootMode GetBootMode() const { return m_bootMode; }
210 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
211 inline void SetBootMode(BootMode value) {
212 m_bootModeHasBeenSet = true;
213 m_bootMode = value;
214 }
216 SetBootMode(value);
217 return *this;
218 }
220
222
225 inline long long GetSmallVolumeMaxSize() const { return m_smallVolumeMaxSize; }
226 inline bool SmallVolumeMaxSizeHasBeenSet() const { return m_smallVolumeMaxSizeHasBeenSet; }
227 inline void SetSmallVolumeMaxSize(long long value) {
228 m_smallVolumeMaxSizeHasBeenSet = true;
229 m_smallVolumeMaxSize = value;
230 }
233 return *this;
234 }
236
238
241 inline const LaunchTemplateDiskConf& GetSmallVolumeConf() const { return m_smallVolumeConf; }
242 inline bool SmallVolumeConfHasBeenSet() const { return m_smallVolumeConfHasBeenSet; }
243 template <typename SmallVolumeConfT = LaunchTemplateDiskConf>
244 void SetSmallVolumeConf(SmallVolumeConfT&& value) {
245 m_smallVolumeConfHasBeenSet = true;
246 m_smallVolumeConf = std::forward<SmallVolumeConfT>(value);
247 }
248 template <typename SmallVolumeConfT = LaunchTemplateDiskConf>
250 SetSmallVolumeConf(std::forward<SmallVolumeConfT>(value));
251 return *this;
252 }
254
256
259 inline const LaunchTemplateDiskConf& GetLargeVolumeConf() const { return m_largeVolumeConf; }
260 inline bool LargeVolumeConfHasBeenSet() const { return m_largeVolumeConfHasBeenSet; }
261 template <typename LargeVolumeConfT = LaunchTemplateDiskConf>
262 void SetLargeVolumeConf(LargeVolumeConfT&& value) {
263 m_largeVolumeConfHasBeenSet = true;
264 m_largeVolumeConf = std::forward<LargeVolumeConfT>(value);
265 }
266 template <typename LargeVolumeConfT = LaunchTemplateDiskConf>
268 SetLargeVolumeConf(std::forward<LargeVolumeConfT>(value));
269 return *this;
270 }
272
274
277 inline bool GetEnableParametersEncryption() const { return m_enableParametersEncryption; }
278 inline bool EnableParametersEncryptionHasBeenSet() const { return m_enableParametersEncryptionHasBeenSet; }
279 inline void SetEnableParametersEncryption(bool value) {
280 m_enableParametersEncryptionHasBeenSet = true;
281 m_enableParametersEncryption = value;
282 }
285 return *this;
286 }
288
290
293 inline const Aws::String& GetParametersEncryptionKey() const { return m_parametersEncryptionKey; }
294 inline bool ParametersEncryptionKeyHasBeenSet() const { return m_parametersEncryptionKeyHasBeenSet; }
295 template <typename ParametersEncryptionKeyT = Aws::String>
296 void SetParametersEncryptionKey(ParametersEncryptionKeyT&& value) {
297 m_parametersEncryptionKeyHasBeenSet = true;
298 m_parametersEncryptionKey = std::forward<ParametersEncryptionKeyT>(value);
299 }
300 template <typename ParametersEncryptionKeyT = Aws::String>
302 SetParametersEncryptionKey(std::forward<ParametersEncryptionKeyT>(value));
303 return *this;
304 }
306 private:
307 Aws::String m_launchConfigurationTemplateID;
308
309 PostLaunchActions m_postLaunchActions;
310
311 bool m_enableMapAutoTagging{false};
312
313 Aws::String m_mapAutoTaggingMpeID;
314
316
318
319 bool m_copyPrivateIp{false};
320
321 bool m_associatePublicIpAddress{false};
322
323 bool m_copyTags{false};
324
325 Licensing m_licensing;
326
327 BootMode m_bootMode{BootMode::NOT_SET};
328
329 long long m_smallVolumeMaxSize{0};
330
331 LaunchTemplateDiskConf m_smallVolumeConf;
332
333 LaunchTemplateDiskConf m_largeVolumeConf;
334
335 bool m_enableParametersEncryption{false};
336
337 Aws::String m_parametersEncryptionKey;
338 bool m_launchConfigurationTemplateIDHasBeenSet = false;
339 bool m_postLaunchActionsHasBeenSet = false;
340 bool m_enableMapAutoTaggingHasBeenSet = false;
341 bool m_mapAutoTaggingMpeIDHasBeenSet = false;
342 bool m_launchDispositionHasBeenSet = false;
343 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
344 bool m_copyPrivateIpHasBeenSet = false;
345 bool m_associatePublicIpAddressHasBeenSet = false;
346 bool m_copyTagsHasBeenSet = false;
347 bool m_licensingHasBeenSet = false;
348 bool m_bootModeHasBeenSet = false;
349 bool m_smallVolumeMaxSizeHasBeenSet = false;
350 bool m_smallVolumeConfHasBeenSet = false;
351 bool m_largeVolumeConfHasBeenSet = false;
352 bool m_enableParametersEncryptionHasBeenSet = false;
353 bool m_parametersEncryptionKeyHasBeenSet = false;
354};
355
356} // namespace Model
357} // namespace mgn
358} // namespace Aws
UpdateLaunchConfigurationTemplateRequest & WithLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT &&value)
UpdateLaunchConfigurationTemplateRequest & WithAssociatePublicIpAddress(bool value)
UpdateLaunchConfigurationTemplateRequest & WithBootMode(BootMode value)
UpdateLaunchConfigurationTemplateRequest & WithSmallVolumeConf(SmallVolumeConfT &&value)
UpdateLaunchConfigurationTemplateRequest & WithLicensing(LicensingT &&value)
AWS_MGN_API Aws::String SerializePayload() const override
UpdateLaunchConfigurationTemplateRequest & WithLaunchDisposition(LaunchDisposition value)
UpdateLaunchConfigurationTemplateRequest & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationTemplateRequest & WithCopyPrivateIp(bool value)
UpdateLaunchConfigurationTemplateRequest & WithLargeVolumeConf(LargeVolumeConfT &&value)
UpdateLaunchConfigurationTemplateRequest & WithEnableParametersEncryption(bool value)
UpdateLaunchConfigurationTemplateRequest & WithParametersEncryptionKey(ParametersEncryptionKeyT &&value)
UpdateLaunchConfigurationTemplateRequest & WithCopyTags(bool value)
UpdateLaunchConfigurationTemplateRequest & WithPostLaunchActions(PostLaunchActionsT &&value)
UpdateLaunchConfigurationTemplateRequest & WithMapAutoTaggingMpeID(MapAutoTaggingMpeIDT &&value)
UpdateLaunchConfigurationTemplateRequest & WithSmallVolumeMaxSize(long long value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationTemplateRequest & WithEnableMapAutoTagging(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String