AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeImageAttributeResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/AttributeValue.h>
11#include <aws/ec2/model/BlockDeviceMapping.h>
12#include <aws/ec2/model/LaunchPermission.h>
13#include <aws/ec2/model/ProductCode.h>
14#include <aws/ec2/model/ResponseMetadata.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Xml {
24class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace EC2 {
28namespace Model {
35 public:
36 AWS_EC2_API DescribeImageAttributeResponse() = default;
39
41
44 inline const AttributeValue& GetDescription() const { return m_description; }
45 template <typename DescriptionT = AttributeValue>
46 void SetDescription(DescriptionT&& value) {
47 m_descriptionHasBeenSet = true;
48 m_description = std::forward<DescriptionT>(value);
49 }
50 template <typename DescriptionT = AttributeValue>
52 SetDescription(std::forward<DescriptionT>(value));
53 return *this;
54 }
56
58
61 inline const AttributeValue& GetKernelId() const { return m_kernelId; }
62 template <typename KernelIdT = AttributeValue>
63 void SetKernelId(KernelIdT&& value) {
64 m_kernelIdHasBeenSet = true;
65 m_kernelId = std::forward<KernelIdT>(value);
66 }
67 template <typename KernelIdT = AttributeValue>
69 SetKernelId(std::forward<KernelIdT>(value));
70 return *this;
71 }
73
75
78 inline const AttributeValue& GetRamdiskId() const { return m_ramdiskId; }
79 template <typename RamdiskIdT = AttributeValue>
80 void SetRamdiskId(RamdiskIdT&& value) {
81 m_ramdiskIdHasBeenSet = true;
82 m_ramdiskId = std::forward<RamdiskIdT>(value);
83 }
84 template <typename RamdiskIdT = AttributeValue>
86 SetRamdiskId(std::forward<RamdiskIdT>(value));
87 return *this;
88 }
90
92
96 inline const AttributeValue& GetSriovNetSupport() const { return m_sriovNetSupport; }
97 template <typename SriovNetSupportT = AttributeValue>
98 void SetSriovNetSupport(SriovNetSupportT&& value) {
99 m_sriovNetSupportHasBeenSet = true;
100 m_sriovNetSupport = std::forward<SriovNetSupportT>(value);
101 }
102 template <typename SriovNetSupportT = AttributeValue>
104 SetSriovNetSupport(std::forward<SriovNetSupportT>(value));
105 return *this;
106 }
108
110
113 inline const AttributeValue& GetBootMode() const { return m_bootMode; }
114 template <typename BootModeT = AttributeValue>
115 void SetBootMode(BootModeT&& value) {
116 m_bootModeHasBeenSet = true;
117 m_bootMode = std::forward<BootModeT>(value);
118 }
119 template <typename BootModeT = AttributeValue>
121 SetBootMode(std::forward<BootModeT>(value));
122 return *this;
123 }
125
127
131 inline const AttributeValue& GetTpmSupport() const { return m_tpmSupport; }
132 template <typename TpmSupportT = AttributeValue>
133 void SetTpmSupport(TpmSupportT&& value) {
134 m_tpmSupportHasBeenSet = true;
135 m_tpmSupport = std::forward<TpmSupportT>(value);
136 }
137 template <typename TpmSupportT = AttributeValue>
139 SetTpmSupport(std::forward<TpmSupportT>(value));
140 return *this;
141 }
143
145
156 inline const AttributeValue& GetUefiData() const { return m_uefiData; }
157 template <typename UefiDataT = AttributeValue>
158 void SetUefiData(UefiDataT&& value) {
159 m_uefiDataHasBeenSet = true;
160 m_uefiData = std::forward<UefiDataT>(value);
161 }
162 template <typename UefiDataT = AttributeValue>
164 SetUefiData(std::forward<UefiDataT>(value));
165 return *this;
166 }
168
170
177 inline const AttributeValue& GetLastLaunchedTime() const { return m_lastLaunchedTime; }
178 template <typename LastLaunchedTimeT = AttributeValue>
179 void SetLastLaunchedTime(LastLaunchedTimeT&& value) {
180 m_lastLaunchedTimeHasBeenSet = true;
181 m_lastLaunchedTime = std::forward<LastLaunchedTimeT>(value);
182 }
183 template <typename LastLaunchedTimeT = AttributeValue>
185 SetLastLaunchedTime(std::forward<LastLaunchedTimeT>(value));
186 return *this;
187 }
189
191
201 inline const AttributeValue& GetImdsSupport() const { return m_imdsSupport; }
202 template <typename ImdsSupportT = AttributeValue>
203 void SetImdsSupport(ImdsSupportT&& value) {
204 m_imdsSupportHasBeenSet = true;
205 m_imdsSupport = std::forward<ImdsSupportT>(value);
206 }
207 template <typename ImdsSupportT = AttributeValue>
209 SetImdsSupport(std::forward<ImdsSupportT>(value));
210 return *this;
211 }
213
215
218 inline const AttributeValue& GetDeregistrationProtection() const { return m_deregistrationProtection; }
219 template <typename DeregistrationProtectionT = AttributeValue>
220 void SetDeregistrationProtection(DeregistrationProtectionT&& value) {
221 m_deregistrationProtectionHasBeenSet = true;
222 m_deregistrationProtection = std::forward<DeregistrationProtectionT>(value);
223 }
224 template <typename DeregistrationProtectionT = AttributeValue>
226 SetDeregistrationProtection(std::forward<DeregistrationProtectionT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::String& GetImageId() const { return m_imageId; }
236 template <typename ImageIdT = Aws::String>
237 void SetImageId(ImageIdT&& value) {
238 m_imageIdHasBeenSet = true;
239 m_imageId = std::forward<ImageIdT>(value);
240 }
241 template <typename ImageIdT = Aws::String>
243 SetImageId(std::forward<ImageIdT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::Vector<LaunchPermission>& GetLaunchPermissions() const { return m_launchPermissions; }
253 template <typename LaunchPermissionsT = Aws::Vector<LaunchPermission>>
254 void SetLaunchPermissions(LaunchPermissionsT&& value) {
255 m_launchPermissionsHasBeenSet = true;
256 m_launchPermissions = std::forward<LaunchPermissionsT>(value);
257 }
258 template <typename LaunchPermissionsT = Aws::Vector<LaunchPermission>>
260 SetLaunchPermissions(std::forward<LaunchPermissionsT>(value));
261 return *this;
262 }
263 template <typename LaunchPermissionsT = LaunchPermission>
265 m_launchPermissionsHasBeenSet = true;
266 m_launchPermissions.emplace_back(std::forward<LaunchPermissionsT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::Vector<ProductCode>& GetProductCodes() const { return m_productCodes; }
276 template <typename ProductCodesT = Aws::Vector<ProductCode>>
277 void SetProductCodes(ProductCodesT&& value) {
278 m_productCodesHasBeenSet = true;
279 m_productCodes = std::forward<ProductCodesT>(value);
280 }
281 template <typename ProductCodesT = Aws::Vector<ProductCode>>
283 SetProductCodes(std::forward<ProductCodesT>(value));
284 return *this;
285 }
286 template <typename ProductCodesT = ProductCode>
288 m_productCodesHasBeenSet = true;
289 m_productCodes.emplace_back(std::forward<ProductCodesT>(value));
290 return *this;
291 }
293
295
298 inline const Aws::Vector<BlockDeviceMapping>& GetBlockDeviceMappings() const { return m_blockDeviceMappings; }
299 template <typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
300 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) {
301 m_blockDeviceMappingsHasBeenSet = true;
302 m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value);
303 }
304 template <typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
306 SetBlockDeviceMappings(std::forward<BlockDeviceMappingsT>(value));
307 return *this;
308 }
309 template <typename BlockDeviceMappingsT = BlockDeviceMapping>
311 m_blockDeviceMappingsHasBeenSet = true;
312 m_blockDeviceMappings.emplace_back(std::forward<BlockDeviceMappingsT>(value));
313 return *this;
314 }
316
318
319 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
320 template <typename ResponseMetadataT = ResponseMetadata>
321 void SetResponseMetadata(ResponseMetadataT&& value) {
322 m_responseMetadataHasBeenSet = true;
323 m_responseMetadata = std::forward<ResponseMetadataT>(value);
324 }
325 template <typename ResponseMetadataT = ResponseMetadata>
327 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
328 return *this;
329 }
331 private:
332 AttributeValue m_description;
333
334 AttributeValue m_kernelId;
335
336 AttributeValue m_ramdiskId;
337
338 AttributeValue m_sriovNetSupport;
339
340 AttributeValue m_bootMode;
341
342 AttributeValue m_tpmSupport;
343
344 AttributeValue m_uefiData;
345
346 AttributeValue m_lastLaunchedTime;
347
348 AttributeValue m_imdsSupport;
349
350 AttributeValue m_deregistrationProtection;
351
352 Aws::String m_imageId;
353
354 Aws::Vector<LaunchPermission> m_launchPermissions;
355
356 Aws::Vector<ProductCode> m_productCodes;
357
358 Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
359
360 ResponseMetadata m_responseMetadata;
361 bool m_descriptionHasBeenSet = false;
362 bool m_kernelIdHasBeenSet = false;
363 bool m_ramdiskIdHasBeenSet = false;
364 bool m_sriovNetSupportHasBeenSet = false;
365 bool m_bootModeHasBeenSet = false;
366 bool m_tpmSupportHasBeenSet = false;
367 bool m_uefiDataHasBeenSet = false;
368 bool m_lastLaunchedTimeHasBeenSet = false;
369 bool m_imdsSupportHasBeenSet = false;
370 bool m_deregistrationProtectionHasBeenSet = false;
371 bool m_imageIdHasBeenSet = false;
372 bool m_launchPermissionsHasBeenSet = false;
373 bool m_productCodesHasBeenSet = false;
374 bool m_blockDeviceMappingsHasBeenSet = false;
375 bool m_responseMetadataHasBeenSet = false;
376};
377
378} // namespace Model
379} // namespace EC2
380} // 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