AWS SDK for C++  1.9.74
AWS SDK for C++
DescribeImageAttributeResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 template<typename RESULT_TYPE>
20 class AmazonWebServiceResult;
21 
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlDocument;
27 } // namespace Xml
28 } // namespace Utils
29 namespace EC2
30 {
31 namespace Model
32 {
39  {
40  public:
44 
45 
49  inline const Aws::Vector<BlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
50 
54  inline void SetBlockDeviceMappings(const Aws::Vector<BlockDeviceMapping>& value) { m_blockDeviceMappings = value; }
55 
59  inline void SetBlockDeviceMappings(Aws::Vector<BlockDeviceMapping>&& value) { m_blockDeviceMappings = std::move(value); }
60 
64  inline DescribeImageAttributeResponse& WithBlockDeviceMappings(const Aws::Vector<BlockDeviceMapping>& value) { SetBlockDeviceMappings(value); return *this;}
65 
69  inline DescribeImageAttributeResponse& WithBlockDeviceMappings(Aws::Vector<BlockDeviceMapping>&& value) { SetBlockDeviceMappings(std::move(value)); return *this;}
70 
74  inline DescribeImageAttributeResponse& AddBlockDeviceMappings(const BlockDeviceMapping& value) { m_blockDeviceMappings.push_back(value); return *this; }
75 
79  inline DescribeImageAttributeResponse& AddBlockDeviceMappings(BlockDeviceMapping&& value) { m_blockDeviceMappings.push_back(std::move(value)); return *this; }
80 
81 
85  inline const Aws::String& GetImageId() const{ return m_imageId; }
86 
90  inline void SetImageId(const Aws::String& value) { m_imageId = value; }
91 
95  inline void SetImageId(Aws::String&& value) { m_imageId = std::move(value); }
96 
100  inline void SetImageId(const char* value) { m_imageId.assign(value); }
101 
105  inline DescribeImageAttributeResponse& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
106 
110  inline DescribeImageAttributeResponse& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
111 
115  inline DescribeImageAttributeResponse& WithImageId(const char* value) { SetImageId(value); return *this;}
116 
117 
121  inline const Aws::Vector<LaunchPermission>& GetLaunchPermissions() const{ return m_launchPermissions; }
122 
126  inline void SetLaunchPermissions(const Aws::Vector<LaunchPermission>& value) { m_launchPermissions = value; }
127 
131  inline void SetLaunchPermissions(Aws::Vector<LaunchPermission>&& value) { m_launchPermissions = std::move(value); }
132 
136  inline DescribeImageAttributeResponse& WithLaunchPermissions(const Aws::Vector<LaunchPermission>& value) { SetLaunchPermissions(value); return *this;}
137 
141  inline DescribeImageAttributeResponse& WithLaunchPermissions(Aws::Vector<LaunchPermission>&& value) { SetLaunchPermissions(std::move(value)); return *this;}
142 
146  inline DescribeImageAttributeResponse& AddLaunchPermissions(const LaunchPermission& value) { m_launchPermissions.push_back(value); return *this; }
147 
151  inline DescribeImageAttributeResponse& AddLaunchPermissions(LaunchPermission&& value) { m_launchPermissions.push_back(std::move(value)); return *this; }
152 
153 
157  inline const Aws::Vector<ProductCode>& GetProductCodes() const{ return m_productCodes; }
158 
162  inline void SetProductCodes(const Aws::Vector<ProductCode>& value) { m_productCodes = value; }
163 
167  inline void SetProductCodes(Aws::Vector<ProductCode>&& value) { m_productCodes = std::move(value); }
168 
172  inline DescribeImageAttributeResponse& WithProductCodes(const Aws::Vector<ProductCode>& value) { SetProductCodes(value); return *this;}
173 
177  inline DescribeImageAttributeResponse& WithProductCodes(Aws::Vector<ProductCode>&& value) { SetProductCodes(std::move(value)); return *this;}
178 
182  inline DescribeImageAttributeResponse& AddProductCodes(const ProductCode& value) { m_productCodes.push_back(value); return *this; }
183 
187  inline DescribeImageAttributeResponse& AddProductCodes(ProductCode&& value) { m_productCodes.push_back(std::move(value)); return *this; }
188 
189 
193  inline const AttributeValue& GetDescription() const{ return m_description; }
194 
198  inline void SetDescription(const AttributeValue& value) { m_description = value; }
199 
203  inline void SetDescription(AttributeValue&& value) { m_description = std::move(value); }
204 
208  inline DescribeImageAttributeResponse& WithDescription(const AttributeValue& value) { SetDescription(value); return *this;}
209 
213  inline DescribeImageAttributeResponse& WithDescription(AttributeValue&& value) { SetDescription(std::move(value)); return *this;}
214 
215 
219  inline const AttributeValue& GetKernelId() const{ return m_kernelId; }
220 
224  inline void SetKernelId(const AttributeValue& value) { m_kernelId = value; }
225 
229  inline void SetKernelId(AttributeValue&& value) { m_kernelId = std::move(value); }
230 
234  inline DescribeImageAttributeResponse& WithKernelId(const AttributeValue& value) { SetKernelId(value); return *this;}
235 
239  inline DescribeImageAttributeResponse& WithKernelId(AttributeValue&& value) { SetKernelId(std::move(value)); return *this;}
240 
241 
245  inline const AttributeValue& GetRamdiskId() const{ return m_ramdiskId; }
246 
250  inline void SetRamdiskId(const AttributeValue& value) { m_ramdiskId = value; }
251 
255  inline void SetRamdiskId(AttributeValue&& value) { m_ramdiskId = std::move(value); }
256 
260  inline DescribeImageAttributeResponse& WithRamdiskId(const AttributeValue& value) { SetRamdiskId(value); return *this;}
261 
265  inline DescribeImageAttributeResponse& WithRamdiskId(AttributeValue&& value) { SetRamdiskId(std::move(value)); return *this;}
266 
267 
272  inline const AttributeValue& GetSriovNetSupport() const{ return m_sriovNetSupport; }
273 
278  inline void SetSriovNetSupport(const AttributeValue& value) { m_sriovNetSupport = value; }
279 
284  inline void SetSriovNetSupport(AttributeValue&& value) { m_sriovNetSupport = std::move(value); }
285 
290  inline DescribeImageAttributeResponse& WithSriovNetSupport(const AttributeValue& value) { SetSriovNetSupport(value); return *this;}
291 
296  inline DescribeImageAttributeResponse& WithSriovNetSupport(AttributeValue&& value) { SetSriovNetSupport(std::move(value)); return *this;}
297 
298 
299 
300  inline const AttributeValue& GetBootMode() const{ return m_bootMode; }
301 
302 
303  inline void SetBootMode(const AttributeValue& value) { m_bootMode = value; }
304 
305 
306  inline void SetBootMode(AttributeValue&& value) { m_bootMode = std::move(value); }
307 
308 
309  inline DescribeImageAttributeResponse& WithBootMode(const AttributeValue& value) { SetBootMode(value); return *this;}
310 
311 
312  inline DescribeImageAttributeResponse& WithBootMode(AttributeValue&& value) { SetBootMode(std::move(value)); return *this;}
313 
314 
315 
316  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
317 
318 
319  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
320 
321 
322  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
323 
324 
325  inline DescribeImageAttributeResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
326 
327 
328  inline DescribeImageAttributeResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
329 
330  private:
331 
332  Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
333 
334  Aws::String m_imageId;
335 
336  Aws::Vector<LaunchPermission> m_launchPermissions;
337 
338  Aws::Vector<ProductCode> m_productCodes;
339 
340  AttributeValue m_description;
341 
342  AttributeValue m_kernelId;
343 
344  AttributeValue m_ramdiskId;
345 
346  AttributeValue m_sriovNetSupport;
347 
348  AttributeValue m_bootMode;
349 
350  ResponseMetadata m_responseMetadata;
351  };
352 
353 } // namespace Model
354 } // namespace EC2
355 } // namespace Aws
Aws::EC2::Model::DescribeImageAttributeResponse::SetBootMode
void SetBootMode(const AttributeValue &value)
Definition: DescribeImageAttributeResponse.h:303
Aws::EC2::Model::DescribeImageAttributeResponse::WithResponseMetadata
DescribeImageAttributeResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeImageAttributeResponse.h:325
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::LaunchPermission
Definition: LaunchPermission.h:33
Aws::EC2::Model::DescribeImageAttributeResponse::WithRamdiskId
DescribeImageAttributeResponse & WithRamdiskId(const AttributeValue &value)
Definition: DescribeImageAttributeResponse.h:260
Aws::EC2::Model::DescribeImageAttributeResponse::WithResponseMetadata
DescribeImageAttributeResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeImageAttributeResponse.h:328
Aws::EC2::Model::DescribeImageAttributeResponse::WithSriovNetSupport
DescribeImageAttributeResponse & WithSriovNetSupport(AttributeValue &&value)
Definition: DescribeImageAttributeResponse.h:296
Aws::EC2::Model::DescribeImageAttributeResponse::SetImageId
void SetImageId(const Aws::String &value)
Definition: DescribeImageAttributeResponse.h:90
AttributeValue.h
Aws::EC2::Model::DescribeImageAttributeResponse::GetDescription
const AttributeValue & GetDescription() const
Definition: DescribeImageAttributeResponse.h:193
Aws::EC2::Model::DescribeImageAttributeResponse::GetRamdiskId
const AttributeValue & GetRamdiskId() const
Definition: DescribeImageAttributeResponse.h:245
Aws::EC2::Model::ProductCode
Definition: ProductCode.h:33
Aws::EC2::Model::DescribeImageAttributeResponse::WithRamdiskId
DescribeImageAttributeResponse & WithRamdiskId(AttributeValue &&value)
Definition: DescribeImageAttributeResponse.h:265
Aws::EC2::Model::DescribeImageAttributeResponse::SetLaunchPermissions
void SetLaunchPermissions(const Aws::Vector< LaunchPermission > &value)
Definition: DescribeImageAttributeResponse.h:126
BlockDeviceMapping.h
ProductCode.h
Aws::EC2::Model::DescribeImageAttributeResponse::SetProductCodes
void SetProductCodes(Aws::Vector< ProductCode > &&value)
Definition: DescribeImageAttributeResponse.h:167
Aws::EC2::Model::DescribeImageAttributeResponse::WithBlockDeviceMappings
DescribeImageAttributeResponse & WithBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
Definition: DescribeImageAttributeResponse.h:69
Aws::EC2::Model::DescribeImageAttributeResponse::SetRamdiskId
void SetRamdiskId(AttributeValue &&value)
Definition: DescribeImageAttributeResponse.h:255
Aws::EC2::Model::DescribeImageAttributeResponse::WithBlockDeviceMappings
DescribeImageAttributeResponse & WithBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
Definition: DescribeImageAttributeResponse.h:64
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeImageAttributeResponse::GetKernelId
const AttributeValue & GetKernelId() const
Definition: DescribeImageAttributeResponse.h:219
ResponseMetadata.h
Aws::EC2::Model::DescribeImageAttributeResponse::SetProductCodes
void SetProductCodes(const Aws::Vector< ProductCode > &value)
Definition: DescribeImageAttributeResponse.h:162
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeImageAttributeResponse::SetKernelId
void SetKernelId(const AttributeValue &value)
Definition: DescribeImageAttributeResponse.h:224
AWSVector.h
Aws::EC2::Model::DescribeImageAttributeResponse::SetDescription
void SetDescription(const AttributeValue &value)
Definition: DescribeImageAttributeResponse.h:198
Aws::EC2::Model::DescribeImageAttributeResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeImageAttributeResponse.h:316
Aws::EC2::Model::DescribeImageAttributeResponse::AddBlockDeviceMappings
DescribeImageAttributeResponse & AddBlockDeviceMappings(const BlockDeviceMapping &value)
Definition: DescribeImageAttributeResponse.h:74
Aws::EC2::Model::DescribeImageAttributeResponse::SetKernelId
void SetKernelId(AttributeValue &&value)
Definition: DescribeImageAttributeResponse.h:229
Aws::EC2::Model::DescribeImageAttributeResponse::AddProductCodes
DescribeImageAttributeResponse & AddProductCodes(ProductCode &&value)
Definition: DescribeImageAttributeResponse.h:187
Aws::EC2::Model::DescribeImageAttributeResponse::WithLaunchPermissions
DescribeImageAttributeResponse & WithLaunchPermissions(Aws::Vector< LaunchPermission > &&value)
Definition: DescribeImageAttributeResponse.h:141
Aws::EC2::Model::DescribeImageAttributeResponse::GetImageId
const Aws::String & GetImageId() const
Definition: DescribeImageAttributeResponse.h:85
Aws::EC2::Model::DescribeImageAttributeResponse::DescribeImageAttributeResponse
DescribeImageAttributeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::AttributeValue
Definition: AttributeValue.h:33
Aws::EC2::Model::DescribeImageAttributeResponse::GetSriovNetSupport
const AttributeValue & GetSriovNetSupport() const
Definition: DescribeImageAttributeResponse.h:272
Aws::EC2::Model::DescribeImageAttributeResponse::WithImageId
DescribeImageAttributeResponse & WithImageId(const char *value)
Definition: DescribeImageAttributeResponse.h:115
Aws::EC2::Model::DescribeImageAttributeResponse::WithKernelId
DescribeImageAttributeResponse & WithKernelId(const AttributeValue &value)
Definition: DescribeImageAttributeResponse.h:234
Aws::EC2::Model::DescribeImageAttributeResponse::WithBootMode
DescribeImageAttributeResponse & WithBootMode(AttributeValue &&value)
Definition: DescribeImageAttributeResponse.h:312
Aws::EC2::Model::DescribeImageAttributeResponse::WithImageId
DescribeImageAttributeResponse & WithImageId(Aws::String &&value)
Definition: DescribeImageAttributeResponse.h:110
Aws::EC2::Model::DescribeImageAttributeResponse::GetProductCodes
const Aws::Vector< ProductCode > & GetProductCodes() const
Definition: DescribeImageAttributeResponse.h:157
Aws::EC2::Model::DescribeImageAttributeResponse::WithImageId
DescribeImageAttributeResponse & WithImageId(const Aws::String &value)
Definition: DescribeImageAttributeResponse.h:105
Aws::EC2::Model::DescribeImageAttributeResponse::WithSriovNetSupport
DescribeImageAttributeResponse & WithSriovNetSupport(const AttributeValue &value)
Definition: DescribeImageAttributeResponse.h:290
Aws::EC2::Model::DescribeImageAttributeResponse::AddBlockDeviceMappings
DescribeImageAttributeResponse & AddBlockDeviceMappings(BlockDeviceMapping &&value)
Definition: DescribeImageAttributeResponse.h:79
Aws::EC2::Model::DescribeImageAttributeResponse::SetImageId
void SetImageId(Aws::String &&value)
Definition: DescribeImageAttributeResponse.h:95
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DescribeImageAttributeResponse::GetBootMode
const AttributeValue & GetBootMode() const
Definition: DescribeImageAttributeResponse.h:300
Aws::EC2::Model::DescribeImageAttributeResponse::WithProductCodes
DescribeImageAttributeResponse & WithProductCodes(Aws::Vector< ProductCode > &&value)
Definition: DescribeImageAttributeResponse.h:177
AWSString.h
LaunchPermission.h
Aws::EC2::Model::DescribeImageAttributeResponse::SetBlockDeviceMappings
void SetBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
Definition: DescribeImageAttributeResponse.h:59
Aws::EC2::Model::DescribeImageAttributeResponse::SetImageId
void SetImageId(const char *value)
Definition: DescribeImageAttributeResponse.h:100
Aws::EC2::Model::DescribeImageAttributeResponse::WithLaunchPermissions
DescribeImageAttributeResponse & WithLaunchPermissions(const Aws::Vector< LaunchPermission > &value)
Definition: DescribeImageAttributeResponse.h:136
Aws::EC2::Model::DescribeImageAttributeResponse::SetBlockDeviceMappings
void SetBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
Definition: DescribeImageAttributeResponse.h:54
Aws::EC2::Model::DescribeImageAttributeResponse::AddLaunchPermissions
DescribeImageAttributeResponse & AddLaunchPermissions(LaunchPermission &&value)
Definition: DescribeImageAttributeResponse.h:151
Aws::EC2::Model::DescribeImageAttributeResponse::SetSriovNetSupport
void SetSriovNetSupport(const AttributeValue &value)
Definition: DescribeImageAttributeResponse.h:278
Aws::EC2::Model::BlockDeviceMapping
Definition: BlockDeviceMapping.h:33
Aws::EC2::Model::DescribeImageAttributeResponse::AddProductCodes
DescribeImageAttributeResponse & AddProductCodes(const ProductCode &value)
Definition: DescribeImageAttributeResponse.h:182
Aws::EC2::Model::DescribeImageAttributeResponse::SetBootMode
void SetBootMode(AttributeValue &&value)
Definition: DescribeImageAttributeResponse.h:306
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeImageAttributeResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeImageAttributeResponse.h:322
Aws::EC2::Model::DescribeImageAttributeResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeImageAttributeResponse.h:319
Aws::EC2::Model::DescribeImageAttributeResponse::AddLaunchPermissions
DescribeImageAttributeResponse & AddLaunchPermissions(const LaunchPermission &value)
Definition: DescribeImageAttributeResponse.h:146
Aws::EC2::Model::DescribeImageAttributeResponse::operator=
DescribeImageAttributeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeImageAttributeResponse::WithBootMode
DescribeImageAttributeResponse & WithBootMode(const AttributeValue &value)
Definition: DescribeImageAttributeResponse.h:309
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeImageAttributeResponse
Definition: DescribeImageAttributeResponse.h:39
Aws::EC2::Model::DescribeImageAttributeResponse::SetSriovNetSupport
void SetSriovNetSupport(AttributeValue &&value)
Definition: DescribeImageAttributeResponse.h:284
Aws::EC2::Model::DescribeImageAttributeResponse::GetLaunchPermissions
const Aws::Vector< LaunchPermission > & GetLaunchPermissions() const
Definition: DescribeImageAttributeResponse.h:121
Aws::EC2::Model::DescribeImageAttributeResponse::SetRamdiskId
void SetRamdiskId(const AttributeValue &value)
Definition: DescribeImageAttributeResponse.h:250
EC2_EXPORTS.h
Aws::EC2::Model::DescribeImageAttributeResponse::SetDescription
void SetDescription(AttributeValue &&value)
Definition: DescribeImageAttributeResponse.h:203
Aws::EC2::Model::DescribeImageAttributeResponse::DescribeImageAttributeResponse
DescribeImageAttributeResponse()
Aws::EC2::Model::DescribeImageAttributeResponse::WithDescription
DescribeImageAttributeResponse & WithDescription(const AttributeValue &value)
Definition: DescribeImageAttributeResponse.h:208
Aws::EC2::Model::DescribeImageAttributeResponse::WithProductCodes
DescribeImageAttributeResponse & WithProductCodes(const Aws::Vector< ProductCode > &value)
Definition: DescribeImageAttributeResponse.h:172
Aws::EC2::Model::DescribeImageAttributeResponse::WithKernelId
DescribeImageAttributeResponse & WithKernelId(AttributeValue &&value)
Definition: DescribeImageAttributeResponse.h:239
Aws::EC2::Model::DescribeImageAttributeResponse::WithDescription
DescribeImageAttributeResponse & WithDescription(AttributeValue &&value)
Definition: DescribeImageAttributeResponse.h:213
Aws::EC2::Model::DescribeImageAttributeResponse::SetLaunchPermissions
void SetLaunchPermissions(Aws::Vector< LaunchPermission > &&value)
Definition: DescribeImageAttributeResponse.h:131
Aws::EC2::Model::DescribeImageAttributeResponse::GetBlockDeviceMappings
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
Definition: DescribeImageAttributeResponse.h:49