AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateLaunchConfigurationResult.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/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 drs {
27namespace Model {
29 public:
30 AWS_DRS_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
106 return m_targetInstanceTypeRightSizingMethod;
107 }
109 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
110 m_targetInstanceTypeRightSizingMethod = value;
111 }
114 return *this;
115 }
117
119
123 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
124 inline void SetCopyPrivateIp(bool value) {
125 m_copyPrivateIpHasBeenSet = true;
126 m_copyPrivateIp = value;
127 }
129 SetCopyPrivateIp(value);
130 return *this;
131 }
133
135
139 inline bool GetCopyTags() const { return m_copyTags; }
140 inline void SetCopyTags(bool value) {
141 m_copyTagsHasBeenSet = true;
142 m_copyTags = value;
143 }
145 SetCopyTags(value);
146 return *this;
147 }
149
151
154 inline const Licensing& GetLicensing() const { return m_licensing; }
155 template <typename LicensingT = Licensing>
156 void SetLicensing(LicensingT&& value) {
157 m_licensingHasBeenSet = true;
158 m_licensing = std::forward<LicensingT>(value);
159 }
160 template <typename LicensingT = Licensing>
162 SetLicensing(std::forward<LicensingT>(value));
163 return *this;
164 }
166
168
171 inline bool GetPostLaunchEnabled() const { return m_postLaunchEnabled; }
172 inline void SetPostLaunchEnabled(bool value) {
173 m_postLaunchEnabledHasBeenSet = true;
174 m_postLaunchEnabled = value;
175 }
178 return *this;
179 }
181
183
186 inline const LaunchIntoInstanceProperties& GetLaunchIntoInstanceProperties() const { return m_launchIntoInstanceProperties; }
187 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
188 void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT&& value) {
189 m_launchIntoInstancePropertiesHasBeenSet = true;
190 m_launchIntoInstanceProperties = std::forward<LaunchIntoInstancePropertiesT>(value);
191 }
192 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
194 SetLaunchIntoInstanceProperties(std::forward<LaunchIntoInstancePropertiesT>(value));
195 return *this;
196 }
198
200
201 inline const Aws::String& GetRequestId() const { return m_requestId; }
202 template <typename RequestIdT = Aws::String>
203 void SetRequestId(RequestIdT&& value) {
204 m_requestIdHasBeenSet = true;
205 m_requestId = std::forward<RequestIdT>(value);
206 }
207 template <typename RequestIdT = Aws::String>
209 SetRequestId(std::forward<RequestIdT>(value));
210 return *this;
211 }
213 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
214
215 private:
216 Aws::String m_sourceServerID;
217
218 Aws::String m_name;
219
220 Aws::String m_ec2LaunchTemplateID;
221
223
225
226 bool m_copyPrivateIp{false};
227
228 bool m_copyTags{false};
229
230 Licensing m_licensing;
231
232 bool m_postLaunchEnabled{false};
233
234 LaunchIntoInstanceProperties m_launchIntoInstanceProperties;
235
236 Aws::String m_requestId;
237 Aws::Http::HttpResponseCode m_HttpResponseCode;
238 bool m_sourceServerIDHasBeenSet = false;
239 bool m_nameHasBeenSet = false;
240 bool m_ec2LaunchTemplateIDHasBeenSet = false;
241 bool m_launchDispositionHasBeenSet = false;
242 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
243 bool m_copyPrivateIpHasBeenSet = false;
244 bool m_copyTagsHasBeenSet = false;
245 bool m_licensingHasBeenSet = false;
246 bool m_postLaunchEnabledHasBeenSet = false;
247 bool m_launchIntoInstancePropertiesHasBeenSet = false;
248 bool m_requestIdHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace drs
253} // namespace Aws
UpdateLaunchConfigurationResult & WithCopyPrivateIp(bool value)
AWS_DRS_API UpdateLaunchConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const LaunchIntoInstanceProperties & GetLaunchIntoInstanceProperties() const
UpdateLaunchConfigurationResult & WithLaunchDisposition(LaunchDisposition value)
UpdateLaunchConfigurationResult & WithSourceServerID(SourceServerIDT &&value)
UpdateLaunchConfigurationResult & WithName(NameT &&value)
TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethod() const
UpdateLaunchConfigurationResult & WithRequestId(RequestIdT &&value)
UpdateLaunchConfigurationResult & WithCopyTags(bool value)
UpdateLaunchConfigurationResult & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationResult & WithPostLaunchEnabled(bool value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT &&value)
UpdateLaunchConfigurationResult & WithLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT &&value)
AWS_DRS_API UpdateLaunchConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateLaunchConfigurationResult & WithLicensing(LicensingT &&value)
UpdateLaunchConfigurationResult & WithEc2LaunchTemplateID(Ec2LaunchTemplateIDT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue