AWS SDK for C++

AWS SDK for C++ Version 1.11.847

Loading...
Searching...
No Matches
UpdateLaunchConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/drs/Drs_EXPORTS.h>
10#include <aws/drs/model/LaunchDisposition.h>
11#include <aws/drs/model/LaunchIntoInstanceProperties.h>
12#include <aws/drs/model/Licensing.h>
13#include <aws/drs/model/RecoveryMode.h>
14#include <aws/drs/model/TargetInstanceTypeRightSizingMethod.h>
15
16#include <utility>
17
18namespace Aws {
19namespace drs {
20namespace Model {
21
25 public:
26 AWS_DRS_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_DRS_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
42 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
43 template <typename SourceServerIDT = Aws::String>
44 void SetSourceServerID(SourceServerIDT&& value) {
45 m_sourceServerIDHasBeenSet = true;
46 m_sourceServerID = std::forward<SourceServerIDT>(value);
47 }
48 template <typename SourceServerIDT = Aws::String>
50 SetSourceServerID(std::forward<SourceServerIDT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
78 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
80 m_launchDispositionHasBeenSet = true;
81 m_launchDisposition = value;
82 }
85 return *this;
86 }
88
90
95 return m_targetInstanceTypeRightSizingMethod;
96 }
97 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
99 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
100 m_targetInstanceTypeRightSizingMethod = value;
101 }
104 return *this;
105 }
107
109
113 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
114 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
115 inline void SetCopyPrivateIp(bool value) {
116 m_copyPrivateIpHasBeenSet = true;
117 m_copyPrivateIp = value;
118 }
120 SetCopyPrivateIp(value);
121 return *this;
122 }
124
126
130 inline bool GetCopyTags() const { return m_copyTags; }
131 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
132 inline void SetCopyTags(bool value) {
133 m_copyTagsHasBeenSet = true;
134 m_copyTags = value;
135 }
137 SetCopyTags(value);
138 return *this;
139 }
141
143
146 inline const Licensing& GetLicensing() const { return m_licensing; }
147 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
148 template <typename LicensingT = Licensing>
149 void SetLicensing(LicensingT&& value) {
150 m_licensingHasBeenSet = true;
151 m_licensing = std::forward<LicensingT>(value);
152 }
153 template <typename LicensingT = Licensing>
155 SetLicensing(std::forward<LicensingT>(value));
156 return *this;
157 }
159
161
164 inline bool GetPostLaunchEnabled() const { return m_postLaunchEnabled; }
165 inline bool PostLaunchEnabledHasBeenSet() const { return m_postLaunchEnabledHasBeenSet; }
166 inline void SetPostLaunchEnabled(bool value) {
167 m_postLaunchEnabledHasBeenSet = true;
168 m_postLaunchEnabled = value;
169 }
172 return *this;
173 }
175
177
180 inline const LaunchIntoInstanceProperties& GetLaunchIntoInstanceProperties() const { return m_launchIntoInstanceProperties; }
181 inline bool LaunchIntoInstancePropertiesHasBeenSet() const { return m_launchIntoInstancePropertiesHasBeenSet; }
182 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
183 void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT&& value) {
184 m_launchIntoInstancePropertiesHasBeenSet = true;
185 m_launchIntoInstanceProperties = std::forward<LaunchIntoInstancePropertiesT>(value);
186 }
187 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
189 SetLaunchIntoInstanceProperties(std::forward<LaunchIntoInstancePropertiesT>(value));
190 return *this;
191 }
193
195
198 inline RecoveryMode GetRecoveryMode() const { return m_recoveryMode; }
199 inline bool RecoveryModeHasBeenSet() const { return m_recoveryModeHasBeenSet; }
200 inline void SetRecoveryMode(RecoveryMode value) {
201 m_recoveryModeHasBeenSet = true;
202 m_recoveryMode = value;
203 }
205 SetRecoveryMode(value);
206 return *this;
207 }
209 private:
210 Aws::String m_sourceServerID;
211
212 Aws::String m_name;
213
215
217
218 bool m_copyPrivateIp{false};
219
220 bool m_copyTags{false};
221
222 Licensing m_licensing;
223
224 bool m_postLaunchEnabled{false};
225
226 LaunchIntoInstanceProperties m_launchIntoInstanceProperties;
227
228 RecoveryMode m_recoveryMode{RecoveryMode::NOT_SET};
229 bool m_sourceServerIDHasBeenSet = false;
230 bool m_nameHasBeenSet = false;
231 bool m_launchDispositionHasBeenSet = false;
232 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
233 bool m_copyPrivateIpHasBeenSet = false;
234 bool m_copyTagsHasBeenSet = false;
235 bool m_licensingHasBeenSet = false;
236 bool m_postLaunchEnabledHasBeenSet = false;
237 bool m_launchIntoInstancePropertiesHasBeenSet = false;
238 bool m_recoveryModeHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace drs
243} // namespace Aws
UpdateLaunchConfigurationRequest & WithCopyPrivateIp(bool value)
UpdateLaunchConfigurationRequest & WithPostLaunchEnabled(bool value)
AWS_DRS_API Aws::String SerializePayload() const override
const LaunchIntoInstanceProperties & GetLaunchIntoInstanceProperties() const
UpdateLaunchConfigurationRequest & WithLaunchDisposition(LaunchDisposition value)
void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT &&value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationRequest & WithLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT &&value)
TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const
UpdateLaunchConfigurationRequest & WithSourceServerID(SourceServerIDT &&value)
UpdateLaunchConfigurationRequest & WithLicensing(LicensingT &&value)
UpdateLaunchConfigurationRequest & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationRequest & WithRecoveryMode(RecoveryMode value)
UpdateLaunchConfigurationRequest & WithCopyTags(bool value)
UpdateLaunchConfigurationRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String