AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetLaunchConfigurationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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/Licensing.h>
13#include <aws/mgn/model/PostLaunchActions.h>
14#include <aws/mgn/model/TargetInstanceTypeRightSizingMethod.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace mgn {
28namespace Model {
30 public:
31 AWS_MGN_API GetLaunchConfigurationResult() = default;
34
36
39 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
40 template <typename SourceServerIDT = Aws::String>
41 void SetSourceServerID(SourceServerIDT&& value) {
42 m_sourceServerIDHasBeenSet = true;
43 m_sourceServerID = std::forward<SourceServerIDT>(value);
44 }
45 template <typename SourceServerIDT = Aws::String>
47 SetSourceServerID(std::forward<SourceServerIDT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetEc2LaunchTemplateID() const { return m_ec2LaunchTemplateID; }
74 template <typename Ec2LaunchTemplateIDT = Aws::String>
75 void SetEc2LaunchTemplateID(Ec2LaunchTemplateIDT&& value) {
76 m_ec2LaunchTemplateIDHasBeenSet = true;
77 m_ec2LaunchTemplateID = std::forward<Ec2LaunchTemplateIDT>(value);
78 }
79 template <typename Ec2LaunchTemplateIDT = Aws::String>
81 SetEc2LaunchTemplateID(std::forward<Ec2LaunchTemplateIDT>(value));
82 return *this;
83 }
85
87
90 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
92 m_launchDispositionHasBeenSet = true;
93 m_launchDisposition = value;
94 }
97 return *this;
98 }
100
102
106 return m_targetInstanceTypeRightSizingMethod;
107 }
109 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
110 m_targetInstanceTypeRightSizingMethod = value;
111 }
114 return *this;
115 }
117
119
122 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
123 inline void SetCopyPrivateIp(bool value) {
124 m_copyPrivateIpHasBeenSet = true;
125 m_copyPrivateIp = value;
126 }
128 SetCopyPrivateIp(value);
129 return *this;
130 }
132
134
137 inline bool GetCopyTags() const { return m_copyTags; }
138 inline void SetCopyTags(bool value) {
139 m_copyTagsHasBeenSet = true;
140 m_copyTags = value;
141 }
143 SetCopyTags(value);
144 return *this;
145 }
147
149
152 inline const Licensing& GetLicensing() const { return m_licensing; }
153 template <typename LicensingT = Licensing>
154 void SetLicensing(LicensingT&& value) {
155 m_licensingHasBeenSet = true;
156 m_licensing = std::forward<LicensingT>(value);
157 }
158 template <typename LicensingT = Licensing>
160 SetLicensing(std::forward<LicensingT>(value));
161 return *this;
162 }
164
166
169 inline BootMode GetBootMode() const { return m_bootMode; }
170 inline void SetBootMode(BootMode value) {
171 m_bootModeHasBeenSet = true;
172 m_bootMode = value;
173 }
175 SetBootMode(value);
176 return *this;
177 }
179
181
182 inline const PostLaunchActions& GetPostLaunchActions() const { return m_postLaunchActions; }
183 template <typename PostLaunchActionsT = PostLaunchActions>
184 void SetPostLaunchActions(PostLaunchActionsT&& value) {
185 m_postLaunchActionsHasBeenSet = true;
186 m_postLaunchActions = std::forward<PostLaunchActionsT>(value);
187 }
188 template <typename PostLaunchActionsT = PostLaunchActions>
190 SetPostLaunchActions(std::forward<PostLaunchActionsT>(value));
191 return *this;
192 }
194
196
199 inline bool GetEnableMapAutoTagging() const { return m_enableMapAutoTagging; }
200 inline void SetEnableMapAutoTagging(bool value) {
201 m_enableMapAutoTaggingHasBeenSet = true;
202 m_enableMapAutoTagging = value;
203 }
206 return *this;
207 }
209
211
214 inline const Aws::String& GetMapAutoTaggingMpeID() const { return m_mapAutoTaggingMpeID; }
215 template <typename MapAutoTaggingMpeIDT = Aws::String>
216 void SetMapAutoTaggingMpeID(MapAutoTaggingMpeIDT&& value) {
217 m_mapAutoTaggingMpeIDHasBeenSet = true;
218 m_mapAutoTaggingMpeID = std::forward<MapAutoTaggingMpeIDT>(value);
219 }
220 template <typename MapAutoTaggingMpeIDT = Aws::String>
222 SetMapAutoTaggingMpeID(std::forward<MapAutoTaggingMpeIDT>(value));
223 return *this;
224 }
226
228
229 inline const Aws::String& GetRequestId() const { return m_requestId; }
230 template <typename RequestIdT = Aws::String>
231 void SetRequestId(RequestIdT&& value) {
232 m_requestIdHasBeenSet = true;
233 m_requestId = std::forward<RequestIdT>(value);
234 }
235 template <typename RequestIdT = Aws::String>
237 SetRequestId(std::forward<RequestIdT>(value));
238 return *this;
239 }
241 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
242
243 private:
244 Aws::String m_sourceServerID;
245
246 Aws::String m_name;
247
248 Aws::String m_ec2LaunchTemplateID;
249
251
253
254 bool m_copyPrivateIp{false};
255
256 bool m_copyTags{false};
257
258 Licensing m_licensing;
259
260 BootMode m_bootMode{BootMode::NOT_SET};
261
262 PostLaunchActions m_postLaunchActions;
263
264 bool m_enableMapAutoTagging{false};
265
266 Aws::String m_mapAutoTaggingMpeID;
267
268 Aws::String m_requestId;
269 Aws::Http::HttpResponseCode m_HttpResponseCode;
270 bool m_sourceServerIDHasBeenSet = false;
271 bool m_nameHasBeenSet = false;
272 bool m_ec2LaunchTemplateIDHasBeenSet = false;
273 bool m_launchDispositionHasBeenSet = false;
274 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
275 bool m_copyPrivateIpHasBeenSet = false;
276 bool m_copyTagsHasBeenSet = false;
277 bool m_licensingHasBeenSet = false;
278 bool m_bootModeHasBeenSet = false;
279 bool m_postLaunchActionsHasBeenSet = false;
280 bool m_enableMapAutoTaggingHasBeenSet = false;
281 bool m_mapAutoTaggingMpeIDHasBeenSet = false;
282 bool m_requestIdHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace mgn
287} // namespace Aws
GetLaunchConfigurationResult & WithCopyPrivateIp(bool value)
GetLaunchConfigurationResult & WithSourceServerID(SourceServerIDT &&value)
GetLaunchConfigurationResult & WithEnableMapAutoTagging(bool value)
TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const
AWS_MGN_API GetLaunchConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLaunchConfigurationResult & WithName(NameT &&value)
GetLaunchConfigurationResult & WithRequestId(RequestIdT &&value)
GetLaunchConfigurationResult & WithEc2LaunchTemplateID(Ec2LaunchTemplateIDT &&value)
GetLaunchConfigurationResult & WithPostLaunchActions(PostLaunchActionsT &&value)
void SetEc2LaunchTemplateID(Ec2LaunchTemplateIDT &&value)
GetLaunchConfigurationResult & WithLaunchDisposition(LaunchDisposition value)
GetLaunchConfigurationResult & WithLicensing(LicensingT &&value)
AWS_MGN_API GetLaunchConfigurationResult()=default
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
GetLaunchConfigurationResult & WithBootMode(BootMode value)
GetLaunchConfigurationResult & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
GetLaunchConfigurationResult & WithMapAutoTaggingMpeID(MapAutoTaggingMpeIDT &&value)
AWS_MGN_API GetLaunchConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLaunchConfigurationResult & WithCopyTags(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue