AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateLaunchConfigurationRequest.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/MgnRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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#include <utility>
16
17namespace Aws
18{
19namespace mgn
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_MGN_API UpdateLaunchConfigurationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateLaunchConfiguration"; }
36
37 AWS_MGN_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetAccountID() const { return m_accountID; }
45 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
46 template<typename AccountIDT = Aws::String>
47 void SetAccountID(AccountIDT&& value) { m_accountIDHasBeenSet = true; m_accountID = std::forward<AccountIDT>(value); }
48 template<typename AccountIDT = Aws::String>
49 UpdateLaunchConfigurationRequest& WithAccountID(AccountIDT&& value) { SetAccountID(std::forward<AccountIDT>(value)); return *this;}
51
53
56 inline BootMode GetBootMode() const { return m_bootMode; }
57 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
58 inline void SetBootMode(BootMode value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
59 inline UpdateLaunchConfigurationRequest& WithBootMode(BootMode value) { SetBootMode(value); return *this;}
61
63
66 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
67 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
68 inline void SetCopyPrivateIp(bool value) { m_copyPrivateIpHasBeenSet = true; m_copyPrivateIp = value; }
69 inline UpdateLaunchConfigurationRequest& WithCopyPrivateIp(bool value) { SetCopyPrivateIp(value); return *this;}
71
73
76 inline bool GetCopyTags() const { return m_copyTags; }
77 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
78 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
79 inline UpdateLaunchConfigurationRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
81
83
86 inline bool GetEnableMapAutoTagging() const { return m_enableMapAutoTagging; }
87 inline bool EnableMapAutoTaggingHasBeenSet() const { return m_enableMapAutoTaggingHasBeenSet; }
88 inline void SetEnableMapAutoTagging(bool value) { m_enableMapAutoTaggingHasBeenSet = true; m_enableMapAutoTagging = value; }
91
93
96 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
97 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
98 inline void SetLaunchDisposition(LaunchDisposition value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; }
101
103
106 inline const Licensing& GetLicensing() const { return m_licensing; }
107 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
108 template<typename LicensingT = Licensing>
109 void SetLicensing(LicensingT&& value) { m_licensingHasBeenSet = true; m_licensing = std::forward<LicensingT>(value); }
110 template<typename LicensingT = Licensing>
111 UpdateLaunchConfigurationRequest& WithLicensing(LicensingT&& value) { SetLicensing(std::forward<LicensingT>(value)); return *this;}
113
115
118 inline const Aws::String& GetMapAutoTaggingMpeID() const { return m_mapAutoTaggingMpeID; }
119 inline bool MapAutoTaggingMpeIDHasBeenSet() const { return m_mapAutoTaggingMpeIDHasBeenSet; }
120 template<typename MapAutoTaggingMpeIDT = Aws::String>
121 void SetMapAutoTaggingMpeID(MapAutoTaggingMpeIDT&& value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID = std::forward<MapAutoTaggingMpeIDT>(value); }
122 template<typename MapAutoTaggingMpeIDT = Aws::String>
123 UpdateLaunchConfigurationRequest& WithMapAutoTaggingMpeID(MapAutoTaggingMpeIDT&& value) { SetMapAutoTaggingMpeID(std::forward<MapAutoTaggingMpeIDT>(value)); return *this;}
125
127
130 inline const Aws::String& GetName() const { return m_name; }
131 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
132 template<typename NameT = Aws::String>
133 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
134 template<typename NameT = Aws::String>
135 UpdateLaunchConfigurationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
137
139
140 inline const PostLaunchActions& GetPostLaunchActions() const { return m_postLaunchActions; }
141 inline bool PostLaunchActionsHasBeenSet() const { return m_postLaunchActionsHasBeenSet; }
142 template<typename PostLaunchActionsT = PostLaunchActions>
143 void SetPostLaunchActions(PostLaunchActionsT&& value) { m_postLaunchActionsHasBeenSet = true; m_postLaunchActions = std::forward<PostLaunchActionsT>(value); }
144 template<typename PostLaunchActionsT = PostLaunchActions>
145 UpdateLaunchConfigurationRequest& WithPostLaunchActions(PostLaunchActionsT&& value) { SetPostLaunchActions(std::forward<PostLaunchActionsT>(value)); return *this;}
147
149
152 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
153 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
154 template<typename SourceServerIDT = Aws::String>
155 void SetSourceServerID(SourceServerIDT&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::forward<SourceServerIDT>(value); }
156 template<typename SourceServerIDT = Aws::String>
157 UpdateLaunchConfigurationRequest& WithSourceServerID(SourceServerIDT&& value) { SetSourceServerID(std::forward<SourceServerIDT>(value)); return *this;}
159
161
164 inline TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const { return m_targetInstanceTypeRightSizingMethod; }
165 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
166 inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; }
169 private:
170
171 Aws::String m_accountID;
172 bool m_accountIDHasBeenSet = false;
173
174 BootMode m_bootMode{BootMode::NOT_SET};
175 bool m_bootModeHasBeenSet = false;
176
177 bool m_copyPrivateIp{false};
178 bool m_copyPrivateIpHasBeenSet = false;
179
180 bool m_copyTags{false};
181 bool m_copyTagsHasBeenSet = false;
182
183 bool m_enableMapAutoTagging{false};
184 bool m_enableMapAutoTaggingHasBeenSet = false;
185
187 bool m_launchDispositionHasBeenSet = false;
188
189 Licensing m_licensing;
190 bool m_licensingHasBeenSet = false;
191
192 Aws::String m_mapAutoTaggingMpeID;
193 bool m_mapAutoTaggingMpeIDHasBeenSet = false;
194
195 Aws::String m_name;
196 bool m_nameHasBeenSet = false;
197
198 PostLaunchActions m_postLaunchActions;
199 bool m_postLaunchActionsHasBeenSet = false;
200
201 Aws::String m_sourceServerID;
202 bool m_sourceServerIDHasBeenSet = false;
203
205 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace mgn
210} // 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