AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/TargetInstanceTypeRightSizingMethod.h>
14
15#include <utility>
16
17namespace Aws {
18namespace drs {
19namespace Model {
20
24 public:
25 AWS_DRS_API UpdateLaunchConfigurationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateLaunchConfiguration"; }
32
33 AWS_DRS_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
41 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
42 template <typename SourceServerIDT = Aws::String>
43 void SetSourceServerID(SourceServerIDT&& value) {
44 m_sourceServerIDHasBeenSet = true;
45 m_sourceServerID = std::forward<SourceServerIDT>(value);
46 }
47 template <typename SourceServerIDT = Aws::String>
49 SetSourceServerID(std::forward<SourceServerIDT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
77 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
79 m_launchDispositionHasBeenSet = true;
80 m_launchDisposition = value;
81 }
84 return *this;
85 }
87
89
94 return m_targetInstanceTypeRightSizingMethod;
95 }
96 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
98 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
99 m_targetInstanceTypeRightSizingMethod = value;
100 }
103 return *this;
104 }
106
108
112 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
113 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
114 inline void SetCopyPrivateIp(bool value) {
115 m_copyPrivateIpHasBeenSet = true;
116 m_copyPrivateIp = value;
117 }
119 SetCopyPrivateIp(value);
120 return *this;
121 }
123
125
129 inline bool GetCopyTags() const { return m_copyTags; }
130 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
131 inline void SetCopyTags(bool value) {
132 m_copyTagsHasBeenSet = true;
133 m_copyTags = value;
134 }
136 SetCopyTags(value);
137 return *this;
138 }
140
142
145 inline const Licensing& GetLicensing() const { return m_licensing; }
146 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
147 template <typename LicensingT = Licensing>
148 void SetLicensing(LicensingT&& value) {
149 m_licensingHasBeenSet = true;
150 m_licensing = std::forward<LicensingT>(value);
151 }
152 template <typename LicensingT = Licensing>
154 SetLicensing(std::forward<LicensingT>(value));
155 return *this;
156 }
158
160
163 inline bool GetPostLaunchEnabled() const { return m_postLaunchEnabled; }
164 inline bool PostLaunchEnabledHasBeenSet() const { return m_postLaunchEnabledHasBeenSet; }
165 inline void SetPostLaunchEnabled(bool value) {
166 m_postLaunchEnabledHasBeenSet = true;
167 m_postLaunchEnabled = value;
168 }
171 return *this;
172 }
174
176
179 inline const LaunchIntoInstanceProperties& GetLaunchIntoInstanceProperties() const { return m_launchIntoInstanceProperties; }
180 inline bool LaunchIntoInstancePropertiesHasBeenSet() const { return m_launchIntoInstancePropertiesHasBeenSet; }
181 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
182 void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT&& value) {
183 m_launchIntoInstancePropertiesHasBeenSet = true;
184 m_launchIntoInstanceProperties = std::forward<LaunchIntoInstancePropertiesT>(value);
185 }
186 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
188 SetLaunchIntoInstanceProperties(std::forward<LaunchIntoInstancePropertiesT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_sourceServerID;
194
195 Aws::String m_name;
196
198
200
201 bool m_copyPrivateIp{false};
202
203 bool m_copyTags{false};
204
205 Licensing m_licensing;
206
207 bool m_postLaunchEnabled{false};
208
209 LaunchIntoInstanceProperties m_launchIntoInstanceProperties;
210 bool m_sourceServerIDHasBeenSet = false;
211 bool m_nameHasBeenSet = false;
212 bool m_launchDispositionHasBeenSet = false;
213 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
214 bool m_copyPrivateIpHasBeenSet = false;
215 bool m_copyTagsHasBeenSet = false;
216 bool m_licensingHasBeenSet = false;
217 bool m_postLaunchEnabledHasBeenSet = false;
218 bool m_launchIntoInstancePropertiesHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace drs
223} // 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 & WithCopyTags(bool value)
UpdateLaunchConfigurationRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String