AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateLaunchConfigurationTemplateResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.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 {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace mgn {
29namespace Model {
31 public:
35
37
40 inline const Aws::String& GetLaunchConfigurationTemplateID() const { return m_launchConfigurationTemplateID; }
41 template <typename LaunchConfigurationTemplateIDT = Aws::String>
42 void SetLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT&& value) {
43 m_launchConfigurationTemplateIDHasBeenSet = true;
44 m_launchConfigurationTemplateID = std::forward<LaunchConfigurationTemplateIDT>(value);
45 }
46 template <typename LaunchConfigurationTemplateIDT = Aws::String>
48 SetLaunchConfigurationTemplateID(std::forward<LaunchConfigurationTemplateIDT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetArn() const { return m_arn; }
58 template <typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) {
60 m_arnHasBeenSet = true;
61 m_arn = std::forward<ArnT>(value);
62 }
63 template <typename ArnT = Aws::String>
65 SetArn(std::forward<ArnT>(value));
66 return *this;
67 }
69
71
74 inline const PostLaunchActions& GetPostLaunchActions() const { return m_postLaunchActions; }
75 template <typename PostLaunchActionsT = PostLaunchActions>
76 void SetPostLaunchActions(PostLaunchActionsT&& value) {
77 m_postLaunchActionsHasBeenSet = true;
78 m_postLaunchActions = std::forward<PostLaunchActionsT>(value);
79 }
80 template <typename PostLaunchActionsT = PostLaunchActions>
82 SetPostLaunchActions(std::forward<PostLaunchActionsT>(value));
83 return *this;
84 }
86
88
91 inline bool GetEnableMapAutoTagging() const { return m_enableMapAutoTagging; }
92 inline void SetEnableMapAutoTagging(bool value) {
93 m_enableMapAutoTaggingHasBeenSet = true;
94 m_enableMapAutoTagging = value;
95 }
98 return *this;
99 }
101
103
106 inline const Aws::String& GetMapAutoTaggingMpeID() const { return m_mapAutoTaggingMpeID; }
107 template <typename MapAutoTaggingMpeIDT = Aws::String>
108 void SetMapAutoTaggingMpeID(MapAutoTaggingMpeIDT&& value) {
109 m_mapAutoTaggingMpeIDHasBeenSet = true;
110 m_mapAutoTaggingMpeID = std::forward<MapAutoTaggingMpeIDT>(value);
111 }
112 template <typename MapAutoTaggingMpeIDT = Aws::String>
114 SetMapAutoTaggingMpeID(std::forward<MapAutoTaggingMpeIDT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetTags(TagsT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags = std::forward<TagsT>(value);
128 }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 SetTags(std::forward<TagsT>(value));
132 return *this;
133 }
134 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 UpdateLaunchConfigurationTemplateResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetEc2LaunchTemplateID() const { return m_ec2LaunchTemplateID; }
147 template <typename Ec2LaunchTemplateIDT = Aws::String>
148 void SetEc2LaunchTemplateID(Ec2LaunchTemplateIDT&& value) {
149 m_ec2LaunchTemplateIDHasBeenSet = true;
150 m_ec2LaunchTemplateID = std::forward<Ec2LaunchTemplateIDT>(value);
151 }
152 template <typename Ec2LaunchTemplateIDT = Aws::String>
154 SetEc2LaunchTemplateID(std::forward<Ec2LaunchTemplateIDT>(value));
155 return *this;
156 }
158
160
163 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
165 m_launchDispositionHasBeenSet = true;
166 m_launchDisposition = value;
167 }
170 return *this;
171 }
173
175
179 return m_targetInstanceTypeRightSizingMethod;
180 }
182 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
183 m_targetInstanceTypeRightSizingMethod = value;
184 }
187 return *this;
188 }
190
192
195 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
196 inline void SetCopyPrivateIp(bool value) {
197 m_copyPrivateIpHasBeenSet = true;
198 m_copyPrivateIp = value;
199 }
201 SetCopyPrivateIp(value);
202 return *this;
203 }
205
207
210 inline bool GetAssociatePublicIpAddress() const { return m_associatePublicIpAddress; }
211 inline void SetAssociatePublicIpAddress(bool value) {
212 m_associatePublicIpAddressHasBeenSet = true;
213 m_associatePublicIpAddress = value;
214 }
217 return *this;
218 }
220
222
225 inline bool GetCopyTags() const { return m_copyTags; }
226 inline void SetCopyTags(bool value) {
227 m_copyTagsHasBeenSet = true;
228 m_copyTags = value;
229 }
231 SetCopyTags(value);
232 return *this;
233 }
235
237
238 inline const Licensing& GetLicensing() const { return m_licensing; }
239 template <typename LicensingT = Licensing>
240 void SetLicensing(LicensingT&& value) {
241 m_licensingHasBeenSet = true;
242 m_licensing = std::forward<LicensingT>(value);
243 }
244 template <typename LicensingT = Licensing>
246 SetLicensing(std::forward<LicensingT>(value));
247 return *this;
248 }
250
252
255 inline BootMode GetBootMode() const { return m_bootMode; }
256 inline void SetBootMode(BootMode value) {
257 m_bootModeHasBeenSet = true;
258 m_bootMode = value;
259 }
261 SetBootMode(value);
262 return *this;
263 }
265
267
270 inline long long GetSmallVolumeMaxSize() const { return m_smallVolumeMaxSize; }
271 inline void SetSmallVolumeMaxSize(long long value) {
272 m_smallVolumeMaxSizeHasBeenSet = true;
273 m_smallVolumeMaxSize = value;
274 }
277 return *this;
278 }
280
282
285 inline const LaunchTemplateDiskConf& GetSmallVolumeConf() const { return m_smallVolumeConf; }
286 template <typename SmallVolumeConfT = LaunchTemplateDiskConf>
287 void SetSmallVolumeConf(SmallVolumeConfT&& value) {
288 m_smallVolumeConfHasBeenSet = true;
289 m_smallVolumeConf = std::forward<SmallVolumeConfT>(value);
290 }
291 template <typename SmallVolumeConfT = LaunchTemplateDiskConf>
293 SetSmallVolumeConf(std::forward<SmallVolumeConfT>(value));
294 return *this;
295 }
297
299
302 inline const LaunchTemplateDiskConf& GetLargeVolumeConf() const { return m_largeVolumeConf; }
303 template <typename LargeVolumeConfT = LaunchTemplateDiskConf>
304 void SetLargeVolumeConf(LargeVolumeConfT&& value) {
305 m_largeVolumeConfHasBeenSet = true;
306 m_largeVolumeConf = std::forward<LargeVolumeConfT>(value);
307 }
308 template <typename LargeVolumeConfT = LaunchTemplateDiskConf>
310 SetLargeVolumeConf(std::forward<LargeVolumeConfT>(value));
311 return *this;
312 }
314
316
319 inline bool GetEnableParametersEncryption() const { return m_enableParametersEncryption; }
320 inline void SetEnableParametersEncryption(bool value) {
321 m_enableParametersEncryptionHasBeenSet = true;
322 m_enableParametersEncryption = value;
323 }
326 return *this;
327 }
329
331
334 inline const Aws::String& GetParametersEncryptionKey() const { return m_parametersEncryptionKey; }
335 template <typename ParametersEncryptionKeyT = Aws::String>
336 void SetParametersEncryptionKey(ParametersEncryptionKeyT&& value) {
337 m_parametersEncryptionKeyHasBeenSet = true;
338 m_parametersEncryptionKey = std::forward<ParametersEncryptionKeyT>(value);
339 }
340 template <typename ParametersEncryptionKeyT = Aws::String>
342 SetParametersEncryptionKey(std::forward<ParametersEncryptionKeyT>(value));
343 return *this;
344 }
346
348
349 inline const Aws::String& GetRequestId() const { return m_requestId; }
350 template <typename RequestIdT = Aws::String>
351 void SetRequestId(RequestIdT&& value) {
352 m_requestIdHasBeenSet = true;
353 m_requestId = std::forward<RequestIdT>(value);
354 }
355 template <typename RequestIdT = Aws::String>
357 SetRequestId(std::forward<RequestIdT>(value));
358 return *this;
359 }
361 private:
362 Aws::String m_launchConfigurationTemplateID;
363
364 Aws::String m_arn;
365
366 PostLaunchActions m_postLaunchActions;
367
368 bool m_enableMapAutoTagging{false};
369
370 Aws::String m_mapAutoTaggingMpeID;
371
373
374 Aws::String m_ec2LaunchTemplateID;
375
377
379
380 bool m_copyPrivateIp{false};
381
382 bool m_associatePublicIpAddress{false};
383
384 bool m_copyTags{false};
385
386 Licensing m_licensing;
387
388 BootMode m_bootMode{BootMode::NOT_SET};
389
390 long long m_smallVolumeMaxSize{0};
391
392 LaunchTemplateDiskConf m_smallVolumeConf;
393
394 LaunchTemplateDiskConf m_largeVolumeConf;
395
396 bool m_enableParametersEncryption{false};
397
398 Aws::String m_parametersEncryptionKey;
399
400 Aws::String m_requestId;
401 bool m_launchConfigurationTemplateIDHasBeenSet = false;
402 bool m_arnHasBeenSet = false;
403 bool m_postLaunchActionsHasBeenSet = false;
404 bool m_enableMapAutoTaggingHasBeenSet = false;
405 bool m_mapAutoTaggingMpeIDHasBeenSet = false;
406 bool m_tagsHasBeenSet = false;
407 bool m_ec2LaunchTemplateIDHasBeenSet = false;
408 bool m_launchDispositionHasBeenSet = false;
409 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
410 bool m_copyPrivateIpHasBeenSet = false;
411 bool m_associatePublicIpAddressHasBeenSet = false;
412 bool m_copyTagsHasBeenSet = false;
413 bool m_licensingHasBeenSet = false;
414 bool m_bootModeHasBeenSet = false;
415 bool m_smallVolumeMaxSizeHasBeenSet = false;
416 bool m_smallVolumeConfHasBeenSet = false;
417 bool m_largeVolumeConfHasBeenSet = false;
418 bool m_enableParametersEncryptionHasBeenSet = false;
419 bool m_parametersEncryptionKeyHasBeenSet = false;
420 bool m_requestIdHasBeenSet = false;
421};
422
423} // namespace Model
424} // namespace mgn
425} // namespace Aws
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationTemplateResult & WithAssociatePublicIpAddress(bool value)
UpdateLaunchConfigurationTemplateResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
UpdateLaunchConfigurationTemplateResult & WithLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT &&value)
UpdateLaunchConfigurationTemplateResult & WithLicensing(LicensingT &&value)
UpdateLaunchConfigurationTemplateResult & WithMapAutoTaggingMpeID(MapAutoTaggingMpeIDT &&value)
UpdateLaunchConfigurationTemplateResult & WithParametersEncryptionKey(ParametersEncryptionKeyT &&value)
UpdateLaunchConfigurationTemplateResult & WithCopyPrivateIp(bool value)
UpdateLaunchConfigurationTemplateResult & WithEc2LaunchTemplateID(Ec2LaunchTemplateIDT &&value)
UpdateLaunchConfigurationTemplateResult & WithCopyTags(bool value)
UpdateLaunchConfigurationTemplateResult & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationTemplateResult & WithEnableMapAutoTagging(bool value)
UpdateLaunchConfigurationTemplateResult & WithBootMode(BootMode value)
AWS_MGN_API UpdateLaunchConfigurationTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateLaunchConfigurationTemplateResult & WithLaunchDisposition(LaunchDisposition value)
UpdateLaunchConfigurationTemplateResult & WithArn(ArnT &&value)
AWS_MGN_API UpdateLaunchConfigurationTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateLaunchConfigurationTemplateResult & WithPostLaunchActions(PostLaunchActionsT &&value)
UpdateLaunchConfigurationTemplateResult & WithRequestId(RequestIdT &&value)
UpdateLaunchConfigurationTemplateResult & WithSmallVolumeConf(SmallVolumeConfT &&value)
UpdateLaunchConfigurationTemplateResult & WithLargeVolumeConf(LargeVolumeConfT &&value)
UpdateLaunchConfigurationTemplateResult & WithEnableParametersEncryption(bool value)
UpdateLaunchConfigurationTemplateResult & WithSmallVolumeMaxSize(long long value)
UpdateLaunchConfigurationTemplateResult & WithTags(TagsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue