AWS SDK for C++

AWS SDK for C++ Version 1.11.850

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/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 {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace drs {
28namespace Model {
30 public:
31 AWS_DRS_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
107 return m_targetInstanceTypeRightSizingMethod;
108 }
110 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
111 m_targetInstanceTypeRightSizingMethod = value;
112 }
115 return *this;
116 }
118
120
124 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
125 inline void SetCopyPrivateIp(bool value) {
126 m_copyPrivateIpHasBeenSet = true;
127 m_copyPrivateIp = value;
128 }
130 SetCopyPrivateIp(value);
131 return *this;
132 }
134
136
140 inline bool GetCopyTags() const { return m_copyTags; }
141 inline void SetCopyTags(bool value) {
142 m_copyTagsHasBeenSet = true;
143 m_copyTags = value;
144 }
146 SetCopyTags(value);
147 return *this;
148 }
150
152
155 inline const Licensing& GetLicensing() const { return m_licensing; }
156 template <typename LicensingT = Licensing>
157 void SetLicensing(LicensingT&& value) {
158 m_licensingHasBeenSet = true;
159 m_licensing = std::forward<LicensingT>(value);
160 }
161 template <typename LicensingT = Licensing>
163 SetLicensing(std::forward<LicensingT>(value));
164 return *this;
165 }
167
169
172 inline bool GetPostLaunchEnabled() const { return m_postLaunchEnabled; }
173 inline void SetPostLaunchEnabled(bool value) {
174 m_postLaunchEnabledHasBeenSet = true;
175 m_postLaunchEnabled = value;
176 }
179 return *this;
180 }
182
184
187 inline const LaunchIntoInstanceProperties& GetLaunchIntoInstanceProperties() const { return m_launchIntoInstanceProperties; }
188 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
189 void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT&& value) {
190 m_launchIntoInstancePropertiesHasBeenSet = true;
191 m_launchIntoInstanceProperties = std::forward<LaunchIntoInstancePropertiesT>(value);
192 }
193 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
194 GetLaunchConfigurationResult& WithLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT&& value) {
195 SetLaunchIntoInstanceProperties(std::forward<LaunchIntoInstancePropertiesT>(value));
196 return *this;
197 }
199
201
204 inline RecoveryMode GetRecoveryMode() const { return m_recoveryMode; }
205 inline void SetRecoveryMode(RecoveryMode value) {
206 m_recoveryModeHasBeenSet = true;
207 m_recoveryMode = value;
208 }
210 SetRecoveryMode(value);
211 return *this;
212 }
214
216
217 inline const Aws::String& GetRequestId() const { return m_requestId; }
218 template <typename RequestIdT = Aws::String>
219 void SetRequestId(RequestIdT&& value) {
220 m_requestIdHasBeenSet = true;
221 m_requestId = std::forward<RequestIdT>(value);
222 }
223 template <typename RequestIdT = Aws::String>
225 SetRequestId(std::forward<RequestIdT>(value));
226 return *this;
227 }
229 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
230
231 private:
232 Aws::String m_sourceServerID;
233
234 Aws::String m_name;
235
236 Aws::String m_ec2LaunchTemplateID;
237
239
241
242 bool m_copyPrivateIp{false};
243
244 bool m_copyTags{false};
245
246 Licensing m_licensing;
247
248 bool m_postLaunchEnabled{false};
249
250 LaunchIntoInstanceProperties m_launchIntoInstanceProperties;
251
252 RecoveryMode m_recoveryMode{RecoveryMode::NOT_SET};
253
254 Aws::String m_requestId;
255 Aws::Http::HttpResponseCode m_HttpResponseCode;
256 bool m_sourceServerIDHasBeenSet = false;
257 bool m_nameHasBeenSet = false;
258 bool m_ec2LaunchTemplateIDHasBeenSet = false;
259 bool m_launchDispositionHasBeenSet = false;
260 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
261 bool m_copyPrivateIpHasBeenSet = false;
262 bool m_copyTagsHasBeenSet = false;
263 bool m_licensingHasBeenSet = false;
264 bool m_postLaunchEnabledHasBeenSet = false;
265 bool m_launchIntoInstancePropertiesHasBeenSet = false;
266 bool m_recoveryModeHasBeenSet = false;
267 bool m_requestIdHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace drs
272} // namespace Aws
GetLaunchConfigurationResult & WithCopyPrivateIp(bool value)
GetLaunchConfigurationResult & WithRecoveryMode(RecoveryMode value)
GetLaunchConfigurationResult & WithSourceServerID(SourceServerIDT &&value)
TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const
AWS_DRS_API GetLaunchConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLaunchConfigurationResult & WithLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT &&value)
GetLaunchConfigurationResult & WithEc2LaunchTemplateID(Ec2LaunchTemplateIDT &&value)
GetLaunchConfigurationResult & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
GetLaunchConfigurationResult & WithName(NameT &&value)
GetLaunchConfigurationResult & WithRequestId(RequestIdT &&value)
GetLaunchConfigurationResult & WithLaunchDisposition(LaunchDisposition value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
GetLaunchConfigurationResult & WithPostLaunchEnabled(bool value)
AWS_DRS_API GetLaunchConfigurationResult()=default
const LaunchIntoInstanceProperties & GetLaunchIntoInstanceProperties() const
GetLaunchConfigurationResult & WithCopyTags(bool value)
AWS_DRS_API GetLaunchConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT &&value)
GetLaunchConfigurationResult & WithLicensing(LicensingT &&value)
void SetEc2LaunchTemplateID(Ec2LaunchTemplateIDT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue