AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
UpdateLaunchConfigurationResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/Drs_EXPORTS.h>
9#include <aws/drs/model/LaunchDisposition.h>
10#include <aws/drs/model/LaunchIntoInstanceProperties.h>
11#include <aws/drs/model/Licensing.h>
12#include <aws/drs/model/TargetInstanceTypeRightSizingMethod.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace drs {
26namespace Model {
28 public:
29 AWS_DRS_API UpdateLaunchConfigurationResult() = default;
32
34
38 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
39 inline void SetCopyPrivateIp(bool value) {
40 m_copyPrivateIpHasBeenSet = true;
41 m_copyPrivateIp = value;
42 }
44 SetCopyPrivateIp(value);
45 return *this;
46 }
48
50
54 inline bool GetCopyTags() const { return m_copyTags; }
55 inline void SetCopyTags(bool value) {
56 m_copyTagsHasBeenSet = true;
57 m_copyTags = value;
58 }
60 SetCopyTags(value);
61 return *this;
62 }
64
66
69 inline const Aws::String& GetEc2LaunchTemplateID() const { return m_ec2LaunchTemplateID; }
70 template <typename Ec2LaunchTemplateIDT = Aws::String>
71 void SetEc2LaunchTemplateID(Ec2LaunchTemplateIDT&& value) {
72 m_ec2LaunchTemplateIDHasBeenSet = true;
73 m_ec2LaunchTemplateID = std::forward<Ec2LaunchTemplateIDT>(value);
74 }
75 template <typename Ec2LaunchTemplateIDT = Aws::String>
77 SetEc2LaunchTemplateID(std::forward<Ec2LaunchTemplateIDT>(value));
78 return *this;
79 }
81
83
86 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
88 m_launchDispositionHasBeenSet = true;
89 m_launchDisposition = value;
90 }
93 return *this;
94 }
96
98
101 inline const LaunchIntoInstanceProperties& GetLaunchIntoInstanceProperties() const { return m_launchIntoInstanceProperties; }
102 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
103 void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT&& value) {
104 m_launchIntoInstancePropertiesHasBeenSet = true;
105 m_launchIntoInstanceProperties = std::forward<LaunchIntoInstancePropertiesT>(value);
106 }
107 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
109 SetLaunchIntoInstanceProperties(std::forward<LaunchIntoInstancePropertiesT>(value));
110 return *this;
111 }
113
115
118 inline const Licensing& GetLicensing() const { return m_licensing; }
119 template <typename LicensingT = Licensing>
120 void SetLicensing(LicensingT&& value) {
121 m_licensingHasBeenSet = true;
122 m_licensing = std::forward<LicensingT>(value);
123 }
124 template <typename LicensingT = Licensing>
126 SetLicensing(std::forward<LicensingT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetName() const { return m_name; }
136 template <typename NameT = Aws::String>
137 void SetName(NameT&& value) {
138 m_nameHasBeenSet = true;
139 m_name = std::forward<NameT>(value);
140 }
141 template <typename NameT = Aws::String>
143 SetName(std::forward<NameT>(value));
144 return *this;
145 }
147
149
152 inline bool GetPostLaunchEnabled() const { return m_postLaunchEnabled; }
153 inline void SetPostLaunchEnabled(bool value) {
154 m_postLaunchEnabledHasBeenSet = true;
155 m_postLaunchEnabled = value;
156 }
159 return *this;
160 }
162
164
167 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
168 template <typename SourceServerIDT = Aws::String>
169 void SetSourceServerID(SourceServerIDT&& value) {
170 m_sourceServerIDHasBeenSet = true;
171 m_sourceServerID = std::forward<SourceServerIDT>(value);
172 }
173 template <typename SourceServerIDT = Aws::String>
175 SetSourceServerID(std::forward<SourceServerIDT>(value));
176 return *this;
177 }
179
181
186 return m_targetInstanceTypeRightSizingMethod;
187 }
189 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
190 m_targetInstanceTypeRightSizingMethod = value;
191 }
194 return *this;
195 }
197
199
200 inline const Aws::String& GetRequestId() const { return m_requestId; }
201 template <typename RequestIdT = Aws::String>
202 void SetRequestId(RequestIdT&& value) {
203 m_requestIdHasBeenSet = true;
204 m_requestId = std::forward<RequestIdT>(value);
205 }
206 template <typename RequestIdT = Aws::String>
208 SetRequestId(std::forward<RequestIdT>(value));
209 return *this;
210 }
212 private:
213 bool m_copyPrivateIp{false};
214
215 bool m_copyTags{false};
216
217 Aws::String m_ec2LaunchTemplateID;
218
220
221 LaunchIntoInstanceProperties m_launchIntoInstanceProperties;
222
223 Licensing m_licensing;
224
225 Aws::String m_name;
226
227 bool m_postLaunchEnabled{false};
228
229 Aws::String m_sourceServerID;
230
232
233 Aws::String m_requestId;
234 bool m_copyPrivateIpHasBeenSet = false;
235 bool m_copyTagsHasBeenSet = false;
236 bool m_ec2LaunchTemplateIDHasBeenSet = false;
237 bool m_launchDispositionHasBeenSet = false;
238 bool m_launchIntoInstancePropertiesHasBeenSet = false;
239 bool m_licensingHasBeenSet = false;
240 bool m_nameHasBeenSet = false;
241 bool m_postLaunchEnabledHasBeenSet = false;
242 bool m_sourceServerIDHasBeenSet = false;
243 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
244 bool m_requestIdHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace drs
249} // 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