AWS SDK for C++

AWS SDK for C++ Version 1.11.740

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 bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
41 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
42 inline void SetCopyPrivateIp(bool value) {
43 m_copyPrivateIpHasBeenSet = true;
44 m_copyPrivateIp = value;
45 }
47 SetCopyPrivateIp(value);
48 return *this;
49 }
51
53
57 inline bool GetCopyTags() const { return m_copyTags; }
58 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
59 inline void SetCopyTags(bool value) {
60 m_copyTagsHasBeenSet = true;
61 m_copyTags = value;
62 }
64 SetCopyTags(value);
65 return *this;
66 }
68
70
73 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
74 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
76 m_launchDispositionHasBeenSet = true;
77 m_launchDisposition = value;
78 }
81 return *this;
82 }
84
86
89 inline const LaunchIntoInstanceProperties& GetLaunchIntoInstanceProperties() const { return m_launchIntoInstanceProperties; }
90 inline bool LaunchIntoInstancePropertiesHasBeenSet() const { return m_launchIntoInstancePropertiesHasBeenSet; }
91 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
92 void SetLaunchIntoInstanceProperties(LaunchIntoInstancePropertiesT&& value) {
93 m_launchIntoInstancePropertiesHasBeenSet = true;
94 m_launchIntoInstanceProperties = std::forward<LaunchIntoInstancePropertiesT>(value);
95 }
96 template <typename LaunchIntoInstancePropertiesT = LaunchIntoInstanceProperties>
98 SetLaunchIntoInstanceProperties(std::forward<LaunchIntoInstancePropertiesT>(value));
99 return *this;
100 }
102
104
107 inline const Licensing& GetLicensing() const { return m_licensing; }
108 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
109 template <typename LicensingT = Licensing>
110 void SetLicensing(LicensingT&& value) {
111 m_licensingHasBeenSet = true;
112 m_licensing = std::forward<LicensingT>(value);
113 }
114 template <typename LicensingT = Licensing>
116 SetLicensing(std::forward<LicensingT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetName() const { return m_name; }
126 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
127 template <typename NameT = Aws::String>
128 void SetName(NameT&& value) {
129 m_nameHasBeenSet = true;
130 m_name = std::forward<NameT>(value);
131 }
132 template <typename NameT = Aws::String>
134 SetName(std::forward<NameT>(value));
135 return *this;
136 }
138
140
143 inline bool GetPostLaunchEnabled() const { return m_postLaunchEnabled; }
144 inline bool PostLaunchEnabledHasBeenSet() const { return m_postLaunchEnabledHasBeenSet; }
145 inline void SetPostLaunchEnabled(bool value) {
146 m_postLaunchEnabledHasBeenSet = true;
147 m_postLaunchEnabled = value;
148 }
151 return *this;
152 }
154
156
160 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
161 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
162 template <typename SourceServerIDT = Aws::String>
163 void SetSourceServerID(SourceServerIDT&& value) {
164 m_sourceServerIDHasBeenSet = true;
165 m_sourceServerID = std::forward<SourceServerIDT>(value);
166 }
167 template <typename SourceServerIDT = Aws::String>
169 SetSourceServerID(std::forward<SourceServerIDT>(value));
170 return *this;
171 }
173
175
180 return m_targetInstanceTypeRightSizingMethod;
181 }
182 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
184 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
185 m_targetInstanceTypeRightSizingMethod = value;
186 }
189 return *this;
190 }
192 private:
193 bool m_copyPrivateIp{false};
194
195 bool m_copyTags{false};
196
198
199 LaunchIntoInstanceProperties m_launchIntoInstanceProperties;
200
201 Licensing m_licensing;
202
203 Aws::String m_name;
204
205 bool m_postLaunchEnabled{false};
206
207 Aws::String m_sourceServerID;
208
210 bool m_copyPrivateIpHasBeenSet = false;
211 bool m_copyTagsHasBeenSet = false;
212 bool m_launchDispositionHasBeenSet = false;
213 bool m_launchIntoInstancePropertiesHasBeenSet = false;
214 bool m_licensingHasBeenSet = false;
215 bool m_nameHasBeenSet = false;
216 bool m_postLaunchEnabledHasBeenSet = false;
217 bool m_sourceServerIDHasBeenSet = false;
218 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = 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