AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateLaunchConfigurationResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9#include <aws/mgn/model/BootMode.h>
10#include <aws/mgn/model/LaunchDisposition.h>
11#include <aws/mgn/model/Licensing.h>
12#include <aws/mgn/model/PostLaunchActions.h>
13#include <aws/mgn/model/TargetInstanceTypeRightSizingMethod.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace mgn {
27namespace Model {
29 public:
30 AWS_MGN_API UpdateLaunchConfigurationResult() = default;
33
35
38 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
39 template <typename SourceServerIDT = Aws::String>
40 void SetSourceServerID(SourceServerIDT&& value) {
41 m_sourceServerIDHasBeenSet = true;
42 m_sourceServerID = std::forward<SourceServerIDT>(value);
43 }
44 template <typename SourceServerIDT = Aws::String>
46 SetSourceServerID(std::forward<SourceServerIDT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetEc2LaunchTemplateID() const { return m_ec2LaunchTemplateID; }
73 template <typename Ec2LaunchTemplateIDT = Aws::String>
74 void SetEc2LaunchTemplateID(Ec2LaunchTemplateIDT&& value) {
75 m_ec2LaunchTemplateIDHasBeenSet = true;
76 m_ec2LaunchTemplateID = std::forward<Ec2LaunchTemplateIDT>(value);
77 }
78 template <typename Ec2LaunchTemplateIDT = Aws::String>
80 SetEc2LaunchTemplateID(std::forward<Ec2LaunchTemplateIDT>(value));
81 return *this;
82 }
84
86
89 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
91 m_launchDispositionHasBeenSet = true;
92 m_launchDisposition = value;
93 }
96 return *this;
97 }
99
101
105 return m_targetInstanceTypeRightSizingMethod;
106 }
108 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
109 m_targetInstanceTypeRightSizingMethod = value;
110 }
113 return *this;
114 }
116
118
121 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
122 inline void SetCopyPrivateIp(bool value) {
123 m_copyPrivateIpHasBeenSet = true;
124 m_copyPrivateIp = value;
125 }
127 SetCopyPrivateIp(value);
128 return *this;
129 }
131
133
136 inline bool GetCopyTags() const { return m_copyTags; }
137 inline void SetCopyTags(bool value) {
138 m_copyTagsHasBeenSet = true;
139 m_copyTags = value;
140 }
142 SetCopyTags(value);
143 return *this;
144 }
146
148
151 inline const Licensing& GetLicensing() const { return m_licensing; }
152 template <typename LicensingT = Licensing>
153 void SetLicensing(LicensingT&& value) {
154 m_licensingHasBeenSet = true;
155 m_licensing = std::forward<LicensingT>(value);
156 }
157 template <typename LicensingT = Licensing>
159 SetLicensing(std::forward<LicensingT>(value));
160 return *this;
161 }
163
165
168 inline BootMode GetBootMode() const { return m_bootMode; }
169 inline void SetBootMode(BootMode value) {
170 m_bootModeHasBeenSet = true;
171 m_bootMode = value;
172 }
174 SetBootMode(value);
175 return *this;
176 }
178
180
181 inline const PostLaunchActions& GetPostLaunchActions() const { return m_postLaunchActions; }
182 template <typename PostLaunchActionsT = PostLaunchActions>
183 void SetPostLaunchActions(PostLaunchActionsT&& value) {
184 m_postLaunchActionsHasBeenSet = true;
185 m_postLaunchActions = std::forward<PostLaunchActionsT>(value);
186 }
187 template <typename PostLaunchActionsT = PostLaunchActions>
189 SetPostLaunchActions(std::forward<PostLaunchActionsT>(value));
190 return *this;
191 }
193
195
198 inline bool GetEnableMapAutoTagging() const { return m_enableMapAutoTagging; }
199 inline void SetEnableMapAutoTagging(bool value) {
200 m_enableMapAutoTaggingHasBeenSet = true;
201 m_enableMapAutoTagging = value;
202 }
205 return *this;
206 }
208
210
213 inline const Aws::String& GetMapAutoTaggingMpeID() const { return m_mapAutoTaggingMpeID; }
214 template <typename MapAutoTaggingMpeIDT = Aws::String>
215 void SetMapAutoTaggingMpeID(MapAutoTaggingMpeIDT&& value) {
216 m_mapAutoTaggingMpeIDHasBeenSet = true;
217 m_mapAutoTaggingMpeID = std::forward<MapAutoTaggingMpeIDT>(value);
218 }
219 template <typename MapAutoTaggingMpeIDT = Aws::String>
221 SetMapAutoTaggingMpeID(std::forward<MapAutoTaggingMpeIDT>(value));
222 return *this;
223 }
225
227
228 inline const Aws::String& GetRequestId() const { return m_requestId; }
229 template <typename RequestIdT = Aws::String>
230 void SetRequestId(RequestIdT&& value) {
231 m_requestIdHasBeenSet = true;
232 m_requestId = std::forward<RequestIdT>(value);
233 }
234 template <typename RequestIdT = Aws::String>
236 SetRequestId(std::forward<RequestIdT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_sourceServerID;
242
243 Aws::String m_name;
244
245 Aws::String m_ec2LaunchTemplateID;
246
248
250
251 bool m_copyPrivateIp{false};
252
253 bool m_copyTags{false};
254
255 Licensing m_licensing;
256
257 BootMode m_bootMode{BootMode::NOT_SET};
258
259 PostLaunchActions m_postLaunchActions;
260
261 bool m_enableMapAutoTagging{false};
262
263 Aws::String m_mapAutoTaggingMpeID;
264
265 Aws::String m_requestId;
266 bool m_sourceServerIDHasBeenSet = false;
267 bool m_nameHasBeenSet = false;
268 bool m_ec2LaunchTemplateIDHasBeenSet = false;
269 bool m_launchDispositionHasBeenSet = false;
270 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
271 bool m_copyPrivateIpHasBeenSet = false;
272 bool m_copyTagsHasBeenSet = false;
273 bool m_licensingHasBeenSet = false;
274 bool m_bootModeHasBeenSet = false;
275 bool m_postLaunchActionsHasBeenSet = false;
276 bool m_enableMapAutoTaggingHasBeenSet = false;
277 bool m_mapAutoTaggingMpeIDHasBeenSet = false;
278 bool m_requestIdHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace mgn
283} // namespace Aws
UpdateLaunchConfigurationResult & WithCopyPrivateIp(bool value)
UpdateLaunchConfigurationResult & WithLicensing(LicensingT &&value)
UpdateLaunchConfigurationResult & WithBootMode(BootMode value)
AWS_MGN_API UpdateLaunchConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationResult & WithLaunchDisposition(LaunchDisposition value)
UpdateLaunchConfigurationResult & WithCopyTags(bool value)
UpdateLaunchConfigurationResult & WithRequestId(RequestIdT &&value)
TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const
UpdateLaunchConfigurationResult & WithEnableMapAutoTagging(bool value)
UpdateLaunchConfigurationResult & WithSourceServerID(SourceServerIDT &&value)
UpdateLaunchConfigurationResult & WithMapAutoTaggingMpeID(MapAutoTaggingMpeIDT &&value)
AWS_MGN_API UpdateLaunchConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateLaunchConfigurationResult & WithEc2LaunchTemplateID(Ec2LaunchTemplateIDT &&value)
UpdateLaunchConfigurationResult & WithPostLaunchActions(PostLaunchActionsT &&value)
UpdateLaunchConfigurationResult & WithName(NameT &&value)
UpdateLaunchConfigurationResult & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue