AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
DescribeImageAttributeResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/AttributeValue.h>
12#include <aws/ec2/model/BlockDeviceMapping.h>
13#include <aws/ec2/model/LaunchPermission.h>
14#include <aws/ec2/model/ProductCode.h>
15#include <aws/ec2/model/ResponseMetadata.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Xml {
25class XmlDocument;
26} // namespace Xml
27} // namespace Utils
28namespace EC2 {
29namespace Model {
36 public:
37 AWS_EC2_API DescribeImageAttributeResponse() = default;
40
42
45 inline const AttributeValue& GetDescription() const { return m_description; }
46 template <typename DescriptionT = AttributeValue>
47 void SetDescription(DescriptionT&& value) {
48 m_descriptionHasBeenSet = true;
49 m_description = std::forward<DescriptionT>(value);
50 }
51 template <typename DescriptionT = AttributeValue>
53 SetDescription(std::forward<DescriptionT>(value));
54 return *this;
55 }
57
59
62 inline const AttributeValue& GetKernelId() const { return m_kernelId; }
63 template <typename KernelIdT = AttributeValue>
64 void SetKernelId(KernelIdT&& value) {
65 m_kernelIdHasBeenSet = true;
66 m_kernelId = std::forward<KernelIdT>(value);
67 }
68 template <typename KernelIdT = AttributeValue>
70 SetKernelId(std::forward<KernelIdT>(value));
71 return *this;
72 }
74
76
79 inline const AttributeValue& GetRamdiskId() const { return m_ramdiskId; }
80 template <typename RamdiskIdT = AttributeValue>
81 void SetRamdiskId(RamdiskIdT&& value) {
82 m_ramdiskIdHasBeenSet = true;
83 m_ramdiskId = std::forward<RamdiskIdT>(value);
84 }
85 template <typename RamdiskIdT = AttributeValue>
87 SetRamdiskId(std::forward<RamdiskIdT>(value));
88 return *this;
89 }
91
93
97 inline const AttributeValue& GetSriovNetSupport() const { return m_sriovNetSupport; }
98 template <typename SriovNetSupportT = AttributeValue>
99 void SetSriovNetSupport(SriovNetSupportT&& value) {
100 m_sriovNetSupportHasBeenSet = true;
101 m_sriovNetSupport = std::forward<SriovNetSupportT>(value);
102 }
103 template <typename SriovNetSupportT = AttributeValue>
105 SetSriovNetSupport(std::forward<SriovNetSupportT>(value));
106 return *this;
107 }
109
111
114 inline const AttributeValue& GetBootMode() const { return m_bootMode; }
115 template <typename BootModeT = AttributeValue>
116 void SetBootMode(BootModeT&& value) {
117 m_bootModeHasBeenSet = true;
118 m_bootMode = std::forward<BootModeT>(value);
119 }
120 template <typename BootModeT = AttributeValue>
122 SetBootMode(std::forward<BootModeT>(value));
123 return *this;
124 }
126
128
132 inline const AttributeValue& GetTpmSupport() const { return m_tpmSupport; }
133 template <typename TpmSupportT = AttributeValue>
134 void SetTpmSupport(TpmSupportT&& value) {
135 m_tpmSupportHasBeenSet = true;
136 m_tpmSupport = std::forward<TpmSupportT>(value);
137 }
138 template <typename TpmSupportT = AttributeValue>
140 SetTpmSupport(std::forward<TpmSupportT>(value));
141 return *this;
142 }
144
146
157 inline const AttributeValue& GetUefiData() const { return m_uefiData; }
158 template <typename UefiDataT = AttributeValue>
159 void SetUefiData(UefiDataT&& value) {
160 m_uefiDataHasBeenSet = true;
161 m_uefiData = std::forward<UefiDataT>(value);
162 }
163 template <typename UefiDataT = AttributeValue>
165 SetUefiData(std::forward<UefiDataT>(value));
166 return *this;
167 }
169
171
178 inline const AttributeValue& GetLastLaunchedTime() const { return m_lastLaunchedTime; }
179 template <typename LastLaunchedTimeT = AttributeValue>
180 void SetLastLaunchedTime(LastLaunchedTimeT&& value) {
181 m_lastLaunchedTimeHasBeenSet = true;
182 m_lastLaunchedTime = std::forward<LastLaunchedTimeT>(value);
183 }
184 template <typename LastLaunchedTimeT = AttributeValue>
186 SetLastLaunchedTime(std::forward<LastLaunchedTimeT>(value));
187 return *this;
188 }
190
192
202 inline const AttributeValue& GetImdsSupport() const { return m_imdsSupport; }
203 template <typename ImdsSupportT = AttributeValue>
204 void SetImdsSupport(ImdsSupportT&& value) {
205 m_imdsSupportHasBeenSet = true;
206 m_imdsSupport = std::forward<ImdsSupportT>(value);
207 }
208 template <typename ImdsSupportT = AttributeValue>
210 SetImdsSupport(std::forward<ImdsSupportT>(value));
211 return *this;
212 }
214
216
219 inline const AttributeValue& GetDeregistrationProtection() const { return m_deregistrationProtection; }
220 template <typename DeregistrationProtectionT = AttributeValue>
221 void SetDeregistrationProtection(DeregistrationProtectionT&& value) {
222 m_deregistrationProtectionHasBeenSet = true;
223 m_deregistrationProtection = std::forward<DeregistrationProtectionT>(value);
224 }
225 template <typename DeregistrationProtectionT = AttributeValue>
227 SetDeregistrationProtection(std::forward<DeregistrationProtectionT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::String& GetImageId() const { return m_imageId; }
237 template <typename ImageIdT = Aws::String>
238 void SetImageId(ImageIdT&& value) {
239 m_imageIdHasBeenSet = true;
240 m_imageId = std::forward<ImageIdT>(value);
241 }
242 template <typename ImageIdT = Aws::String>
244 SetImageId(std::forward<ImageIdT>(value));
245 return *this;
246 }
248
250
253 inline const Aws::Vector<LaunchPermission>& GetLaunchPermissions() const { return m_launchPermissions; }
254 template <typename LaunchPermissionsT = Aws::Vector<LaunchPermission>>
255 void SetLaunchPermissions(LaunchPermissionsT&& value) {
256 m_launchPermissionsHasBeenSet = true;
257 m_launchPermissions = std::forward<LaunchPermissionsT>(value);
258 }
259 template <typename LaunchPermissionsT = Aws::Vector<LaunchPermission>>
261 SetLaunchPermissions(std::forward<LaunchPermissionsT>(value));
262 return *this;
263 }
264 template <typename LaunchPermissionsT = LaunchPermission>
266 m_launchPermissionsHasBeenSet = true;
267 m_launchPermissions.emplace_back(std::forward<LaunchPermissionsT>(value));
268 return *this;
269 }
271
273
276 inline const Aws::Vector<ProductCode>& GetProductCodes() const { return m_productCodes; }
277 template <typename ProductCodesT = Aws::Vector<ProductCode>>
278 void SetProductCodes(ProductCodesT&& value) {
279 m_productCodesHasBeenSet = true;
280 m_productCodes = std::forward<ProductCodesT>(value);
281 }
282 template <typename ProductCodesT = Aws::Vector<ProductCode>>
284 SetProductCodes(std::forward<ProductCodesT>(value));
285 return *this;
286 }
287 template <typename ProductCodesT = ProductCode>
289 m_productCodesHasBeenSet = true;
290 m_productCodes.emplace_back(std::forward<ProductCodesT>(value));
291 return *this;
292 }
294
296
299 inline const Aws::Vector<BlockDeviceMapping>& GetBlockDeviceMappings() const { return m_blockDeviceMappings; }
300 template <typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
301 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) {
302 m_blockDeviceMappingsHasBeenSet = true;
303 m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value);
304 }
305 template <typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
307 SetBlockDeviceMappings(std::forward<BlockDeviceMappingsT>(value));
308 return *this;
309 }
310 template <typename BlockDeviceMappingsT = BlockDeviceMapping>
312 m_blockDeviceMappingsHasBeenSet = true;
313 m_blockDeviceMappings.emplace_back(std::forward<BlockDeviceMappingsT>(value));
314 return *this;
315 }
317
319
320 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
321 template <typename ResponseMetadataT = ResponseMetadata>
322 void SetResponseMetadata(ResponseMetadataT&& value) {
323 m_responseMetadataHasBeenSet = true;
324 m_responseMetadata = std::forward<ResponseMetadataT>(value);
325 }
326 template <typename ResponseMetadataT = ResponseMetadata>
328 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
329 return *this;
330 }
332 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
333
334 private:
335 AttributeValue m_description;
336
337 AttributeValue m_kernelId;
338
339 AttributeValue m_ramdiskId;
340
341 AttributeValue m_sriovNetSupport;
342
343 AttributeValue m_bootMode;
344
345 AttributeValue m_tpmSupport;
346
347 AttributeValue m_uefiData;
348
349 AttributeValue m_lastLaunchedTime;
350
351 AttributeValue m_imdsSupport;
352
353 AttributeValue m_deregistrationProtection;
354
355 Aws::String m_imageId;
356
357 Aws::Vector<LaunchPermission> m_launchPermissions;
358
359 Aws::Vector<ProductCode> m_productCodes;
360
361 Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
362
363 ResponseMetadata m_responseMetadata;
364 Aws::Http::HttpResponseCode m_HttpResponseCode;
365 bool m_descriptionHasBeenSet = false;
366 bool m_kernelIdHasBeenSet = false;
367 bool m_ramdiskIdHasBeenSet = false;
368 bool m_sriovNetSupportHasBeenSet = false;
369 bool m_bootModeHasBeenSet = false;
370 bool m_tpmSupportHasBeenSet = false;
371 bool m_uefiDataHasBeenSet = false;
372 bool m_lastLaunchedTimeHasBeenSet = false;
373 bool m_imdsSupportHasBeenSet = false;
374 bool m_deregistrationProtectionHasBeenSet = false;
375 bool m_imageIdHasBeenSet = false;
376 bool m_launchPermissionsHasBeenSet = false;
377 bool m_productCodesHasBeenSet = false;
378 bool m_blockDeviceMappingsHasBeenSet = false;
379 bool m_responseMetadataHasBeenSet = false;
380};
381
382} // namespace Model
383} // namespace EC2
384} // namespace Aws
DescribeImageAttributeResponse & WithKernelId(KernelIdT &&value)
DescribeImageAttributeResponse & WithLaunchPermissions(LaunchPermissionsT &&value)
DescribeImageAttributeResponse & WithUefiData(UefiDataT &&value)
DescribeImageAttributeResponse & WithSriovNetSupport(SriovNetSupportT &&value)
AWS_EC2_API DescribeImageAttributeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeImageAttributeResponse & AddProductCodes(ProductCodesT &&value)
const Aws::Vector< LaunchPermission > & GetLaunchPermissions() const
DescribeImageAttributeResponse & WithLastLaunchedTime(LastLaunchedTimeT &&value)
void SetDeregistrationProtection(DeregistrationProtectionT &&value)
DescribeImageAttributeResponse & WithProductCodes(ProductCodesT &&value)
DescribeImageAttributeResponse & WithTpmSupport(TpmSupportT &&value)
DescribeImageAttributeResponse & WithDescription(DescriptionT &&value)
DescribeImageAttributeResponse & WithDeregistrationProtection(DeregistrationProtectionT &&value)
DescribeImageAttributeResponse & WithBootMode(BootModeT &&value)
DescribeImageAttributeResponse & AddLaunchPermissions(LaunchPermissionsT &&value)
DescribeImageAttributeResponse & WithBlockDeviceMappings(BlockDeviceMappingsT &&value)
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
AWS_EC2_API DescribeImageAttributeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeImageAttributeResponse & WithImageId(ImageIdT &&value)
DescribeImageAttributeResponse & WithResponseMetadata(ResponseMetadataT &&value)
DescribeImageAttributeResponse & WithRamdiskId(RamdiskIdT &&value)
DescribeImageAttributeResponse & WithImdsSupport(ImdsSupportT &&value)
const Aws::Vector< ProductCode > & GetProductCodes() const
DescribeImageAttributeResponse & AddBlockDeviceMappings(BlockDeviceMappingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument