AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateLaunchConfigurationTemplateResult.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{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace mgn
31{
32namespace Model
33{
35 {
36 public:
40
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 CreateLaunchConfigurationTemplateResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
52
54
57 inline bool GetAssociatePublicIpAddress() const { return m_associatePublicIpAddress; }
58 inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; }
61
63
66 inline BootMode GetBootMode() const { return m_bootMode; }
67 inline void SetBootMode(BootMode value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
70
72
75 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
76 inline void SetCopyPrivateIp(bool value) { m_copyPrivateIpHasBeenSet = true; m_copyPrivateIp = value; }
79
81
84 inline bool GetCopyTags() const { return m_copyTags; }
85 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
86 inline CreateLaunchConfigurationTemplateResult& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
88
90
93 inline const Aws::String& GetEc2LaunchTemplateID() const { return m_ec2LaunchTemplateID; }
94 template<typename Ec2LaunchTemplateIDT = Aws::String>
95 void SetEc2LaunchTemplateID(Ec2LaunchTemplateIDT&& value) { m_ec2LaunchTemplateIDHasBeenSet = true; m_ec2LaunchTemplateID = std::forward<Ec2LaunchTemplateIDT>(value); }
96 template<typename Ec2LaunchTemplateIDT = Aws::String>
97 CreateLaunchConfigurationTemplateResult& WithEc2LaunchTemplateID(Ec2LaunchTemplateIDT&& value) { SetEc2LaunchTemplateID(std::forward<Ec2LaunchTemplateIDT>(value)); return *this;}
99
101
104 inline bool GetEnableMapAutoTagging() const { return m_enableMapAutoTagging; }
105 inline void SetEnableMapAutoTagging(bool value) { m_enableMapAutoTaggingHasBeenSet = true; m_enableMapAutoTagging = value; }
108
110
113 inline const LaunchTemplateDiskConf& GetLargeVolumeConf() const { return m_largeVolumeConf; }
114 template<typename LargeVolumeConfT = LaunchTemplateDiskConf>
115 void SetLargeVolumeConf(LargeVolumeConfT&& value) { m_largeVolumeConfHasBeenSet = true; m_largeVolumeConf = std::forward<LargeVolumeConfT>(value); }
116 template<typename LargeVolumeConfT = LaunchTemplateDiskConf>
117 CreateLaunchConfigurationTemplateResult& WithLargeVolumeConf(LargeVolumeConfT&& value) { SetLargeVolumeConf(std::forward<LargeVolumeConfT>(value)); return *this;}
119
121
124 inline const Aws::String& GetLaunchConfigurationTemplateID() const { return m_launchConfigurationTemplateID; }
125 template<typename LaunchConfigurationTemplateIDT = Aws::String>
126 void SetLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT&& value) { m_launchConfigurationTemplateIDHasBeenSet = true; m_launchConfigurationTemplateID = std::forward<LaunchConfigurationTemplateIDT>(value); }
127 template<typename LaunchConfigurationTemplateIDT = Aws::String>
128 CreateLaunchConfigurationTemplateResult& WithLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT&& value) { SetLaunchConfigurationTemplateID(std::forward<LaunchConfigurationTemplateIDT>(value)); return *this;}
130
132
135 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
136 inline void SetLaunchDisposition(LaunchDisposition value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; }
139
141
142 inline const Licensing& GetLicensing() const { return m_licensing; }
143 template<typename LicensingT = Licensing>
144 void SetLicensing(LicensingT&& value) { m_licensingHasBeenSet = true; m_licensing = std::forward<LicensingT>(value); }
145 template<typename LicensingT = Licensing>
146 CreateLaunchConfigurationTemplateResult& WithLicensing(LicensingT&& value) { SetLicensing(std::forward<LicensingT>(value)); return *this;}
148
150
153 inline const Aws::String& GetMapAutoTaggingMpeID() const { return m_mapAutoTaggingMpeID; }
154 template<typename MapAutoTaggingMpeIDT = Aws::String>
155 void SetMapAutoTaggingMpeID(MapAutoTaggingMpeIDT&& value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID = std::forward<MapAutoTaggingMpeIDT>(value); }
156 template<typename MapAutoTaggingMpeIDT = Aws::String>
157 CreateLaunchConfigurationTemplateResult& WithMapAutoTaggingMpeID(MapAutoTaggingMpeIDT&& value) { SetMapAutoTaggingMpeID(std::forward<MapAutoTaggingMpeIDT>(value)); return *this;}
159
161
164 inline const PostLaunchActions& GetPostLaunchActions() const { return m_postLaunchActions; }
165 template<typename PostLaunchActionsT = PostLaunchActions>
166 void SetPostLaunchActions(PostLaunchActionsT&& value) { m_postLaunchActionsHasBeenSet = true; m_postLaunchActions = std::forward<PostLaunchActionsT>(value); }
167 template<typename PostLaunchActionsT = PostLaunchActions>
168 CreateLaunchConfigurationTemplateResult& WithPostLaunchActions(PostLaunchActionsT&& value) { SetPostLaunchActions(std::forward<PostLaunchActionsT>(value)); return *this;}
170
172
175 inline const LaunchTemplateDiskConf& GetSmallVolumeConf() const { return m_smallVolumeConf; }
176 template<typename SmallVolumeConfT = LaunchTemplateDiskConf>
177 void SetSmallVolumeConf(SmallVolumeConfT&& value) { m_smallVolumeConfHasBeenSet = true; m_smallVolumeConf = std::forward<SmallVolumeConfT>(value); }
178 template<typename SmallVolumeConfT = LaunchTemplateDiskConf>
179 CreateLaunchConfigurationTemplateResult& WithSmallVolumeConf(SmallVolumeConfT&& value) { SetSmallVolumeConf(std::forward<SmallVolumeConfT>(value)); return *this;}
181
183
186 inline long long GetSmallVolumeMaxSize() const { return m_smallVolumeMaxSize; }
187 inline void SetSmallVolumeMaxSize(long long value) { m_smallVolumeMaxSizeHasBeenSet = true; m_smallVolumeMaxSize = value; }
190
192
195 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
196 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
198 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
199 CreateLaunchConfigurationTemplateResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
200 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
201 CreateLaunchConfigurationTemplateResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
202 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
203 }
205
207
210 inline TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const { return m_targetInstanceTypeRightSizingMethod; }
211 inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; }
214
216
217 inline const Aws::String& GetRequestId() const { return m_requestId; }
218 template<typename RequestIdT = Aws::String>
219 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
220 template<typename RequestIdT = Aws::String>
221 CreateLaunchConfigurationTemplateResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
223 private:
224
225 Aws::String m_arn;
226 bool m_arnHasBeenSet = false;
227
228 bool m_associatePublicIpAddress{false};
229 bool m_associatePublicIpAddressHasBeenSet = false;
230
231 BootMode m_bootMode{BootMode::NOT_SET};
232 bool m_bootModeHasBeenSet = false;
233
234 bool m_copyPrivateIp{false};
235 bool m_copyPrivateIpHasBeenSet = false;
236
237 bool m_copyTags{false};
238 bool m_copyTagsHasBeenSet = false;
239
240 Aws::String m_ec2LaunchTemplateID;
241 bool m_ec2LaunchTemplateIDHasBeenSet = false;
242
243 bool m_enableMapAutoTagging{false};
244 bool m_enableMapAutoTaggingHasBeenSet = false;
245
246 LaunchTemplateDiskConf m_largeVolumeConf;
247 bool m_largeVolumeConfHasBeenSet = false;
248
249 Aws::String m_launchConfigurationTemplateID;
250 bool m_launchConfigurationTemplateIDHasBeenSet = false;
251
253 bool m_launchDispositionHasBeenSet = false;
254
255 Licensing m_licensing;
256 bool m_licensingHasBeenSet = false;
257
258 Aws::String m_mapAutoTaggingMpeID;
259 bool m_mapAutoTaggingMpeIDHasBeenSet = false;
260
261 PostLaunchActions m_postLaunchActions;
262 bool m_postLaunchActionsHasBeenSet = false;
263
264 LaunchTemplateDiskConf m_smallVolumeConf;
265 bool m_smallVolumeConfHasBeenSet = false;
266
267 long long m_smallVolumeMaxSize{0};
268 bool m_smallVolumeMaxSizeHasBeenSet = false;
269
271 bool m_tagsHasBeenSet = false;
272
274 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
275
276 Aws::String m_requestId;
277 bool m_requestIdHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace mgn
282} // namespace Aws
CreateLaunchConfigurationTemplateResult & WithRequestId(RequestIdT &&value)
CreateLaunchConfigurationTemplateResult & WithLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT &&value)
CreateLaunchConfigurationTemplateResult & WithEc2LaunchTemplateID(Ec2LaunchTemplateIDT &&value)
CreateLaunchConfigurationTemplateResult & WithLargeVolumeConf(LargeVolumeConfT &&value)
CreateLaunchConfigurationTemplateResult & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
CreateLaunchConfigurationTemplateResult & WithSmallVolumeMaxSize(long long value)
CreateLaunchConfigurationTemplateResult & WithPostLaunchActions(PostLaunchActionsT &&value)
AWS_MGN_API CreateLaunchConfigurationTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateLaunchConfigurationTemplateResult & WithBootMode(BootMode value)
CreateLaunchConfigurationTemplateResult & WithLaunchDisposition(LaunchDisposition value)
CreateLaunchConfigurationTemplateResult & WithLicensing(LicensingT &&value)
CreateLaunchConfigurationTemplateResult & WithSmallVolumeConf(SmallVolumeConfT &&value)
AWS_MGN_API CreateLaunchConfigurationTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateLaunchConfigurationTemplateResult & WithAssociatePublicIpAddress(bool value)
CreateLaunchConfigurationTemplateResult & WithCopyPrivateIp(bool value)
CreateLaunchConfigurationTemplateResult & WithTags(TagsT &&value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
CreateLaunchConfigurationTemplateResult & WithEnableMapAutoTagging(bool value)
CreateLaunchConfigurationTemplateResult & WithCopyTags(bool value)
CreateLaunchConfigurationTemplateResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateLaunchConfigurationTemplateResult & WithArn(ArnT &&value)
CreateLaunchConfigurationTemplateResult & WithMapAutoTaggingMpeID(MapAutoTaggingMpeIDT &&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