AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLaunchConfigurationTemplateRequest.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/MgnRequest.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/core/utils/memory/stl/AWSString.h>
14#include <aws/mgn/model/PostLaunchActions.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/mgn/model/TargetInstanceTypeRightSizingMethod.h>
17#include <utility>
18
19namespace Aws
20{
21namespace mgn
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateLaunchConfigurationTemplate"; }
38
39 AWS_MGN_API Aws::String SerializePayload() const override;
40
41
43
46 inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; }
47 inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; }
48 inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; }
51
53
56 inline const BootMode& GetBootMode() const{ return m_bootMode; }
57 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
58 inline void SetBootMode(const BootMode& value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
59 inline void SetBootMode(BootMode&& value) { m_bootModeHasBeenSet = true; m_bootMode = std::move(value); }
60 inline CreateLaunchConfigurationTemplateRequest& WithBootMode(const BootMode& value) { SetBootMode(value); return *this;}
61 inline CreateLaunchConfigurationTemplateRequest& WithBootMode(BootMode&& value) { SetBootMode(std::move(value)); return *this;}
63
65
68 inline bool GetCopyPrivateIp() const{ return m_copyPrivateIp; }
69 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
70 inline void SetCopyPrivateIp(bool value) { m_copyPrivateIpHasBeenSet = true; m_copyPrivateIp = value; }
73
75
78 inline bool GetCopyTags() const{ return m_copyTags; }
79 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
80 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
81 inline CreateLaunchConfigurationTemplateRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
83
85
88 inline bool GetEnableMapAutoTagging() const{ return m_enableMapAutoTagging; }
89 inline bool EnableMapAutoTaggingHasBeenSet() const { return m_enableMapAutoTaggingHasBeenSet; }
90 inline void SetEnableMapAutoTagging(bool value) { m_enableMapAutoTaggingHasBeenSet = true; m_enableMapAutoTagging = value; }
93
95
98 inline const LaunchTemplateDiskConf& GetLargeVolumeConf() const{ return m_largeVolumeConf; }
99 inline bool LargeVolumeConfHasBeenSet() const { return m_largeVolumeConfHasBeenSet; }
100 inline void SetLargeVolumeConf(const LaunchTemplateDiskConf& value) { m_largeVolumeConfHasBeenSet = true; m_largeVolumeConf = value; }
101 inline void SetLargeVolumeConf(LaunchTemplateDiskConf&& value) { m_largeVolumeConfHasBeenSet = true; m_largeVolumeConf = std::move(value); }
105
107
110 inline const LaunchDisposition& GetLaunchDisposition() const{ return m_launchDisposition; }
111 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
112 inline void SetLaunchDisposition(const LaunchDisposition& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; }
113 inline void SetLaunchDisposition(LaunchDisposition&& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = std::move(value); }
117
119
120 inline const Licensing& GetLicensing() const{ return m_licensing; }
121 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
122 inline void SetLicensing(const Licensing& value) { m_licensingHasBeenSet = true; m_licensing = value; }
123 inline void SetLicensing(Licensing&& value) { m_licensingHasBeenSet = true; m_licensing = std::move(value); }
125 inline CreateLaunchConfigurationTemplateRequest& WithLicensing(Licensing&& value) { SetLicensing(std::move(value)); return *this;}
127
129
132 inline const Aws::String& GetMapAutoTaggingMpeID() const{ return m_mapAutoTaggingMpeID; }
133 inline bool MapAutoTaggingMpeIDHasBeenSet() const { return m_mapAutoTaggingMpeIDHasBeenSet; }
134 inline void SetMapAutoTaggingMpeID(const Aws::String& value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID = value; }
135 inline void SetMapAutoTaggingMpeID(Aws::String&& value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID = std::move(value); }
136 inline void SetMapAutoTaggingMpeID(const char* value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID.assign(value); }
141
143
146 inline const PostLaunchActions& GetPostLaunchActions() const{ return m_postLaunchActions; }
147 inline bool PostLaunchActionsHasBeenSet() const { return m_postLaunchActionsHasBeenSet; }
148 inline void SetPostLaunchActions(const PostLaunchActions& value) { m_postLaunchActionsHasBeenSet = true; m_postLaunchActions = value; }
149 inline void SetPostLaunchActions(PostLaunchActions&& value) { m_postLaunchActionsHasBeenSet = true; m_postLaunchActions = std::move(value); }
153
155
158 inline const LaunchTemplateDiskConf& GetSmallVolumeConf() const{ return m_smallVolumeConf; }
159 inline bool SmallVolumeConfHasBeenSet() const { return m_smallVolumeConfHasBeenSet; }
160 inline void SetSmallVolumeConf(const LaunchTemplateDiskConf& value) { m_smallVolumeConfHasBeenSet = true; m_smallVolumeConf = value; }
161 inline void SetSmallVolumeConf(LaunchTemplateDiskConf&& value) { m_smallVolumeConfHasBeenSet = true; m_smallVolumeConf = std::move(value); }
165
167
170 inline long long GetSmallVolumeMaxSize() const{ return m_smallVolumeMaxSize; }
171 inline bool SmallVolumeMaxSizeHasBeenSet() const { return m_smallVolumeMaxSizeHasBeenSet; }
172 inline void SetSmallVolumeMaxSize(long long value) { m_smallVolumeMaxSizeHasBeenSet = true; m_smallVolumeMaxSize = value; }
175
177
181 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
182 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
184 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
187 inline CreateLaunchConfigurationTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
188 inline CreateLaunchConfigurationTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
189 inline CreateLaunchConfigurationTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
190 inline CreateLaunchConfigurationTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
191 inline CreateLaunchConfigurationTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
192 inline CreateLaunchConfigurationTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
193 inline CreateLaunchConfigurationTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
195
197
200 inline const TargetInstanceTypeRightSizingMethod& GetTargetInstanceTypeRightSizingMethod() const{ return m_targetInstanceTypeRightSizingMethod; }
201 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
202 inline void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; }
203 inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = std::move(value); }
207 private:
208
209 bool m_associatePublicIpAddress;
210 bool m_associatePublicIpAddressHasBeenSet = false;
211
212 BootMode m_bootMode;
213 bool m_bootModeHasBeenSet = false;
214
215 bool m_copyPrivateIp;
216 bool m_copyPrivateIpHasBeenSet = false;
217
218 bool m_copyTags;
219 bool m_copyTagsHasBeenSet = false;
220
221 bool m_enableMapAutoTagging;
222 bool m_enableMapAutoTaggingHasBeenSet = false;
223
224 LaunchTemplateDiskConf m_largeVolumeConf;
225 bool m_largeVolumeConfHasBeenSet = false;
226
227 LaunchDisposition m_launchDisposition;
228 bool m_launchDispositionHasBeenSet = false;
229
230 Licensing m_licensing;
231 bool m_licensingHasBeenSet = false;
232
233 Aws::String m_mapAutoTaggingMpeID;
234 bool m_mapAutoTaggingMpeIDHasBeenSet = false;
235
236 PostLaunchActions m_postLaunchActions;
237 bool m_postLaunchActionsHasBeenSet = false;
238
239 LaunchTemplateDiskConf m_smallVolumeConf;
240 bool m_smallVolumeConfHasBeenSet = false;
241
242 long long m_smallVolumeMaxSize;
243 bool m_smallVolumeMaxSizeHasBeenSet = false;
244
246 bool m_tagsHasBeenSet = false;
247
248 TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod;
249 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace mgn
254} // namespace Aws
CreateLaunchConfigurationTemplateRequest & WithAssociatePublicIpAddress(bool value)
CreateLaunchConfigurationTemplateRequest & WithLaunchDisposition(const LaunchDisposition &value)
CreateLaunchConfigurationTemplateRequest & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
CreateLaunchConfigurationTemplateRequest & WithTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
CreateLaunchConfigurationTemplateRequest & WithLaunchDisposition(LaunchDisposition &&value)
CreateLaunchConfigurationTemplateRequest & WithLicensing(Licensing &&value)
CreateLaunchConfigurationTemplateRequest & WithSmallVolumeMaxSize(long long value)
void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod &value)
const TargetInstanceTypeRightSizingMethod & GetTargetInstanceTypeRightSizingMethod() const
CreateLaunchConfigurationTemplateRequest & WithPostLaunchActions(const PostLaunchActions &value)
CreateLaunchConfigurationTemplateRequest & AddTags(const char *key, const char *value)
CreateLaunchConfigurationTemplateRequest & WithCopyTags(bool value)
CreateLaunchConfigurationTemplateRequest & AddTags(const char *key, Aws::String &&value)
CreateLaunchConfigurationTemplateRequest & WithSmallVolumeConf(LaunchTemplateDiskConf &&value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod &&value)
CreateLaunchConfigurationTemplateRequest & WithBootMode(const BootMode &value)
CreateLaunchConfigurationTemplateRequest & AddTags(Aws::String &&key, const char *value)
AWS_MGN_API Aws::String SerializePayload() const override
CreateLaunchConfigurationTemplateRequest & WithLargeVolumeConf(LaunchTemplateDiskConf &&value)
CreateLaunchConfigurationTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLaunchConfigurationTemplateRequest & WithPostLaunchActions(PostLaunchActions &&value)
CreateLaunchConfigurationTemplateRequest & WithLicensing(const Licensing &value)
CreateLaunchConfigurationTemplateRequest & WithMapAutoTaggingMpeID(Aws::String &&value)
CreateLaunchConfigurationTemplateRequest & WithBootMode(BootMode &&value)
CreateLaunchConfigurationTemplateRequest & WithMapAutoTaggingMpeID(const Aws::String &value)
CreateLaunchConfigurationTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateLaunchConfigurationTemplateRequest & WithSmallVolumeConf(const LaunchTemplateDiskConf &value)
CreateLaunchConfigurationTemplateRequest & WithCopyPrivateIp(bool value)
CreateLaunchConfigurationTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateLaunchConfigurationTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateLaunchConfigurationTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateLaunchConfigurationTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLaunchConfigurationTemplateRequest & WithMapAutoTaggingMpeID(const char *value)
CreateLaunchConfigurationTemplateRequest & WithLargeVolumeConf(const LaunchTemplateDiskConf &value)
CreateLaunchConfigurationTemplateRequest & WithEnableMapAutoTagging(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