AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeImageAttributeResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/model/AttributeValue.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <aws/ec2/model/LaunchPermission.h>
13#include <aws/ec2/model/ProductCode.h>
14#include <aws/ec2/model/BlockDeviceMapping.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Xml
25{
26 class XmlDocument;
27} // namespace Xml
28} // namespace Utils
29namespace EC2
30{
31namespace Model
32{
39 {
40 public:
41 AWS_EC2_API DescribeImageAttributeResponse() = default;
44
45
47
50 inline const AttributeValue& GetDescription() const { return m_description; }
51 template<typename DescriptionT = AttributeValue>
52 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
53 template<typename DescriptionT = AttributeValue>
54 DescribeImageAttributeResponse& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
56
58
61 inline const AttributeValue& GetKernelId() const { return m_kernelId; }
62 template<typename KernelIdT = AttributeValue>
63 void SetKernelId(KernelIdT&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::forward<KernelIdT>(value); }
64 template<typename KernelIdT = AttributeValue>
65 DescribeImageAttributeResponse& WithKernelId(KernelIdT&& value) { SetKernelId(std::forward<KernelIdT>(value)); return *this;}
67
69
72 inline const AttributeValue& GetRamdiskId() const { return m_ramdiskId; }
73 template<typename RamdiskIdT = AttributeValue>
74 void SetRamdiskId(RamdiskIdT&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::forward<RamdiskIdT>(value); }
75 template<typename RamdiskIdT = AttributeValue>
76 DescribeImageAttributeResponse& WithRamdiskId(RamdiskIdT&& value) { SetRamdiskId(std::forward<RamdiskIdT>(value)); return *this;}
78
80
84 inline const AttributeValue& GetSriovNetSupport() const { return m_sriovNetSupport; }
85 template<typename SriovNetSupportT = AttributeValue>
86 void SetSriovNetSupport(SriovNetSupportT&& value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport = std::forward<SriovNetSupportT>(value); }
87 template<typename SriovNetSupportT = AttributeValue>
88 DescribeImageAttributeResponse& WithSriovNetSupport(SriovNetSupportT&& value) { SetSriovNetSupport(std::forward<SriovNetSupportT>(value)); return *this;}
90
92
95 inline const AttributeValue& GetBootMode() const { return m_bootMode; }
96 template<typename BootModeT = AttributeValue>
97 void SetBootMode(BootModeT&& value) { m_bootModeHasBeenSet = true; m_bootMode = std::forward<BootModeT>(value); }
98 template<typename BootModeT = AttributeValue>
99 DescribeImageAttributeResponse& WithBootMode(BootModeT&& value) { SetBootMode(std::forward<BootModeT>(value)); return *this;}
101
103
107 inline const AttributeValue& GetTpmSupport() const { return m_tpmSupport; }
108 template<typename TpmSupportT = AttributeValue>
109 void SetTpmSupport(TpmSupportT&& value) { m_tpmSupportHasBeenSet = true; m_tpmSupport = std::forward<TpmSupportT>(value); }
110 template<typename TpmSupportT = AttributeValue>
111 DescribeImageAttributeResponse& WithTpmSupport(TpmSupportT&& value) { SetTpmSupport(std::forward<TpmSupportT>(value)); return *this;}
113
115
126 inline const AttributeValue& GetUefiData() const { return m_uefiData; }
127 template<typename UefiDataT = AttributeValue>
128 void SetUefiData(UefiDataT&& value) { m_uefiDataHasBeenSet = true; m_uefiData = std::forward<UefiDataT>(value); }
129 template<typename UefiDataT = AttributeValue>
130 DescribeImageAttributeResponse& WithUefiData(UefiDataT&& value) { SetUefiData(std::forward<UefiDataT>(value)); return *this;}
132
134
141 inline const AttributeValue& GetLastLaunchedTime() const { return m_lastLaunchedTime; }
142 template<typename LastLaunchedTimeT = AttributeValue>
143 void SetLastLaunchedTime(LastLaunchedTimeT&& value) { m_lastLaunchedTimeHasBeenSet = true; m_lastLaunchedTime = std::forward<LastLaunchedTimeT>(value); }
144 template<typename LastLaunchedTimeT = AttributeValue>
145 DescribeImageAttributeResponse& WithLastLaunchedTime(LastLaunchedTimeT&& value) { SetLastLaunchedTime(std::forward<LastLaunchedTimeT>(value)); return *this;}
147
149
159 inline const AttributeValue& GetImdsSupport() const { return m_imdsSupport; }
160 template<typename ImdsSupportT = AttributeValue>
161 void SetImdsSupport(ImdsSupportT&& value) { m_imdsSupportHasBeenSet = true; m_imdsSupport = std::forward<ImdsSupportT>(value); }
162 template<typename ImdsSupportT = AttributeValue>
163 DescribeImageAttributeResponse& WithImdsSupport(ImdsSupportT&& value) { SetImdsSupport(std::forward<ImdsSupportT>(value)); return *this;}
165
167
170 inline const AttributeValue& GetDeregistrationProtection() const { return m_deregistrationProtection; }
171 template<typename DeregistrationProtectionT = AttributeValue>
172 void SetDeregistrationProtection(DeregistrationProtectionT&& value) { m_deregistrationProtectionHasBeenSet = true; m_deregistrationProtection = std::forward<DeregistrationProtectionT>(value); }
173 template<typename DeregistrationProtectionT = AttributeValue>
174 DescribeImageAttributeResponse& WithDeregistrationProtection(DeregistrationProtectionT&& value) { SetDeregistrationProtection(std::forward<DeregistrationProtectionT>(value)); return *this;}
176
178
181 inline const Aws::String& GetImageId() const { return m_imageId; }
182 template<typename ImageIdT = Aws::String>
183 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
184 template<typename ImageIdT = Aws::String>
185 DescribeImageAttributeResponse& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
187
189
192 inline const Aws::Vector<LaunchPermission>& GetLaunchPermissions() const { return m_launchPermissions; }
193 template<typename LaunchPermissionsT = Aws::Vector<LaunchPermission>>
194 void SetLaunchPermissions(LaunchPermissionsT&& value) { m_launchPermissionsHasBeenSet = true; m_launchPermissions = std::forward<LaunchPermissionsT>(value); }
195 template<typename LaunchPermissionsT = Aws::Vector<LaunchPermission>>
196 DescribeImageAttributeResponse& WithLaunchPermissions(LaunchPermissionsT&& value) { SetLaunchPermissions(std::forward<LaunchPermissionsT>(value)); return *this;}
197 template<typename LaunchPermissionsT = LaunchPermission>
198 DescribeImageAttributeResponse& AddLaunchPermissions(LaunchPermissionsT&& value) { m_launchPermissionsHasBeenSet = true; m_launchPermissions.emplace_back(std::forward<LaunchPermissionsT>(value)); return *this; }
200
202
205 inline const Aws::Vector<ProductCode>& GetProductCodes() const { return m_productCodes; }
206 template<typename ProductCodesT = Aws::Vector<ProductCode>>
207 void SetProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet = true; m_productCodes = std::forward<ProductCodesT>(value); }
208 template<typename ProductCodesT = Aws::Vector<ProductCode>>
209 DescribeImageAttributeResponse& WithProductCodes(ProductCodesT&& value) { SetProductCodes(std::forward<ProductCodesT>(value)); return *this;}
210 template<typename ProductCodesT = ProductCode>
211 DescribeImageAttributeResponse& AddProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet = true; m_productCodes.emplace_back(std::forward<ProductCodesT>(value)); return *this; }
213
215
218 inline const Aws::Vector<BlockDeviceMapping>& GetBlockDeviceMappings() const { return m_blockDeviceMappings; }
219 template<typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
220 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value); }
221 template<typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
222 DescribeImageAttributeResponse& WithBlockDeviceMappings(BlockDeviceMappingsT&& value) { SetBlockDeviceMappings(std::forward<BlockDeviceMappingsT>(value)); return *this;}
223 template<typename BlockDeviceMappingsT = BlockDeviceMapping>
224 DescribeImageAttributeResponse& AddBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.emplace_back(std::forward<BlockDeviceMappingsT>(value)); return *this; }
226
228
229 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
230 template<typename ResponseMetadataT = ResponseMetadata>
231 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
232 template<typename ResponseMetadataT = ResponseMetadata>
233 DescribeImageAttributeResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
235 private:
236
237 AttributeValue m_description;
238 bool m_descriptionHasBeenSet = false;
239
240 AttributeValue m_kernelId;
241 bool m_kernelIdHasBeenSet = false;
242
243 AttributeValue m_ramdiskId;
244 bool m_ramdiskIdHasBeenSet = false;
245
246 AttributeValue m_sriovNetSupport;
247 bool m_sriovNetSupportHasBeenSet = false;
248
249 AttributeValue m_bootMode;
250 bool m_bootModeHasBeenSet = false;
251
252 AttributeValue m_tpmSupport;
253 bool m_tpmSupportHasBeenSet = false;
254
255 AttributeValue m_uefiData;
256 bool m_uefiDataHasBeenSet = false;
257
258 AttributeValue m_lastLaunchedTime;
259 bool m_lastLaunchedTimeHasBeenSet = false;
260
261 AttributeValue m_imdsSupport;
262 bool m_imdsSupportHasBeenSet = false;
263
264 AttributeValue m_deregistrationProtection;
265 bool m_deregistrationProtectionHasBeenSet = false;
266
267 Aws::String m_imageId;
268 bool m_imageIdHasBeenSet = false;
269
270 Aws::Vector<LaunchPermission> m_launchPermissions;
271 bool m_launchPermissionsHasBeenSet = false;
272
273 Aws::Vector<ProductCode> m_productCodes;
274 bool m_productCodesHasBeenSet = false;
275
276 Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
277 bool m_blockDeviceMappingsHasBeenSet = false;
278
279 ResponseMetadata m_responseMetadata;
280 bool m_responseMetadataHasBeenSet = false;
281 };
282
283} // namespace Model
284} // namespace EC2
285} // 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