AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchConfigurationTemplate.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/model/BootMode.h>
10#include <aws/mgn/model/LaunchTemplateDiskConf.h>
11#include <aws/mgn/model/LaunchDisposition.h>
12#include <aws/mgn/model/Licensing.h>
13#include <aws/mgn/model/PostLaunchActions.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/mgn/model/TargetInstanceTypeRightSizingMethod.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace mgn
29{
30namespace Model
31{
32
34 {
35 public:
40
41
43
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline LaunchConfigurationTemplate& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline LaunchConfigurationTemplate& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline LaunchConfigurationTemplate& WithArn(const char* value) { SetArn(value); return *this;}
55
57
60 inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; }
61 inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; }
62 inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; }
65
67
70 inline const BootMode& GetBootMode() const{ return m_bootMode; }
71 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
72 inline void SetBootMode(const BootMode& value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
73 inline void SetBootMode(BootMode&& value) { m_bootModeHasBeenSet = true; m_bootMode = std::move(value); }
74 inline LaunchConfigurationTemplate& WithBootMode(const BootMode& value) { SetBootMode(value); return *this;}
75 inline LaunchConfigurationTemplate& WithBootMode(BootMode&& value) { SetBootMode(std::move(value)); return *this;}
77
79
82 inline bool GetCopyPrivateIp() const{ return m_copyPrivateIp; }
83 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
84 inline void SetCopyPrivateIp(bool value) { m_copyPrivateIpHasBeenSet = true; m_copyPrivateIp = value; }
85 inline LaunchConfigurationTemplate& WithCopyPrivateIp(bool value) { SetCopyPrivateIp(value); return *this;}
87
89
92 inline bool GetCopyTags() const{ return m_copyTags; }
93 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
94 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
95 inline LaunchConfigurationTemplate& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
97
99
102 inline const Aws::String& GetEc2LaunchTemplateID() const{ return m_ec2LaunchTemplateID; }
103 inline bool Ec2LaunchTemplateIDHasBeenSet() const { return m_ec2LaunchTemplateIDHasBeenSet; }
104 inline void SetEc2LaunchTemplateID(const Aws::String& value) { m_ec2LaunchTemplateIDHasBeenSet = true; m_ec2LaunchTemplateID = value; }
105 inline void SetEc2LaunchTemplateID(Aws::String&& value) { m_ec2LaunchTemplateIDHasBeenSet = true; m_ec2LaunchTemplateID = std::move(value); }
106 inline void SetEc2LaunchTemplateID(const char* value) { m_ec2LaunchTemplateIDHasBeenSet = true; m_ec2LaunchTemplateID.assign(value); }
109 inline LaunchConfigurationTemplate& WithEc2LaunchTemplateID(const char* value) { SetEc2LaunchTemplateID(value); return *this;}
111
113
116 inline bool GetEnableMapAutoTagging() const{ return m_enableMapAutoTagging; }
117 inline bool EnableMapAutoTaggingHasBeenSet() const { return m_enableMapAutoTaggingHasBeenSet; }
118 inline void SetEnableMapAutoTagging(bool value) { m_enableMapAutoTaggingHasBeenSet = true; m_enableMapAutoTagging = value; }
121
123
126 inline const LaunchTemplateDiskConf& GetLargeVolumeConf() const{ return m_largeVolumeConf; }
127 inline bool LargeVolumeConfHasBeenSet() const { return m_largeVolumeConfHasBeenSet; }
128 inline void SetLargeVolumeConf(const LaunchTemplateDiskConf& value) { m_largeVolumeConfHasBeenSet = true; m_largeVolumeConf = value; }
129 inline void SetLargeVolumeConf(LaunchTemplateDiskConf&& value) { m_largeVolumeConfHasBeenSet = true; m_largeVolumeConf = std::move(value); }
133
135
138 inline const Aws::String& GetLaunchConfigurationTemplateID() const{ return m_launchConfigurationTemplateID; }
139 inline bool LaunchConfigurationTemplateIDHasBeenSet() const { return m_launchConfigurationTemplateIDHasBeenSet; }
140 inline void SetLaunchConfigurationTemplateID(const Aws::String& value) { m_launchConfigurationTemplateIDHasBeenSet = true; m_launchConfigurationTemplateID = value; }
141 inline void SetLaunchConfigurationTemplateID(Aws::String&& value) { m_launchConfigurationTemplateIDHasBeenSet = true; m_launchConfigurationTemplateID = std::move(value); }
142 inline void SetLaunchConfigurationTemplateID(const char* value) { m_launchConfigurationTemplateIDHasBeenSet = true; m_launchConfigurationTemplateID.assign(value); }
147
149
152 inline const LaunchDisposition& GetLaunchDisposition() const{ return m_launchDisposition; }
153 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
154 inline void SetLaunchDisposition(const LaunchDisposition& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; }
155 inline void SetLaunchDisposition(LaunchDisposition&& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = std::move(value); }
159
161
162 inline const Licensing& GetLicensing() const{ return m_licensing; }
163 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
164 inline void SetLicensing(const Licensing& value) { m_licensingHasBeenSet = true; m_licensing = value; }
165 inline void SetLicensing(Licensing&& value) { m_licensingHasBeenSet = true; m_licensing = std::move(value); }
166 inline LaunchConfigurationTemplate& WithLicensing(const Licensing& value) { SetLicensing(value); return *this;}
167 inline LaunchConfigurationTemplate& WithLicensing(Licensing&& value) { SetLicensing(std::move(value)); return *this;}
169
171
174 inline const Aws::String& GetMapAutoTaggingMpeID() const{ return m_mapAutoTaggingMpeID; }
175 inline bool MapAutoTaggingMpeIDHasBeenSet() const { return m_mapAutoTaggingMpeIDHasBeenSet; }
176 inline void SetMapAutoTaggingMpeID(const Aws::String& value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID = value; }
177 inline void SetMapAutoTaggingMpeID(Aws::String&& value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID = std::move(value); }
178 inline void SetMapAutoTaggingMpeID(const char* value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID.assign(value); }
181 inline LaunchConfigurationTemplate& WithMapAutoTaggingMpeID(const char* value) { SetMapAutoTaggingMpeID(value); return *this;}
183
185
188 inline const PostLaunchActions& GetPostLaunchActions() const{ return m_postLaunchActions; }
189 inline bool PostLaunchActionsHasBeenSet() const { return m_postLaunchActionsHasBeenSet; }
190 inline void SetPostLaunchActions(const PostLaunchActions& value) { m_postLaunchActionsHasBeenSet = true; m_postLaunchActions = value; }
191 inline void SetPostLaunchActions(PostLaunchActions&& value) { m_postLaunchActionsHasBeenSet = true; m_postLaunchActions = std::move(value); }
195
197
200 inline const LaunchTemplateDiskConf& GetSmallVolumeConf() const{ return m_smallVolumeConf; }
201 inline bool SmallVolumeConfHasBeenSet() const { return m_smallVolumeConfHasBeenSet; }
202 inline void SetSmallVolumeConf(const LaunchTemplateDiskConf& value) { m_smallVolumeConfHasBeenSet = true; m_smallVolumeConf = value; }
203 inline void SetSmallVolumeConf(LaunchTemplateDiskConf&& value) { m_smallVolumeConfHasBeenSet = true; m_smallVolumeConf = std::move(value); }
207
209
212 inline long long GetSmallVolumeMaxSize() const{ return m_smallVolumeMaxSize; }
213 inline bool SmallVolumeMaxSizeHasBeenSet() const { return m_smallVolumeMaxSizeHasBeenSet; }
214 inline void SetSmallVolumeMaxSize(long long value) { m_smallVolumeMaxSizeHasBeenSet = true; m_smallVolumeMaxSize = value; }
215 inline LaunchConfigurationTemplate& WithSmallVolumeMaxSize(long long value) { SetSmallVolumeMaxSize(value); return *this;}
217
219
222 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
223 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
224 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
225 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
227 inline LaunchConfigurationTemplate& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
228 inline LaunchConfigurationTemplate& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
229 inline LaunchConfigurationTemplate& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
230 inline LaunchConfigurationTemplate& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
231 inline LaunchConfigurationTemplate& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
232 inline LaunchConfigurationTemplate& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
233 inline LaunchConfigurationTemplate& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
234 inline LaunchConfigurationTemplate& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
236
238
241 inline const TargetInstanceTypeRightSizingMethod& GetTargetInstanceTypeRightSizingMethod() const{ return m_targetInstanceTypeRightSizingMethod; }
242 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
243 inline void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; }
244 inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = std::move(value); }
248
250
251 inline const Aws::String& GetRequestId() const{ return m_requestId; }
252 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
253 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
254 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
255 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
256 inline LaunchConfigurationTemplate& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
257 inline LaunchConfigurationTemplate& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
258 inline LaunchConfigurationTemplate& WithRequestId(const char* value) { SetRequestId(value); return *this;}
260 private:
261
262 Aws::String m_arn;
263 bool m_arnHasBeenSet = false;
264
265 bool m_associatePublicIpAddress;
266 bool m_associatePublicIpAddressHasBeenSet = false;
267
268 BootMode m_bootMode;
269 bool m_bootModeHasBeenSet = false;
270
271 bool m_copyPrivateIp;
272 bool m_copyPrivateIpHasBeenSet = false;
273
274 bool m_copyTags;
275 bool m_copyTagsHasBeenSet = false;
276
277 Aws::String m_ec2LaunchTemplateID;
278 bool m_ec2LaunchTemplateIDHasBeenSet = false;
279
280 bool m_enableMapAutoTagging;
281 bool m_enableMapAutoTaggingHasBeenSet = false;
282
283 LaunchTemplateDiskConf m_largeVolumeConf;
284 bool m_largeVolumeConfHasBeenSet = false;
285
286 Aws::String m_launchConfigurationTemplateID;
287 bool m_launchConfigurationTemplateIDHasBeenSet = false;
288
289 LaunchDisposition m_launchDisposition;
290 bool m_launchDispositionHasBeenSet = false;
291
292 Licensing m_licensing;
293 bool m_licensingHasBeenSet = false;
294
295 Aws::String m_mapAutoTaggingMpeID;
296 bool m_mapAutoTaggingMpeIDHasBeenSet = false;
297
298 PostLaunchActions m_postLaunchActions;
299 bool m_postLaunchActionsHasBeenSet = false;
300
301 LaunchTemplateDiskConf m_smallVolumeConf;
302 bool m_smallVolumeConfHasBeenSet = false;
303
304 long long m_smallVolumeMaxSize;
305 bool m_smallVolumeMaxSizeHasBeenSet = false;
306
308 bool m_tagsHasBeenSet = false;
309
310 TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod;
311 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
312
313 Aws::String m_requestId;
314 bool m_requestIdHasBeenSet = false;
315 };
316
317} // namespace Model
318} // namespace mgn
319} // namespace Aws
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
LaunchConfigurationTemplate & WithLicensing(Licensing &&value)
void SetSmallVolumeConf(LaunchTemplateDiskConf &&value)
void SetLaunchConfigurationTemplateID(const Aws::String &value)
LaunchConfigurationTemplate & WithCopyPrivateIp(bool value)
LaunchConfigurationTemplate & WithBootMode(const BootMode &value)
LaunchConfigurationTemplate & WithSmallVolumeConf(LaunchTemplateDiskConf &&value)
LaunchConfigurationTemplate & WithEc2LaunchTemplateID(const Aws::String &value)
LaunchConfigurationTemplate & WithArn(const char *value)
LaunchConfigurationTemplate & AddTags(Aws::String &&key, const char *value)
LaunchConfigurationTemplate & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MGN_API LaunchConfigurationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
LaunchConfigurationTemplate & WithSmallVolumeMaxSize(long long value)
LaunchConfigurationTemplate & WithLaunchDisposition(LaunchDisposition &&value)
const LaunchTemplateDiskConf & GetLargeVolumeConf() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
LaunchConfigurationTemplate & WithPostLaunchActions(const PostLaunchActions &value)
LaunchConfigurationTemplate & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const LaunchTemplateDiskConf & GetSmallVolumeConf() const
LaunchConfigurationTemplate & AddTags(Aws::String &&key, Aws::String &&value)
LaunchConfigurationTemplate & WithRequestId(const char *value)
LaunchConfigurationTemplate & WithEc2LaunchTemplateID(Aws::String &&value)
LaunchConfigurationTemplate & WithLargeVolumeConf(const LaunchTemplateDiskConf &value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
void SetLargeVolumeConf(const LaunchTemplateDiskConf &value)
LaunchConfigurationTemplate & WithLaunchConfigurationTemplateID(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
LaunchConfigurationTemplate & WithSmallVolumeConf(const LaunchTemplateDiskConf &value)
LaunchConfigurationTemplate & AddTags(const char *key, const char *value)
LaunchConfigurationTemplate & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
LaunchConfigurationTemplate & WithEnableMapAutoTagging(bool value)
LaunchConfigurationTemplate & WithMapAutoTaggingMpeID(Aws::String &&value)
LaunchConfigurationTemplate & AddTags(const Aws::String &key, Aws::String &&value)
LaunchConfigurationTemplate & WithRequestId(Aws::String &&value)
LaunchConfigurationTemplate & WithTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
AWS_MGN_API LaunchConfigurationTemplate(Aws::Utils::Json::JsonView jsonValue)
LaunchConfigurationTemplate & WithRequestId(const Aws::String &value)
LaunchConfigurationTemplate & WithCopyTags(bool value)
LaunchConfigurationTemplate & WithLargeVolumeConf(LaunchTemplateDiskConf &&value)
LaunchConfigurationTemplate & WithLaunchDisposition(const LaunchDisposition &value)
LaunchConfigurationTemplate & WithLaunchConfigurationTemplateID(const Aws::String &value)
void SetLargeVolumeConf(LaunchTemplateDiskConf &&value)
void SetSmallVolumeConf(const LaunchTemplateDiskConf &value)
LaunchConfigurationTemplate & WithPostLaunchActions(PostLaunchActions &&value)
LaunchConfigurationTemplate & WithLaunchConfigurationTemplateID(Aws::String &&value)
const TargetInstanceTypeRightSizingMethod & GetTargetInstanceTypeRightSizingMethod() const
void SetLaunchDisposition(const LaunchDisposition &value)
LaunchConfigurationTemplate & WithMapAutoTaggingMpeID(const char *value)
LaunchConfigurationTemplate & AddTags(Aws::String &&key, const Aws::String &value)
LaunchConfigurationTemplate & WithLicensing(const Licensing &value)
LaunchConfigurationTemplate & WithMapAutoTaggingMpeID(const Aws::String &value)
LaunchConfigurationTemplate & WithArn(const Aws::String &value)
void SetPostLaunchActions(const PostLaunchActions &value)
LaunchConfigurationTemplate & AddTags(const char *key, Aws::String &&value)
LaunchConfigurationTemplate & WithBootMode(BootMode &&value)
void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
LaunchConfigurationTemplate & WithEc2LaunchTemplateID(const char *value)
LaunchConfigurationTemplate & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
LaunchConfigurationTemplate & WithArn(Aws::String &&value)
LaunchConfigurationTemplate & WithAssociatePublicIpAddress(bool 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