AWS SDK for C++

AWS SDK for C++ Version 1.11.740

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/TargetInstanceTypeRightSizingMethod.h>
13
14#include <utility>
15
16namespace Aws {
17namespace drs {
18namespace Model {
19
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateLaunchConfigurationTemplate"; }
31
32 AWS_DRS_API Aws::String SerializePayload() const override;
33
35
38 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
39 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
40 inline void SetCopyPrivateIp(bool value) {
41 m_copyPrivateIpHasBeenSet = true;
42 m_copyPrivateIp = value;
43 }
45 SetCopyPrivateIp(value);
46 return *this;
47 }
49
51
54 inline bool GetCopyTags() const { return m_copyTags; }
55 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
56 inline void SetCopyTags(bool value) {
57 m_copyTagsHasBeenSet = true;
58 m_copyTags = value;
59 }
61 SetCopyTags(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetExportBucketArn() const { return m_exportBucketArn; }
71 inline bool ExportBucketArnHasBeenSet() const { return m_exportBucketArnHasBeenSet; }
72 template <typename ExportBucketArnT = Aws::String>
73 void SetExportBucketArn(ExportBucketArnT&& value) {
74 m_exportBucketArnHasBeenSet = true;
75 m_exportBucketArn = std::forward<ExportBucketArnT>(value);
76 }
77 template <typename ExportBucketArnT = Aws::String>
79 SetExportBucketArn(std::forward<ExportBucketArnT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetLaunchConfigurationTemplateID() const { return m_launchConfigurationTemplateID; }
89 inline bool LaunchConfigurationTemplateIDHasBeenSet() const { return m_launchConfigurationTemplateIDHasBeenSet; }
90 template <typename LaunchConfigurationTemplateIDT = Aws::String>
91 void SetLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT&& value) {
92 m_launchConfigurationTemplateIDHasBeenSet = true;
93 m_launchConfigurationTemplateID = std::forward<LaunchConfigurationTemplateIDT>(value);
94 }
95 template <typename LaunchConfigurationTemplateIDT = Aws::String>
97 SetLaunchConfigurationTemplateID(std::forward<LaunchConfigurationTemplateIDT>(value));
98 return *this;
99 }
101
103
106 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
107 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
109 m_launchDispositionHasBeenSet = true;
110 m_launchDisposition = value;
111 }
114 return *this;
115 }
117
119
124 inline bool GetLaunchIntoSourceInstance() const { return m_launchIntoSourceInstance; }
125 inline bool LaunchIntoSourceInstanceHasBeenSet() const { return m_launchIntoSourceInstanceHasBeenSet; }
126 inline void SetLaunchIntoSourceInstance(bool value) {
127 m_launchIntoSourceInstanceHasBeenSet = true;
128 m_launchIntoSourceInstance = value;
129 }
132 return *this;
133 }
135
137
140 inline const Licensing& GetLicensing() const { return m_licensing; }
141 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
142 template <typename LicensingT = Licensing>
143 void SetLicensing(LicensingT&& value) {
144 m_licensingHasBeenSet = true;
145 m_licensing = std::forward<LicensingT>(value);
146 }
147 template <typename LicensingT = Licensing>
149 SetLicensing(std::forward<LicensingT>(value));
150 return *this;
151 }
153
155
158 inline bool GetPostLaunchEnabled() const { return m_postLaunchEnabled; }
159 inline bool PostLaunchEnabledHasBeenSet() const { return m_postLaunchEnabledHasBeenSet; }
160 inline void SetPostLaunchEnabled(bool value) {
161 m_postLaunchEnabledHasBeenSet = true;
162 m_postLaunchEnabled = value;
163 }
166 return *this;
167 }
169
171
175 return m_targetInstanceTypeRightSizingMethod;
176 }
177 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
179 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
180 m_targetInstanceTypeRightSizingMethod = value;
181 }
184 return *this;
185 }
187 private:
188 bool m_copyPrivateIp{false};
189
190 bool m_copyTags{false};
191
192 Aws::String m_exportBucketArn;
193
194 Aws::String m_launchConfigurationTemplateID;
195
197
198 bool m_launchIntoSourceInstance{false};
199
200 Licensing m_licensing;
201
202 bool m_postLaunchEnabled{false};
203
205 bool m_copyPrivateIpHasBeenSet = false;
206 bool m_copyTagsHasBeenSet = false;
207 bool m_exportBucketArnHasBeenSet = false;
208 bool m_launchConfigurationTemplateIDHasBeenSet = false;
209 bool m_launchDispositionHasBeenSet = false;
210 bool m_launchIntoSourceInstanceHasBeenSet = false;
211 bool m_licensingHasBeenSet = false;
212 bool m_postLaunchEnabledHasBeenSet = false;
213 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace drs
218} // namespace Aws
UpdateLaunchConfigurationTemplateRequest & WithLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT &&value)
UpdateLaunchConfigurationTemplateRequest & WithLaunchDisposition(LaunchDisposition value)
UpdateLaunchConfigurationTemplateRequest & WithPostLaunchEnabled(bool 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