AWS SDK for C++

AWS SDK for C++ Version 1.11.848

Loading...
Searching...
No Matches
UpdateLaunchConfigurationTemplateRequest.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/Licensing.h>
12#include <aws/drs/model/RecoveryMode.h>
13#include <aws/drs/model/TargetInstanceTypeRightSizingMethod.h>
14
15#include <utility>
16
17namespace Aws {
18namespace drs {
19namespace Model {
20
24 public:
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 "UpdateLaunchConfigurationTemplate"; }
32
33 AWS_DRS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetLaunchConfigurationTemplateID() const { return m_launchConfigurationTemplateID; }
40 inline bool LaunchConfigurationTemplateIDHasBeenSet() const { return m_launchConfigurationTemplateIDHasBeenSet; }
41 template <typename LaunchConfigurationTemplateIDT = Aws::String>
42 void SetLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT&& value) {
43 m_launchConfigurationTemplateIDHasBeenSet = true;
44 m_launchConfigurationTemplateID = std::forward<LaunchConfigurationTemplateIDT>(value);
45 }
46 template <typename LaunchConfigurationTemplateIDT = Aws::String>
48 SetLaunchConfigurationTemplateID(std::forward<LaunchConfigurationTemplateIDT>(value));
49 return *this;
50 }
52
54
57 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
58 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
60 m_launchDispositionHasBeenSet = true;
61 m_launchDisposition = value;
62 }
65 return *this;
66 }
68
70
74 return m_targetInstanceTypeRightSizingMethod;
75 }
76 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
78 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
79 m_targetInstanceTypeRightSizingMethod = value;
80 }
83 return *this;
84 }
86
88
91 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
92 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
93 inline void SetCopyPrivateIp(bool value) {
94 m_copyPrivateIpHasBeenSet = true;
95 m_copyPrivateIp = value;
96 }
98 SetCopyPrivateIp(value);
99 return *this;
100 }
102
104
107 inline bool GetCopyTags() const { return m_copyTags; }
108 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
109 inline void SetCopyTags(bool value) {
110 m_copyTagsHasBeenSet = true;
111 m_copyTags = value;
112 }
114 SetCopyTags(value);
115 return *this;
116 }
118
120
123 inline const Licensing& GetLicensing() const { return m_licensing; }
124 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
125 template <typename LicensingT = Licensing>
126 void SetLicensing(LicensingT&& value) {
127 m_licensingHasBeenSet = true;
128 m_licensing = std::forward<LicensingT>(value);
129 }
130 template <typename LicensingT = Licensing>
132 SetLicensing(std::forward<LicensingT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetExportBucketArn() const { return m_exportBucketArn; }
142 inline bool ExportBucketArnHasBeenSet() const { return m_exportBucketArnHasBeenSet; }
143 template <typename ExportBucketArnT = Aws::String>
144 void SetExportBucketArn(ExportBucketArnT&& value) {
145 m_exportBucketArnHasBeenSet = true;
146 m_exportBucketArn = std::forward<ExportBucketArnT>(value);
147 }
148 template <typename ExportBucketArnT = Aws::String>
150 SetExportBucketArn(std::forward<ExportBucketArnT>(value));
151 return *this;
152 }
154
156
159 inline bool GetPostLaunchEnabled() const { return m_postLaunchEnabled; }
160 inline bool PostLaunchEnabledHasBeenSet() const { return m_postLaunchEnabledHasBeenSet; }
161 inline void SetPostLaunchEnabled(bool value) {
162 m_postLaunchEnabledHasBeenSet = true;
163 m_postLaunchEnabled = value;
164 }
167 return *this;
168 }
170
172
177 inline bool GetLaunchIntoSourceInstance() const { return m_launchIntoSourceInstance; }
178 inline bool LaunchIntoSourceInstanceHasBeenSet() const { return m_launchIntoSourceInstanceHasBeenSet; }
179 inline void SetLaunchIntoSourceInstance(bool value) {
180 m_launchIntoSourceInstanceHasBeenSet = true;
181 m_launchIntoSourceInstance = value;
182 }
185 return *this;
186 }
188
190
193 inline RecoveryMode GetRecoveryMode() const { return m_recoveryMode; }
194 inline bool RecoveryModeHasBeenSet() const { return m_recoveryModeHasBeenSet; }
195 inline void SetRecoveryMode(RecoveryMode value) {
196 m_recoveryModeHasBeenSet = true;
197 m_recoveryMode = value;
198 }
200 SetRecoveryMode(value);
201 return *this;
202 }
204 private:
205 Aws::String m_launchConfigurationTemplateID;
206
208
210
211 bool m_copyPrivateIp{false};
212
213 bool m_copyTags{false};
214
215 Licensing m_licensing;
216
217 Aws::String m_exportBucketArn;
218
219 bool m_postLaunchEnabled{false};
220
221 bool m_launchIntoSourceInstance{false};
222
223 RecoveryMode m_recoveryMode{RecoveryMode::NOT_SET};
224 bool m_launchConfigurationTemplateIDHasBeenSet = false;
225 bool m_launchDispositionHasBeenSet = false;
226 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
227 bool m_copyPrivateIpHasBeenSet = false;
228 bool m_copyTagsHasBeenSet = false;
229 bool m_licensingHasBeenSet = false;
230 bool m_exportBucketArnHasBeenSet = false;
231 bool m_postLaunchEnabledHasBeenSet = false;
232 bool m_launchIntoSourceInstanceHasBeenSet = false;
233 bool m_recoveryModeHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace drs
238} // namespace Aws
UpdateLaunchConfigurationTemplateRequest & WithLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT &&value)
UpdateLaunchConfigurationTemplateRequest & WithLaunchDisposition(LaunchDisposition value)
UpdateLaunchConfigurationTemplateRequest & WithPostLaunchEnabled(bool value)
UpdateLaunchConfigurationTemplateRequest & WithRecoveryMode(RecoveryMode value)
UpdateLaunchConfigurationTemplateRequest & WithLaunchIntoSourceInstance(bool value)
UpdateLaunchConfigurationTemplateRequest & WithCopyPrivateIp(bool value)
UpdateLaunchConfigurationTemplateRequest & WithExportBucketArn(ExportBucketArnT &&value)
void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
UpdateLaunchConfigurationTemplateRequest & WithCopyTags(bool value)
UpdateLaunchConfigurationTemplateRequest & WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod value)
AWS_DRS_API Aws::String SerializePayload() const override
UpdateLaunchConfigurationTemplateRequest & WithLicensing(LicensingT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String