AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeInstanceAttributeResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/model/AttributeBooleanValue.h>
10#include <aws/ec2/model/EnclaveOptions.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/AttributeValue.h>
13#include <aws/ec2/model/ResponseMetadata.h>
14#include <aws/ec2/model/InstanceBlockDeviceMapping.h>
15#include <aws/ec2/model/ProductCode.h>
16#include <aws/ec2/model/GroupIdentifier.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Xml
27{
28 class XmlDocument;
29} // namespace Xml
30} // namespace Utils
31namespace EC2
32{
33namespace Model
34{
41 {
42 public:
46
47
49
52 inline const Aws::Vector<InstanceBlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
53 inline void SetBlockDeviceMappings(const Aws::Vector<InstanceBlockDeviceMapping>& value) { m_blockDeviceMappings = value; }
54 inline void SetBlockDeviceMappings(Aws::Vector<InstanceBlockDeviceMapping>&& value) { m_blockDeviceMappings = std::move(value); }
57 inline DescribeInstanceAttributeResponse& AddBlockDeviceMappings(const InstanceBlockDeviceMapping& value) { m_blockDeviceMappings.push_back(value); return *this; }
58 inline DescribeInstanceAttributeResponse& AddBlockDeviceMappings(InstanceBlockDeviceMapping&& value) { m_blockDeviceMappings.push_back(std::move(value)); return *this; }
60
62
66 inline const AttributeBooleanValue& GetDisableApiTermination() const{ return m_disableApiTermination; }
67 inline void SetDisableApiTermination(const AttributeBooleanValue& value) { m_disableApiTermination = value; }
68 inline void SetDisableApiTermination(AttributeBooleanValue&& value) { m_disableApiTermination = std::move(value); }
72
74
77 inline const AttributeBooleanValue& GetEnaSupport() const{ return m_enaSupport; }
78 inline void SetEnaSupport(const AttributeBooleanValue& value) { m_enaSupport = value; }
79 inline void SetEnaSupport(AttributeBooleanValue&& value) { m_enaSupport = std::move(value); }
81 inline DescribeInstanceAttributeResponse& WithEnaSupport(AttributeBooleanValue&& value) { SetEnaSupport(std::move(value)); return *this;}
83
85
89 inline const EnclaveOptions& GetEnclaveOptions() const{ return m_enclaveOptions; }
90 inline void SetEnclaveOptions(const EnclaveOptions& value) { m_enclaveOptions = value; }
91 inline void SetEnclaveOptions(EnclaveOptions&& value) { m_enclaveOptions = std::move(value); }
93 inline DescribeInstanceAttributeResponse& WithEnclaveOptions(EnclaveOptions&& value) { SetEnclaveOptions(std::move(value)); return *this;}
95
97
100 inline const AttributeBooleanValue& GetEbsOptimized() const{ return m_ebsOptimized; }
101 inline void SetEbsOptimized(const AttributeBooleanValue& value) { m_ebsOptimized = value; }
102 inline void SetEbsOptimized(AttributeBooleanValue&& value) { m_ebsOptimized = std::move(value); }
106
108
111 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
112 inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; }
113 inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); }
114 inline void SetInstanceId(const char* value) { m_instanceId.assign(value); }
115 inline DescribeInstanceAttributeResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
116 inline DescribeInstanceAttributeResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
117 inline DescribeInstanceAttributeResponse& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
119
121
125 inline const AttributeValue& GetInstanceInitiatedShutdownBehavior() const{ return m_instanceInitiatedShutdownBehavior; }
126 inline void SetInstanceInitiatedShutdownBehavior(const AttributeValue& value) { m_instanceInitiatedShutdownBehavior = value; }
127 inline void SetInstanceInitiatedShutdownBehavior(AttributeValue&& value) { m_instanceInitiatedShutdownBehavior = std::move(value); }
131
133
136 inline const AttributeValue& GetInstanceType() const{ return m_instanceType; }
137 inline void SetInstanceType(const AttributeValue& value) { m_instanceType = value; }
138 inline void SetInstanceType(AttributeValue&& value) { m_instanceType = std::move(value); }
140 inline DescribeInstanceAttributeResponse& WithInstanceType(AttributeValue&& value) { SetInstanceType(std::move(value)); return *this;}
142
144
147 inline const AttributeValue& GetKernelId() const{ return m_kernelId; }
148 inline void SetKernelId(const AttributeValue& value) { m_kernelId = value; }
149 inline void SetKernelId(AttributeValue&& value) { m_kernelId = std::move(value); }
150 inline DescribeInstanceAttributeResponse& WithKernelId(const AttributeValue& value) { SetKernelId(value); return *this;}
151 inline DescribeInstanceAttributeResponse& WithKernelId(AttributeValue&& value) { SetKernelId(std::move(value)); return *this;}
153
155
158 inline const Aws::Vector<ProductCode>& GetProductCodes() const{ return m_productCodes; }
159 inline void SetProductCodes(const Aws::Vector<ProductCode>& value) { m_productCodes = value; }
160 inline void SetProductCodes(Aws::Vector<ProductCode>&& value) { m_productCodes = std::move(value); }
163 inline DescribeInstanceAttributeResponse& AddProductCodes(const ProductCode& value) { m_productCodes.push_back(value); return *this; }
164 inline DescribeInstanceAttributeResponse& AddProductCodes(ProductCode&& value) { m_productCodes.push_back(std::move(value)); return *this; }
166
168
171 inline const AttributeValue& GetRamdiskId() const{ return m_ramdiskId; }
172 inline void SetRamdiskId(const AttributeValue& value) { m_ramdiskId = value; }
173 inline void SetRamdiskId(AttributeValue&& value) { m_ramdiskId = std::move(value); }
174 inline DescribeInstanceAttributeResponse& WithRamdiskId(const AttributeValue& value) { SetRamdiskId(value); return *this;}
175 inline DescribeInstanceAttributeResponse& WithRamdiskId(AttributeValue&& value) { SetRamdiskId(std::move(value)); return *this;}
177
179
183 inline const AttributeValue& GetRootDeviceName() const{ return m_rootDeviceName; }
184 inline void SetRootDeviceName(const AttributeValue& value) { m_rootDeviceName = value; }
185 inline void SetRootDeviceName(AttributeValue&& value) { m_rootDeviceName = std::move(value); }
189
191
199 inline const AttributeBooleanValue& GetSourceDestCheck() const{ return m_sourceDestCheck; }
200 inline void SetSourceDestCheck(const AttributeBooleanValue& value) { m_sourceDestCheck = value; }
201 inline void SetSourceDestCheck(AttributeBooleanValue&& value) { m_sourceDestCheck = std::move(value); }
205
207
211 inline const AttributeValue& GetSriovNetSupport() const{ return m_sriovNetSupport; }
212 inline void SetSriovNetSupport(const AttributeValue& value) { m_sriovNetSupport = value; }
213 inline void SetSriovNetSupport(AttributeValue&& value) { m_sriovNetSupport = std::move(value); }
217
219
222 inline const AttributeValue& GetUserData() const{ return m_userData; }
223 inline void SetUserData(const AttributeValue& value) { m_userData = value; }
224 inline void SetUserData(AttributeValue&& value) { m_userData = std::move(value); }
225 inline DescribeInstanceAttributeResponse& WithUserData(const AttributeValue& value) { SetUserData(value); return *this;}
226 inline DescribeInstanceAttributeResponse& WithUserData(AttributeValue&& value) { SetUserData(std::move(value)); return *this;}
228
230
234 inline const AttributeBooleanValue& GetDisableApiStop() const{ return m_disableApiStop; }
235 inline void SetDisableApiStop(const AttributeBooleanValue& value) { m_disableApiStop = value; }
236 inline void SetDisableApiStop(AttributeBooleanValue&& value) { m_disableApiStop = std::move(value); }
240
242
245 inline const Aws::Vector<GroupIdentifier>& GetGroups() const{ return m_groups; }
246 inline void SetGroups(const Aws::Vector<GroupIdentifier>& value) { m_groups = value; }
247 inline void SetGroups(Aws::Vector<GroupIdentifier>&& value) { m_groups = std::move(value); }
249 inline DescribeInstanceAttributeResponse& WithGroups(Aws::Vector<GroupIdentifier>&& value) { SetGroups(std::move(value)); return *this;}
250 inline DescribeInstanceAttributeResponse& AddGroups(const GroupIdentifier& value) { m_groups.push_back(value); return *this; }
251 inline DescribeInstanceAttributeResponse& AddGroups(GroupIdentifier&& value) { m_groups.push_back(std::move(value)); return *this; }
253
255
256 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
257 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
258 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
262 private:
263
264 Aws::Vector<InstanceBlockDeviceMapping> m_blockDeviceMappings;
265
266 AttributeBooleanValue m_disableApiTermination;
267
268 AttributeBooleanValue m_enaSupport;
269
270 EnclaveOptions m_enclaveOptions;
271
272 AttributeBooleanValue m_ebsOptimized;
273
274 Aws::String m_instanceId;
275
276 AttributeValue m_instanceInitiatedShutdownBehavior;
277
278 AttributeValue m_instanceType;
279
280 AttributeValue m_kernelId;
281
282 Aws::Vector<ProductCode> m_productCodes;
283
284 AttributeValue m_ramdiskId;
285
286 AttributeValue m_rootDeviceName;
287
288 AttributeBooleanValue m_sourceDestCheck;
289
290 AttributeValue m_sriovNetSupport;
291
292 AttributeValue m_userData;
293
294 AttributeBooleanValue m_disableApiStop;
295
297
298 ResponseMetadata m_responseMetadata;
299 };
300
301} // namespace Model
302} // namespace EC2
303} // namespace Aws
DescribeInstanceAttributeResponse & WithEbsOptimized(const AttributeBooleanValue &value)
DescribeInstanceAttributeResponse & WithDisableApiStop(const AttributeBooleanValue &value)
DescribeInstanceAttributeResponse & WithRamdiskId(const AttributeValue &value)
DescribeInstanceAttributeResponse & WithSourceDestCheck(const AttributeBooleanValue &value)
DescribeInstanceAttributeResponse & WithEnaSupport(AttributeBooleanValue &&value)
DescribeInstanceAttributeResponse & WithSriovNetSupport(const AttributeValue &value)
DescribeInstanceAttributeResponse & WithSriovNetSupport(AttributeValue &&value)
DescribeInstanceAttributeResponse & WithInstanceId(const char *value)
DescribeInstanceAttributeResponse & WithBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
void SetDisableApiTermination(const AttributeBooleanValue &value)
DescribeInstanceAttributeResponse & WithGroups(Aws::Vector< GroupIdentifier > &&value)
DescribeInstanceAttributeResponse & AddProductCodes(const ProductCode &value)
DescribeInstanceAttributeResponse & WithKernelId(AttributeValue &&value)
const Aws::Vector< GroupIdentifier > & GetGroups() const
DescribeInstanceAttributeResponse & AddBlockDeviceMappings(InstanceBlockDeviceMapping &&value)
DescribeInstanceAttributeResponse & WithSourceDestCheck(AttributeBooleanValue &&value)
const Aws::Vector< InstanceBlockDeviceMapping > & GetBlockDeviceMappings() const
DescribeInstanceAttributeResponse & WithKernelId(const AttributeValue &value)
DescribeInstanceAttributeResponse & WithRootDeviceName(const AttributeValue &value)
DescribeInstanceAttributeResponse & WithBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
DescribeInstanceAttributeResponse & AddGroups(const GroupIdentifier &value)
AWS_EC2_API DescribeInstanceAttributeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetProductCodes(const Aws::Vector< ProductCode > &value)
DescribeInstanceAttributeResponse & WithInstanceId(const Aws::String &value)
DescribeInstanceAttributeResponse & WithUserData(const AttributeValue &value)
void SetBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
DescribeInstanceAttributeResponse & WithResponseMetadata(ResponseMetadata &&value)
DescribeInstanceAttributeResponse & WithEnclaveOptions(EnclaveOptions &&value)
DescribeInstanceAttributeResponse & AddBlockDeviceMappings(const InstanceBlockDeviceMapping &value)
void SetGroups(const Aws::Vector< GroupIdentifier > &value)
DescribeInstanceAttributeResponse & WithProductCodes(Aws::Vector< ProductCode > &&value)
DescribeInstanceAttributeResponse & WithInstanceInitiatedShutdownBehavior(AttributeValue &&value)
DescribeInstanceAttributeResponse & WithDisableApiTermination(AttributeBooleanValue &&value)
DescribeInstanceAttributeResponse & WithEnaSupport(const AttributeBooleanValue &value)
DescribeInstanceAttributeResponse & WithEnclaveOptions(const EnclaveOptions &value)
DescribeInstanceAttributeResponse & WithResponseMetadata(const ResponseMetadata &value)
DescribeInstanceAttributeResponse & WithInstanceInitiatedShutdownBehavior(const AttributeValue &value)
DescribeInstanceAttributeResponse & WithInstanceType(AttributeValue &&value)
DescribeInstanceAttributeResponse & WithProductCodes(const Aws::Vector< ProductCode > &value)
DescribeInstanceAttributeResponse & WithDisableApiTermination(const AttributeBooleanValue &value)
DescribeInstanceAttributeResponse & WithRamdiskId(AttributeValue &&value)
DescribeInstanceAttributeResponse & WithRootDeviceName(AttributeValue &&value)
DescribeInstanceAttributeResponse & WithDisableApiStop(AttributeBooleanValue &&value)
DescribeInstanceAttributeResponse & WithGroups(const Aws::Vector< GroupIdentifier > &value)
DescribeInstanceAttributeResponse & WithUserData(AttributeValue &&value)
DescribeInstanceAttributeResponse & WithEbsOptimized(AttributeBooleanValue &&value)
DescribeInstanceAttributeResponse & AddProductCodes(ProductCode &&value)
DescribeInstanceAttributeResponse & AddGroups(GroupIdentifier &&value)
AWS_EC2_API DescribeInstanceAttributeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeInstanceAttributeResponse & WithInstanceType(const AttributeValue &value)
void SetBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
DescribeInstanceAttributeResponse & WithInstanceId(Aws::String &&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