AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
UpdateLaunchConfigurationTemplateResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mgn/Mgn_EXPORTS.h>
11#include <aws/mgn/model/BootMode.h>
12#include <aws/mgn/model/LaunchDisposition.h>
13#include <aws/mgn/model/LaunchTemplateDiskConf.h>
14#include <aws/mgn/model/Licensing.h>
15#include <aws/mgn/model/PostLaunchActions.h>
16#include <aws/mgn/model/TargetInstanceTypeRightSizingMethod.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace mgn {
30namespace Model {
32 public:
36
38
41 inline const Aws::String& GetLaunchConfigurationTemplateID() const { return m_launchConfigurationTemplateID; }
42 template <typename LaunchConfigurationTemplateIDT = Aws::String>
43 void SetLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT&& value) {
44 m_launchConfigurationTemplateIDHasBeenSet = true;
45 m_launchConfigurationTemplateID = std::forward<LaunchConfigurationTemplateIDT>(value);
46 }
47 template <typename LaunchConfigurationTemplateIDT = Aws::String>
49 SetLaunchConfigurationTemplateID(std::forward<LaunchConfigurationTemplateIDT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 template <typename ArnT = Aws::String>
60 void SetArn(ArnT&& value) {
61 m_arnHasBeenSet = true;
62 m_arn = std::forward<ArnT>(value);
63 }
64 template <typename ArnT = Aws::String>
66 SetArn(std::forward<ArnT>(value));
67 return *this;
68 }
70
72
75 inline const PostLaunchActions& GetPostLaunchActions() const { return m_postLaunchActions; }
76 template <typename PostLaunchActionsT = PostLaunchActions>
77 void SetPostLaunchActions(PostLaunchActionsT&& value) {
78 m_postLaunchActionsHasBeenSet = true;
79 m_postLaunchActions = std::forward<PostLaunchActionsT>(value);
80 }
81 template <typename PostLaunchActionsT = PostLaunchActions>
83 SetPostLaunchActions(std::forward<PostLaunchActionsT>(value));
84 return *this;
85 }
87
89
92 inline bool GetEnableMapAutoTagging() const { return m_enableMapAutoTagging; }
93 inline void SetEnableMapAutoTagging(bool value) {
94 m_enableMapAutoTaggingHasBeenSet = true;
95 m_enableMapAutoTagging = value;
96 }
99 return *this;
100 }
102
104
107 inline const Aws::String& GetMapAutoTaggingMpeID() const { return m_mapAutoTaggingMpeID; }
108 template <typename MapAutoTaggingMpeIDT = Aws::String>
109 void SetMapAutoTaggingMpeID(MapAutoTaggingMpeIDT&& value) {
110 m_mapAutoTaggingMpeIDHasBeenSet = true;
111 m_mapAutoTaggingMpeID = std::forward<MapAutoTaggingMpeIDT>(value);
112 }
113 template <typename MapAutoTaggingMpeIDT = Aws::String>
115 SetMapAutoTaggingMpeID(std::forward<MapAutoTaggingMpeIDT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
125 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 void SetTags(TagsT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags = std::forward<TagsT>(value);
129 }
130 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 SetTags(std::forward<TagsT>(value));
133 return *this;
134 }
135 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
136 UpdateLaunchConfigurationTemplateResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetEc2LaunchTemplateID() const { return m_ec2LaunchTemplateID; }
148 template <typename Ec2LaunchTemplateIDT = Aws::String>
149 void SetEc2LaunchTemplateID(Ec2LaunchTemplateIDT&& value) {
150 m_ec2LaunchTemplateIDHasBeenSet = true;
151 m_ec2LaunchTemplateID = std::forward<Ec2LaunchTemplateIDT>(value);
152 }
153 template <typename Ec2LaunchTemplateIDT = Aws::String>
155 SetEc2LaunchTemplateID(std::forward<Ec2LaunchTemplateIDT>(value));
156 return *this;
157 }
159
161
164 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
166 m_launchDispositionHasBeenSet = true;
167 m_launchDisposition = value;
168 }
171 return *this;
172 }
174
176
180 return m_targetInstanceTypeRightSizingMethod;
181 }
183 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
184 m_targetInstanceTypeRightSizingMethod = value;
185 }
188 return *this;
189 }
191
193
196 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
197 inline void SetCopyPrivateIp(bool value) {
198 m_copyPrivateIpHasBeenSet = true;
199 m_copyPrivateIp = value;
200 }
202 SetCopyPrivateIp(value);
203 return *this;
204 }
206
208
211 inline bool GetAssociatePublicIpAddress() const { return m_associatePublicIpAddress; }
212 inline void SetAssociatePublicIpAddress(bool value) {
213 m_associatePublicIpAddressHasBeenSet = true;
214 m_associatePublicIpAddress = value;
215 }
218 return *this;
219 }
221
223
226 inline bool GetCopyTags() const { return m_copyTags; }
227 inline void SetCopyTags(bool value) {
228 m_copyTagsHasBeenSet = true;
229 m_copyTags = value;
230 }
232 SetCopyTags(value);
233 return *this;
234 }
236
238
239 inline const Licensing& GetLicensing() const { return m_licensing; }
240 template <typename LicensingT = Licensing>
241 void SetLicensing(LicensingT&& value) {
242 m_licensingHasBeenSet = true;
243 m_licensing = std::forward<LicensingT>(value);
244 }
245 template <typename LicensingT = Licensing>
247 SetLicensing(std::forward<LicensingT>(value));
248 return *this;
249 }
251
253
256 inline BootMode GetBootMode() const { return m_bootMode; }
257 inline void SetBootMode(BootMode value) {
258 m_bootModeHasBeenSet = true;
259 m_bootMode = value;
260 }
262 SetBootMode(value);
263 return *this;
264 }
266
268
271 inline long long GetSmallVolumeMaxSize() const { return m_smallVolumeMaxSize; }
272 inline void SetSmallVolumeMaxSize(long long value) {
273 m_smallVolumeMaxSizeHasBeenSet = true;
274 m_smallVolumeMaxSize = value;
275 }
278 return *this;
279 }
281
283
286 inline const LaunchTemplateDiskConf& GetSmallVolumeConf() const { return m_smallVolumeConf; }
287 template <typename SmallVolumeConfT = LaunchTemplateDiskConf>
288 void SetSmallVolumeConf(SmallVolumeConfT&& value) {
289 m_smallVolumeConfHasBeenSet = true;
290 m_smallVolumeConf = std::forward<SmallVolumeConfT>(value);
291 }
292 template <typename SmallVolumeConfT = LaunchTemplateDiskConf>
294 SetSmallVolumeConf(std::forward<SmallVolumeConfT>(value));
295 return *this;
296 }
298
300
303 inline const LaunchTemplateDiskConf& GetLargeVolumeConf() const { return m_largeVolumeConf; }
304 template <typename LargeVolumeConfT = LaunchTemplateDiskConf>
305 void SetLargeVolumeConf(LargeVolumeConfT&& value) {
306 m_largeVolumeConfHasBeenSet = true;
307 m_largeVolumeConf = std::forward<LargeVolumeConfT>(value);
308 }
309 template <typename LargeVolumeConfT = LaunchTemplateDiskConf>
311 SetLargeVolumeConf(std::forward<LargeVolumeConfT>(value));
312 return *this;
313 }
315
317
320 inline bool GetEnableParametersEncryption() const { return m_enableParametersEncryption; }
321 inline void SetEnableParametersEncryption(bool value) {
322 m_enableParametersEncryptionHasBeenSet = true;
323 m_enableParametersEncryption = value;
324 }
327 return *this;
328 }
330
332
335 inline const Aws::String& GetParametersEncryptionKey() const { return m_parametersEncryptionKey; }
336 template <typename ParametersEncryptionKeyT = Aws::String>
337 void SetParametersEncryptionKey(ParametersEncryptionKeyT&& value) {
338 m_parametersEncryptionKeyHasBeenSet = true;
339 m_parametersEncryptionKey = std::forward<ParametersEncryptionKeyT>(value);
340 }
341 template <typename ParametersEncryptionKeyT = Aws::String>
343 SetParametersEncryptionKey(std::forward<ParametersEncryptionKeyT>(value));
344 return *this;
345 }
347
349
350 inline const Aws::String& GetRequestId() const { return m_requestId; }
351 template <typename RequestIdT = Aws::String>
352 void SetRequestId(RequestIdT&& value) {
353 m_requestIdHasBeenSet = true;
354 m_requestId = std::forward<RequestIdT>(value);
355 }
356 template <typename RequestIdT = Aws::String>
358 SetRequestId(std::forward<RequestIdT>(value));
359 return *this;
360 }
362 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
363
364 private:
365 Aws::String m_launchConfigurationTemplateID;
366
367 Aws::String m_arn;
368
369 PostLaunchActions m_postLaunchActions;
370
371 bool m_enableMapAutoTagging{false};
372
373 Aws::String m_mapAutoTaggingMpeID;
374
376
377 Aws::String m_ec2LaunchTemplateID;
378
380
382
383 bool m_copyPrivateIp{false};
384
385 bool m_associatePublicIpAddress{false};
386
387 bool m_copyTags{false};
388
389 Licensing m_licensing;
390
391 BootMode m_bootMode{BootMode::NOT_SET};
392
393 long long m_smallVolumeMaxSize{0};
394
395 LaunchTemplateDiskConf m_smallVolumeConf;
396
397 LaunchTemplateDiskConf m_largeVolumeConf;
398
399 bool m_enableParametersEncryption{false};
400
401 Aws::String m_parametersEncryptionKey;
402
403 Aws::String m_requestId;
404 Aws::Http::HttpResponseCode m_HttpResponseCode;
405 bool m_launchConfigurationTemplateIDHasBeenSet = false;
406 bool m_arnHasBeenSet = false;
407 bool m_postLaunchActionsHasBeenSet = false;
408 bool m_enableMapAutoTaggingHasBeenSet = false;
409 bool m_mapAutoTaggingMpeIDHasBeenSet = false;
410 bool m_tagsHasBeenSet = false;
411 bool m_ec2LaunchTemplateIDHasBeenSet = false;
412 bool m_launchDispositionHasBeenSet = false;
413 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
414 bool m_copyPrivateIpHasBeenSet = false;
415 bool m_associatePublicIpAddressHasBeenSet = false;
416 bool m_copyTagsHasBeenSet = false;
417 bool m_licensingHasBeenSet = false;
418 bool m_bootModeHasBeenSet = false;
419 bool m_smallVolumeMaxSizeHasBeenSet = false;
420 bool m_smallVolumeConfHasBeenSet = false;
421 bool m_largeVolumeConfHasBeenSet = false;
422 bool m_enableParametersEncryptionHasBeenSet = false;
423 bool m_parametersEncryptionKeyHasBeenSet = false;
424 bool m_requestIdHasBeenSet = false;
425};
426
427} // namespace Model
428} // namespace mgn
429} // 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