AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateLaunchConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/MgnRequest.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 {
19namespace mgn {
20namespace Model {
21
25 public:
26 AWS_MGN_API UpdateLaunchConfigurationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateLaunchConfiguration"; }
33
34 AWS_MGN_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
41 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
42 template <typename SourceServerIDT = Aws::String>
43 void SetSourceServerID(SourceServerIDT&& value) {
44 m_sourceServerIDHasBeenSet = true;
45 m_sourceServerID = std::forward<SourceServerIDT>(value);
46 }
47 template <typename SourceServerIDT = Aws::String>
49 SetSourceServerID(std::forward<SourceServerIDT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
77 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
79 m_launchDispositionHasBeenSet = true;
80 m_launchDisposition = value;
81 }
84 return *this;
85 }
87
89
93 return m_targetInstanceTypeRightSizingMethod;
94 }
95 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
97 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
98 m_targetInstanceTypeRightSizingMethod = value;
99 }
102 return *this;
103 }
105
107
110 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
111 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
112 inline void SetCopyPrivateIp(bool value) {
113 m_copyPrivateIpHasBeenSet = true;
114 m_copyPrivateIp = value;
115 }
117 SetCopyPrivateIp(value);
118 return *this;
119 }
121
123
126 inline bool GetCopyTags() const { return m_copyTags; }
127 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
128 inline void SetCopyTags(bool value) {
129 m_copyTagsHasBeenSet = true;
130 m_copyTags = value;
131 }
133 SetCopyTags(value);
134 return *this;
135 }
137
139
142 inline const Licensing& GetLicensing() const { return m_licensing; }
143 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
144 template <typename LicensingT = Licensing>
145 void SetLicensing(LicensingT&& value) {
146 m_licensingHasBeenSet = true;
147 m_licensing = std::forward<LicensingT>(value);
148 }
149 template <typename LicensingT = Licensing>
151 SetLicensing(std::forward<LicensingT>(value));
152 return *this;
153 }
155
157
160 inline BootMode GetBootMode() const { return m_bootMode; }
161 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
162 inline void SetBootMode(BootMode value) {
163 m_bootModeHasBeenSet = true;
164 m_bootMode = value;
165 }
167 SetBootMode(value);
168 return *this;
169 }
171
173
174 inline const PostLaunchActions& GetPostLaunchActions() const { return m_postLaunchActions; }
175 inline bool PostLaunchActionsHasBeenSet() const { return m_postLaunchActionsHasBeenSet; }
176 template <typename PostLaunchActionsT = PostLaunchActions>
177 void SetPostLaunchActions(PostLaunchActionsT&& value) {
178 m_postLaunchActionsHasBeenSet = true;
179 m_postLaunchActions = std::forward<PostLaunchActionsT>(value);
180 }
181 template <typename PostLaunchActionsT = PostLaunchActions>
183 SetPostLaunchActions(std::forward<PostLaunchActionsT>(value));
184 return *this;
185 }
187
189
192 inline bool GetEnableMapAutoTagging() const { return m_enableMapAutoTagging; }
193 inline bool EnableMapAutoTaggingHasBeenSet() const { return m_enableMapAutoTaggingHasBeenSet; }
194 inline void SetEnableMapAutoTagging(bool value) {
195 m_enableMapAutoTaggingHasBeenSet = true;
196 m_enableMapAutoTagging = value;
197 }
200 return *this;
201 }
203
205
208 inline const Aws::String& GetMapAutoTaggingMpeID() const { return m_mapAutoTaggingMpeID; }
209 inline bool MapAutoTaggingMpeIDHasBeenSet() const { return m_mapAutoTaggingMpeIDHasBeenSet; }
210 template <typename MapAutoTaggingMpeIDT = Aws::String>
211 void SetMapAutoTaggingMpeID(MapAutoTaggingMpeIDT&& value) {
212 m_mapAutoTaggingMpeIDHasBeenSet = true;
213 m_mapAutoTaggingMpeID = std::forward<MapAutoTaggingMpeIDT>(value);
214 }
215 template <typename MapAutoTaggingMpeIDT = Aws::String>
217 SetMapAutoTaggingMpeID(std::forward<MapAutoTaggingMpeIDT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::String& GetAccountID() const { return m_accountID; }
227 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
228 template <typename AccountIDT = Aws::String>
229 void SetAccountID(AccountIDT&& value) {
230 m_accountIDHasBeenSet = true;
231 m_accountID = std::forward<AccountIDT>(value);
232 }
233 template <typename AccountIDT = Aws::String>
235 SetAccountID(std::forward<AccountIDT>(value));
236 return *this;
237 }
239 private:
240 Aws::String m_sourceServerID;
241
242 Aws::String m_name;
243
245
247
248 bool m_copyPrivateIp{false};
249
250 bool m_copyTags{false};
251
252 Licensing m_licensing;
253
254 BootMode m_bootMode{BootMode::NOT_SET};
255
256 PostLaunchActions m_postLaunchActions;
257
258 bool m_enableMapAutoTagging{false};
259
260 Aws::String m_mapAutoTaggingMpeID;
261
262 Aws::String m_accountID;
263 bool m_sourceServerIDHasBeenSet = false;
264 bool m_nameHasBeenSet = false;
265 bool m_launchDispositionHasBeenSet = false;
266 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
267 bool m_copyPrivateIpHasBeenSet = false;
268 bool m_copyTagsHasBeenSet = false;
269 bool m_licensingHasBeenSet = false;
270 bool m_bootModeHasBeenSet = false;
271 bool m_postLaunchActionsHasBeenSet = false;
272 bool m_enableMapAutoTaggingHasBeenSet = false;
273 bool m_mapAutoTaggingMpeIDHasBeenSet = false;
274 bool m_accountIDHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace mgn
279} // namespace Aws
UpdateLaunchConfigurationRequest & WithEnableMapAutoTagging(bool value)
UpdateLaunchConfigurationRequest & WithMapAutoTaggingMpeID(MapAutoTaggingMpeIDT &&value)
UpdateLaunchConfigurationRequest & WithCopyTags(bool value)
UpdateLaunchConfigurationRequest & WithCopyPrivateIp(bool value)
UpdateLaunchConfigurationRequest & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationRequest & WithName(NameT &&value)
UpdateLaunchConfigurationRequest & WithPostLaunchActions(PostLaunchActionsT &&value)
UpdateLaunchConfigurationRequest & WithAccountID(AccountIDT &&value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const
UpdateLaunchConfigurationRequest & WithSourceServerID(SourceServerIDT &&value)
UpdateLaunchConfigurationRequest & WithLicensing(LicensingT &&value)
AWS_MGN_API Aws::String SerializePayload() const override
UpdateLaunchConfigurationRequest & WithBootMode(BootMode value)
UpdateLaunchConfigurationRequest & WithLaunchDisposition(LaunchDisposition value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String