AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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 const Aws::String& GetLaunchConfigurationTemplateID() const { return m_launchConfigurationTemplateID; }
39 inline bool LaunchConfigurationTemplateIDHasBeenSet() const { return m_launchConfigurationTemplateIDHasBeenSet; }
40 template <typename LaunchConfigurationTemplateIDT = Aws::String>
41 void SetLaunchConfigurationTemplateID(LaunchConfigurationTemplateIDT&& value) {
42 m_launchConfigurationTemplateIDHasBeenSet = true;
43 m_launchConfigurationTemplateID = std::forward<LaunchConfigurationTemplateIDT>(value);
44 }
45 template <typename LaunchConfigurationTemplateIDT = Aws::String>
47 SetLaunchConfigurationTemplateID(std::forward<LaunchConfigurationTemplateIDT>(value));
48 return *this;
49 }
51
53
56 inline LaunchDisposition GetLaunchDisposition() const { return m_launchDisposition; }
57 inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; }
59 m_launchDispositionHasBeenSet = true;
60 m_launchDisposition = value;
61 }
64 return *this;
65 }
67
69
73 return m_targetInstanceTypeRightSizingMethod;
74 }
75 inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; }
77 m_targetInstanceTypeRightSizingMethodHasBeenSet = true;
78 m_targetInstanceTypeRightSizingMethod = value;
79 }
82 return *this;
83 }
85
87
90 inline bool GetCopyPrivateIp() const { return m_copyPrivateIp; }
91 inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; }
92 inline void SetCopyPrivateIp(bool value) {
93 m_copyPrivateIpHasBeenSet = true;
94 m_copyPrivateIp = value;
95 }
97 SetCopyPrivateIp(value);
98 return *this;
99 }
101
103
106 inline bool GetCopyTags() const { return m_copyTags; }
107 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
108 inline void SetCopyTags(bool value) {
109 m_copyTagsHasBeenSet = true;
110 m_copyTags = value;
111 }
113 SetCopyTags(value);
114 return *this;
115 }
117
119
122 inline const Licensing& GetLicensing() const { return m_licensing; }
123 inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; }
124 template <typename LicensingT = Licensing>
125 void SetLicensing(LicensingT&& value) {
126 m_licensingHasBeenSet = true;
127 m_licensing = std::forward<LicensingT>(value);
128 }
129 template <typename LicensingT = Licensing>
131 SetLicensing(std::forward<LicensingT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetExportBucketArn() const { return m_exportBucketArn; }
141 inline bool ExportBucketArnHasBeenSet() const { return m_exportBucketArnHasBeenSet; }
142 template <typename ExportBucketArnT = Aws::String>
143 void SetExportBucketArn(ExportBucketArnT&& value) {
144 m_exportBucketArnHasBeenSet = true;
145 m_exportBucketArn = std::forward<ExportBucketArnT>(value);
146 }
147 template <typename ExportBucketArnT = Aws::String>
149 SetExportBucketArn(std::forward<ExportBucketArnT>(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
176 inline bool GetLaunchIntoSourceInstance() const { return m_launchIntoSourceInstance; }
177 inline bool LaunchIntoSourceInstanceHasBeenSet() const { return m_launchIntoSourceInstanceHasBeenSet; }
178 inline void SetLaunchIntoSourceInstance(bool value) {
179 m_launchIntoSourceInstanceHasBeenSet = true;
180 m_launchIntoSourceInstance = value;
181 }
184 return *this;
185 }
187 private:
188 Aws::String m_launchConfigurationTemplateID;
189
191
193
194 bool m_copyPrivateIp{false};
195
196 bool m_copyTags{false};
197
198 Licensing m_licensing;
199
200 Aws::String m_exportBucketArn;
201
202 bool m_postLaunchEnabled{false};
203
204 bool m_launchIntoSourceInstance{false};
205 bool m_launchConfigurationTemplateIDHasBeenSet = false;
206 bool m_launchDispositionHasBeenSet = false;
207 bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false;
208 bool m_copyPrivateIpHasBeenSet = false;
209 bool m_copyTagsHasBeenSet = false;
210 bool m_licensingHasBeenSet = false;
211 bool m_exportBucketArnHasBeenSet = false;
212 bool m_postLaunchEnabledHasBeenSet = false;
213 bool m_launchIntoSourceInstanceHasBeenSet = 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