AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Instance.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/ArchitectureValues.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/HypervisorType.h>
13#include <aws/ec2/model/IamInstanceProfile.h>
14#include <aws/ec2/model/InstanceLifecycleType.h>
15#include <aws/ec2/model/DeviceType.h>
16#include <aws/ec2/model/StateReason.h>
17#include <aws/ec2/model/VirtualizationType.h>
18#include <aws/ec2/model/CpuOptions.h>
19#include <aws/ec2/model/CapacityReservationSpecificationResponse.h>
20#include <aws/ec2/model/HibernationOptions.h>
21#include <aws/ec2/model/InstanceMetadataOptionsResponse.h>
22#include <aws/ec2/model/EnclaveOptions.h>
23#include <aws/ec2/model/BootModeValues.h>
24#include <aws/core/utils/DateTime.h>
25#include <aws/ec2/model/PrivateDnsNameOptionsResponse.h>
26#include <aws/ec2/model/InstanceMaintenanceOptions.h>
27#include <aws/ec2/model/InstanceBootModeValues.h>
28#include <aws/ec2/model/InstanceState.h>
29#include <aws/ec2/model/InstanceType.h>
30#include <aws/ec2/model/Placement.h>
31#include <aws/ec2/model/PlatformValues.h>
32#include <aws/ec2/model/Monitoring.h>
33#include <aws/ec2/model/InstanceBlockDeviceMapping.h>
34#include <aws/ec2/model/ElasticGpuAssociation.h>
35#include <aws/ec2/model/ElasticInferenceAcceleratorAssociation.h>
36#include <aws/ec2/model/InstanceNetworkInterface.h>
37#include <aws/ec2/model/GroupIdentifier.h>
38#include <aws/ec2/model/Tag.h>
39#include <aws/ec2/model/LicenseConfiguration.h>
40#include <aws/ec2/model/ProductCode.h>
41#include <utility>
42
43namespace Aws
44{
45namespace Utils
46{
47namespace Xml
48{
49 class XmlNode;
50} // namespace Xml
51} // namespace Utils
52namespace EC2
53{
54namespace Model
55{
56
63 {
64 public:
65 AWS_EC2_API Instance();
66 AWS_EC2_API Instance(const Aws::Utils::Xml::XmlNode& xmlNode);
67 AWS_EC2_API Instance& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
68
69 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
70 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
71
72
74
77 inline const ArchitectureValues& GetArchitecture() const{ return m_architecture; }
78 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
79 inline void SetArchitecture(const ArchitectureValues& value) { m_architectureHasBeenSet = true; m_architecture = value; }
80 inline void SetArchitecture(ArchitectureValues&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }
81 inline Instance& WithArchitecture(const ArchitectureValues& value) { SetArchitecture(value); return *this;}
82 inline Instance& WithArchitecture(ArchitectureValues&& value) { SetArchitecture(std::move(value)); return *this;}
84
86
89 inline const Aws::Vector<InstanceBlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
90 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
91 inline void SetBlockDeviceMappings(const Aws::Vector<InstanceBlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
92 inline void SetBlockDeviceMappings(Aws::Vector<InstanceBlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
95 inline Instance& AddBlockDeviceMappings(const InstanceBlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
96 inline Instance& AddBlockDeviceMappings(InstanceBlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
98
100
104 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
105 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
106 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
107 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
108 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
109 inline Instance& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
110 inline Instance& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
111 inline Instance& WithClientToken(const char* value) { SetClientToken(value); return *this;}
113
115
122 inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
123 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
124 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
125 inline Instance& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
127
129
132 inline bool GetEnaSupport() const{ return m_enaSupport; }
133 inline bool EnaSupportHasBeenSet() const { return m_enaSupportHasBeenSet; }
134 inline void SetEnaSupport(bool value) { m_enaSupportHasBeenSet = true; m_enaSupport = value; }
135 inline Instance& WithEnaSupport(bool value) { SetEnaSupport(value); return *this;}
137
139
143 inline const HypervisorType& GetHypervisor() const{ return m_hypervisor; }
144 inline bool HypervisorHasBeenSet() const { return m_hypervisorHasBeenSet; }
145 inline void SetHypervisor(const HypervisorType& value) { m_hypervisorHasBeenSet = true; m_hypervisor = value; }
146 inline void SetHypervisor(HypervisorType&& value) { m_hypervisorHasBeenSet = true; m_hypervisor = std::move(value); }
147 inline Instance& WithHypervisor(const HypervisorType& value) { SetHypervisor(value); return *this;}
148 inline Instance& WithHypervisor(HypervisorType&& value) { SetHypervisor(std::move(value)); return *this;}
150
152
155 inline const IamInstanceProfile& GetIamInstanceProfile() const{ return m_iamInstanceProfile; }
156 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
157 inline void SetIamInstanceProfile(const IamInstanceProfile& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; }
158 inline void SetIamInstanceProfile(IamInstanceProfile&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); }
159 inline Instance& WithIamInstanceProfile(const IamInstanceProfile& value) { SetIamInstanceProfile(value); return *this;}
160 inline Instance& WithIamInstanceProfile(IamInstanceProfile&& value) { SetIamInstanceProfile(std::move(value)); return *this;}
162
164
167 inline const InstanceLifecycleType& GetInstanceLifecycle() const{ return m_instanceLifecycle; }
168 inline bool InstanceLifecycleHasBeenSet() const { return m_instanceLifecycleHasBeenSet; }
169 inline void SetInstanceLifecycle(const InstanceLifecycleType& value) { m_instanceLifecycleHasBeenSet = true; m_instanceLifecycle = value; }
170 inline void SetInstanceLifecycle(InstanceLifecycleType&& value) { m_instanceLifecycleHasBeenSet = true; m_instanceLifecycle = std::move(value); }
171 inline Instance& WithInstanceLifecycle(const InstanceLifecycleType& value) { SetInstanceLifecycle(value); return *this;}
172 inline Instance& WithInstanceLifecycle(InstanceLifecycleType&& value) { SetInstanceLifecycle(std::move(value)); return *this;}
174
176
180 inline const Aws::Vector<ElasticGpuAssociation>& GetElasticGpuAssociations() const{ return m_elasticGpuAssociations; }
181 inline bool ElasticGpuAssociationsHasBeenSet() const { return m_elasticGpuAssociationsHasBeenSet; }
182 inline void SetElasticGpuAssociations(const Aws::Vector<ElasticGpuAssociation>& value) { m_elasticGpuAssociationsHasBeenSet = true; m_elasticGpuAssociations = value; }
183 inline void SetElasticGpuAssociations(Aws::Vector<ElasticGpuAssociation>&& value) { m_elasticGpuAssociationsHasBeenSet = true; m_elasticGpuAssociations = std::move(value); }
186 inline Instance& AddElasticGpuAssociations(const ElasticGpuAssociation& value) { m_elasticGpuAssociationsHasBeenSet = true; m_elasticGpuAssociations.push_back(value); return *this; }
187 inline Instance& AddElasticGpuAssociations(ElasticGpuAssociation&& value) { m_elasticGpuAssociationsHasBeenSet = true; m_elasticGpuAssociations.push_back(std::move(value)); return *this; }
189
191
195 inline const Aws::Vector<ElasticInferenceAcceleratorAssociation>& GetElasticInferenceAcceleratorAssociations() const{ return m_elasticInferenceAcceleratorAssociations; }
196 inline bool ElasticInferenceAcceleratorAssociationsHasBeenSet() const { return m_elasticInferenceAcceleratorAssociationsHasBeenSet; }
197 inline void SetElasticInferenceAcceleratorAssociations(const Aws::Vector<ElasticInferenceAcceleratorAssociation>& value) { m_elasticInferenceAcceleratorAssociationsHasBeenSet = true; m_elasticInferenceAcceleratorAssociations = value; }
198 inline void SetElasticInferenceAcceleratorAssociations(Aws::Vector<ElasticInferenceAcceleratorAssociation>&& value) { m_elasticInferenceAcceleratorAssociationsHasBeenSet = true; m_elasticInferenceAcceleratorAssociations = std::move(value); }
201 inline Instance& AddElasticInferenceAcceleratorAssociations(const ElasticInferenceAcceleratorAssociation& value) { m_elasticInferenceAcceleratorAssociationsHasBeenSet = true; m_elasticInferenceAcceleratorAssociations.push_back(value); return *this; }
202 inline Instance& AddElasticInferenceAcceleratorAssociations(ElasticInferenceAcceleratorAssociation&& value) { m_elasticInferenceAcceleratorAssociationsHasBeenSet = true; m_elasticInferenceAcceleratorAssociations.push_back(std::move(value)); return *this; }
204
206
209 inline const Aws::Vector<InstanceNetworkInterface>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
210 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
211 inline void SetNetworkInterfaces(const Aws::Vector<InstanceNetworkInterface>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
212 inline void SetNetworkInterfaces(Aws::Vector<InstanceNetworkInterface>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
215 inline Instance& AddNetworkInterfaces(const InstanceNetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
216 inline Instance& AddNetworkInterfaces(InstanceNetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
218
220
223 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
224 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
225 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
226 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
227 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
228 inline Instance& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
229 inline Instance& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
230 inline Instance& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
232
234
238 inline const Aws::String& GetRootDeviceName() const{ return m_rootDeviceName; }
239 inline bool RootDeviceNameHasBeenSet() const { return m_rootDeviceNameHasBeenSet; }
240 inline void SetRootDeviceName(const Aws::String& value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName = value; }
241 inline void SetRootDeviceName(Aws::String&& value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName = std::move(value); }
242 inline void SetRootDeviceName(const char* value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName.assign(value); }
243 inline Instance& WithRootDeviceName(const Aws::String& value) { SetRootDeviceName(value); return *this;}
244 inline Instance& WithRootDeviceName(Aws::String&& value) { SetRootDeviceName(std::move(value)); return *this;}
245 inline Instance& WithRootDeviceName(const char* value) { SetRootDeviceName(value); return *this;}
247
249
253 inline const DeviceType& GetRootDeviceType() const{ return m_rootDeviceType; }
254 inline bool RootDeviceTypeHasBeenSet() const { return m_rootDeviceTypeHasBeenSet; }
255 inline void SetRootDeviceType(const DeviceType& value) { m_rootDeviceTypeHasBeenSet = true; m_rootDeviceType = value; }
256 inline void SetRootDeviceType(DeviceType&& value) { m_rootDeviceTypeHasBeenSet = true; m_rootDeviceType = std::move(value); }
257 inline Instance& WithRootDeviceType(const DeviceType& value) { SetRootDeviceType(value); return *this;}
258 inline Instance& WithRootDeviceType(DeviceType&& value) { SetRootDeviceType(std::move(value)); return *this;}
260
262
265 inline const Aws::Vector<GroupIdentifier>& GetSecurityGroups() const{ return m_securityGroups; }
266 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
267 inline void SetSecurityGroups(const Aws::Vector<GroupIdentifier>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
268 inline void SetSecurityGroups(Aws::Vector<GroupIdentifier>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
269 inline Instance& WithSecurityGroups(const Aws::Vector<GroupIdentifier>& value) { SetSecurityGroups(value); return *this;}
270 inline Instance& WithSecurityGroups(Aws::Vector<GroupIdentifier>&& value) { SetSecurityGroups(std::move(value)); return *this;}
271 inline Instance& AddSecurityGroups(const GroupIdentifier& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
272 inline Instance& AddSecurityGroups(GroupIdentifier&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
274
276
279 inline bool GetSourceDestCheck() const{ return m_sourceDestCheck; }
280 inline bool SourceDestCheckHasBeenSet() const { return m_sourceDestCheckHasBeenSet; }
281 inline void SetSourceDestCheck(bool value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = value; }
282 inline Instance& WithSourceDestCheck(bool value) { SetSourceDestCheck(value); return *this;}
284
286
289 inline const Aws::String& GetSpotInstanceRequestId() const{ return m_spotInstanceRequestId; }
290 inline bool SpotInstanceRequestIdHasBeenSet() const { return m_spotInstanceRequestIdHasBeenSet; }
291 inline void SetSpotInstanceRequestId(const Aws::String& value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId = value; }
292 inline void SetSpotInstanceRequestId(Aws::String&& value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId = std::move(value); }
293 inline void SetSpotInstanceRequestId(const char* value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId.assign(value); }
294 inline Instance& WithSpotInstanceRequestId(const Aws::String& value) { SetSpotInstanceRequestId(value); return *this;}
295 inline Instance& WithSpotInstanceRequestId(Aws::String&& value) { SetSpotInstanceRequestId(std::move(value)); return *this;}
296 inline Instance& WithSpotInstanceRequestId(const char* value) { SetSpotInstanceRequestId(value); return *this;}
298
300
304 inline const Aws::String& GetSriovNetSupport() const{ return m_sriovNetSupport; }
305 inline bool SriovNetSupportHasBeenSet() const { return m_sriovNetSupportHasBeenSet; }
306 inline void SetSriovNetSupport(const Aws::String& value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport = value; }
307 inline void SetSriovNetSupport(Aws::String&& value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport = std::move(value); }
308 inline void SetSriovNetSupport(const char* value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport.assign(value); }
309 inline Instance& WithSriovNetSupport(const Aws::String& value) { SetSriovNetSupport(value); return *this;}
310 inline Instance& WithSriovNetSupport(Aws::String&& value) { SetSriovNetSupport(std::move(value)); return *this;}
311 inline Instance& WithSriovNetSupport(const char* value) { SetSriovNetSupport(value); return *this;}
313
315
318 inline const StateReason& GetStateReason() const{ return m_stateReason; }
319 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
320 inline void SetStateReason(const StateReason& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
321 inline void SetStateReason(StateReason&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
322 inline Instance& WithStateReason(const StateReason& value) { SetStateReason(value); return *this;}
323 inline Instance& WithStateReason(StateReason&& value) { SetStateReason(std::move(value)); return *this;}
325
327
330 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
331 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
332 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
333 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
334 inline Instance& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
335 inline Instance& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
336 inline Instance& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
337 inline Instance& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
339
341
344 inline const VirtualizationType& GetVirtualizationType() const{ return m_virtualizationType; }
345 inline bool VirtualizationTypeHasBeenSet() const { return m_virtualizationTypeHasBeenSet; }
346 inline void SetVirtualizationType(const VirtualizationType& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = value; }
347 inline void SetVirtualizationType(VirtualizationType&& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = std::move(value); }
348 inline Instance& WithVirtualizationType(const VirtualizationType& value) { SetVirtualizationType(value); return *this;}
349 inline Instance& WithVirtualizationType(VirtualizationType&& value) { SetVirtualizationType(std::move(value)); return *this;}
351
353
356 inline const CpuOptions& GetCpuOptions() const{ return m_cpuOptions; }
357 inline bool CpuOptionsHasBeenSet() const { return m_cpuOptionsHasBeenSet; }
358 inline void SetCpuOptions(const CpuOptions& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = value; }
359 inline void SetCpuOptions(CpuOptions&& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = std::move(value); }
360 inline Instance& WithCpuOptions(const CpuOptions& value) { SetCpuOptions(value); return *this;}
361 inline Instance& WithCpuOptions(CpuOptions&& value) { SetCpuOptions(std::move(value)); return *this;}
363
365
368 inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; }
369 inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
370 inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = value; }
371 inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::move(value); }
372 inline void SetCapacityReservationId(const char* value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId.assign(value); }
373 inline Instance& WithCapacityReservationId(const Aws::String& value) { SetCapacityReservationId(value); return *this;}
374 inline Instance& WithCapacityReservationId(Aws::String&& value) { SetCapacityReservationId(std::move(value)); return *this;}
375 inline Instance& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;}
377
379
382 inline const CapacityReservationSpecificationResponse& GetCapacityReservationSpecification() const{ return m_capacityReservationSpecification; }
383 inline bool CapacityReservationSpecificationHasBeenSet() const { return m_capacityReservationSpecificationHasBeenSet; }
384 inline void SetCapacityReservationSpecification(const CapacityReservationSpecificationResponse& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = value; }
385 inline void SetCapacityReservationSpecification(CapacityReservationSpecificationResponse&& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = std::move(value); }
389
391
394 inline const HibernationOptions& GetHibernationOptions() const{ return m_hibernationOptions; }
395 inline bool HibernationOptionsHasBeenSet() const { return m_hibernationOptionsHasBeenSet; }
396 inline void SetHibernationOptions(const HibernationOptions& value) { m_hibernationOptionsHasBeenSet = true; m_hibernationOptions = value; }
397 inline void SetHibernationOptions(HibernationOptions&& value) { m_hibernationOptionsHasBeenSet = true; m_hibernationOptions = std::move(value); }
398 inline Instance& WithHibernationOptions(const HibernationOptions& value) { SetHibernationOptions(value); return *this;}
399 inline Instance& WithHibernationOptions(HibernationOptions&& value) { SetHibernationOptions(std::move(value)); return *this;}
401
403
406 inline const Aws::Vector<LicenseConfiguration>& GetLicenses() const{ return m_licenses; }
407 inline bool LicensesHasBeenSet() const { return m_licensesHasBeenSet; }
408 inline void SetLicenses(const Aws::Vector<LicenseConfiguration>& value) { m_licensesHasBeenSet = true; m_licenses = value; }
409 inline void SetLicenses(Aws::Vector<LicenseConfiguration>&& value) { m_licensesHasBeenSet = true; m_licenses = std::move(value); }
410 inline Instance& WithLicenses(const Aws::Vector<LicenseConfiguration>& value) { SetLicenses(value); return *this;}
411 inline Instance& WithLicenses(Aws::Vector<LicenseConfiguration>&& value) { SetLicenses(std::move(value)); return *this;}
412 inline Instance& AddLicenses(const LicenseConfiguration& value) { m_licensesHasBeenSet = true; m_licenses.push_back(value); return *this; }
413 inline Instance& AddLicenses(LicenseConfiguration&& value) { m_licensesHasBeenSet = true; m_licenses.push_back(std::move(value)); return *this; }
415
417
420 inline const InstanceMetadataOptionsResponse& GetMetadataOptions() const{ return m_metadataOptions; }
421 inline bool MetadataOptionsHasBeenSet() const { return m_metadataOptionsHasBeenSet; }
422 inline void SetMetadataOptions(const InstanceMetadataOptionsResponse& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = value; }
423 inline void SetMetadataOptions(InstanceMetadataOptionsResponse&& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = std::move(value); }
425 inline Instance& WithMetadataOptions(InstanceMetadataOptionsResponse&& value) { SetMetadataOptions(std::move(value)); return *this;}
427
429
433 inline const EnclaveOptions& GetEnclaveOptions() const{ return m_enclaveOptions; }
434 inline bool EnclaveOptionsHasBeenSet() const { return m_enclaveOptionsHasBeenSet; }
435 inline void SetEnclaveOptions(const EnclaveOptions& value) { m_enclaveOptionsHasBeenSet = true; m_enclaveOptions = value; }
436 inline void SetEnclaveOptions(EnclaveOptions&& value) { m_enclaveOptionsHasBeenSet = true; m_enclaveOptions = std::move(value); }
437 inline Instance& WithEnclaveOptions(const EnclaveOptions& value) { SetEnclaveOptions(value); return *this;}
438 inline Instance& WithEnclaveOptions(EnclaveOptions&& value) { SetEnclaveOptions(std::move(value)); return *this;}
440
442
452 inline const BootModeValues& GetBootMode() const{ return m_bootMode; }
453 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
454 inline void SetBootMode(const BootModeValues& value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
455 inline void SetBootMode(BootModeValues&& value) { m_bootModeHasBeenSet = true; m_bootMode = std::move(value); }
456 inline Instance& WithBootMode(const BootModeValues& value) { SetBootMode(value); return *this;}
457 inline Instance& WithBootMode(BootModeValues&& value) { SetBootMode(std::move(value)); return *this;}
459
461
466 inline const Aws::String& GetPlatformDetails() const{ return m_platformDetails; }
467 inline bool PlatformDetailsHasBeenSet() const { return m_platformDetailsHasBeenSet; }
468 inline void SetPlatformDetails(const Aws::String& value) { m_platformDetailsHasBeenSet = true; m_platformDetails = value; }
469 inline void SetPlatformDetails(Aws::String&& value) { m_platformDetailsHasBeenSet = true; m_platformDetails = std::move(value); }
470 inline void SetPlatformDetails(const char* value) { m_platformDetailsHasBeenSet = true; m_platformDetails.assign(value); }
471 inline Instance& WithPlatformDetails(const Aws::String& value) { SetPlatformDetails(value); return *this;}
472 inline Instance& WithPlatformDetails(Aws::String&& value) { SetPlatformDetails(std::move(value)); return *this;}
473 inline Instance& WithPlatformDetails(const char* value) { SetPlatformDetails(value); return *this;}
475
477
482 inline const Aws::String& GetUsageOperation() const{ return m_usageOperation; }
483 inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; }
484 inline void SetUsageOperation(const Aws::String& value) { m_usageOperationHasBeenSet = true; m_usageOperation = value; }
485 inline void SetUsageOperation(Aws::String&& value) { m_usageOperationHasBeenSet = true; m_usageOperation = std::move(value); }
486 inline void SetUsageOperation(const char* value) { m_usageOperationHasBeenSet = true; m_usageOperation.assign(value); }
487 inline Instance& WithUsageOperation(const Aws::String& value) { SetUsageOperation(value); return *this;}
488 inline Instance& WithUsageOperation(Aws::String&& value) { SetUsageOperation(std::move(value)); return *this;}
489 inline Instance& WithUsageOperation(const char* value) { SetUsageOperation(value); return *this;}
491
493
496 inline const Aws::Utils::DateTime& GetUsageOperationUpdateTime() const{ return m_usageOperationUpdateTime; }
497 inline bool UsageOperationUpdateTimeHasBeenSet() const { return m_usageOperationUpdateTimeHasBeenSet; }
498 inline void SetUsageOperationUpdateTime(const Aws::Utils::DateTime& value) { m_usageOperationUpdateTimeHasBeenSet = true; m_usageOperationUpdateTime = value; }
499 inline void SetUsageOperationUpdateTime(Aws::Utils::DateTime&& value) { m_usageOperationUpdateTimeHasBeenSet = true; m_usageOperationUpdateTime = std::move(value); }
503
505
508 inline const PrivateDnsNameOptionsResponse& GetPrivateDnsNameOptions() const{ return m_privateDnsNameOptions; }
509 inline bool PrivateDnsNameOptionsHasBeenSet() const { return m_privateDnsNameOptionsHasBeenSet; }
510 inline void SetPrivateDnsNameOptions(const PrivateDnsNameOptionsResponse& value) { m_privateDnsNameOptionsHasBeenSet = true; m_privateDnsNameOptions = value; }
511 inline void SetPrivateDnsNameOptions(PrivateDnsNameOptionsResponse&& value) { m_privateDnsNameOptionsHasBeenSet = true; m_privateDnsNameOptions = std::move(value); }
515
517
520 inline const Aws::String& GetIpv6Address() const{ return m_ipv6Address; }
521 inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; }
522 inline void SetIpv6Address(const Aws::String& value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address = value; }
523 inline void SetIpv6Address(Aws::String&& value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address = std::move(value); }
524 inline void SetIpv6Address(const char* value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address.assign(value); }
525 inline Instance& WithIpv6Address(const Aws::String& value) { SetIpv6Address(value); return *this;}
526 inline Instance& WithIpv6Address(Aws::String&& value) { SetIpv6Address(std::move(value)); return *this;}
527 inline Instance& WithIpv6Address(const char* value) { SetIpv6Address(value); return *this;}
529
531
537 inline const Aws::String& GetTpmSupport() const{ return m_tpmSupport; }
538 inline bool TpmSupportHasBeenSet() const { return m_tpmSupportHasBeenSet; }
539 inline void SetTpmSupport(const Aws::String& value) { m_tpmSupportHasBeenSet = true; m_tpmSupport = value; }
540 inline void SetTpmSupport(Aws::String&& value) { m_tpmSupportHasBeenSet = true; m_tpmSupport = std::move(value); }
541 inline void SetTpmSupport(const char* value) { m_tpmSupportHasBeenSet = true; m_tpmSupport.assign(value); }
542 inline Instance& WithTpmSupport(const Aws::String& value) { SetTpmSupport(value); return *this;}
543 inline Instance& WithTpmSupport(Aws::String&& value) { SetTpmSupport(std::move(value)); return *this;}
544 inline Instance& WithTpmSupport(const char* value) { SetTpmSupport(value); return *this;}
546
548
552 inline const InstanceMaintenanceOptions& GetMaintenanceOptions() const{ return m_maintenanceOptions; }
553 inline bool MaintenanceOptionsHasBeenSet() const { return m_maintenanceOptionsHasBeenSet; }
554 inline void SetMaintenanceOptions(const InstanceMaintenanceOptions& value) { m_maintenanceOptionsHasBeenSet = true; m_maintenanceOptions = value; }
555 inline void SetMaintenanceOptions(InstanceMaintenanceOptions&& value) { m_maintenanceOptionsHasBeenSet = true; m_maintenanceOptions = std::move(value); }
557 inline Instance& WithMaintenanceOptions(InstanceMaintenanceOptions&& value) { SetMaintenanceOptions(std::move(value)); return *this;}
559
561
567 inline const InstanceBootModeValues& GetCurrentInstanceBootMode() const{ return m_currentInstanceBootMode; }
568 inline bool CurrentInstanceBootModeHasBeenSet() const { return m_currentInstanceBootModeHasBeenSet; }
569 inline void SetCurrentInstanceBootMode(const InstanceBootModeValues& value) { m_currentInstanceBootModeHasBeenSet = true; m_currentInstanceBootMode = value; }
570 inline void SetCurrentInstanceBootMode(InstanceBootModeValues&& value) { m_currentInstanceBootModeHasBeenSet = true; m_currentInstanceBootMode = std::move(value); }
574
576
579 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
580 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
581 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
582 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
583 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
584 inline Instance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
585 inline Instance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
586 inline Instance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
588
590
593 inline const Aws::String& GetImageId() const{ return m_imageId; }
594 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
595 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
596 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
597 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
598 inline Instance& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
599 inline Instance& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
600 inline Instance& WithImageId(const char* value) { SetImageId(value); return *this;}
602
604
607 inline const InstanceState& GetState() const{ return m_state; }
608 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
609 inline void SetState(const InstanceState& value) { m_stateHasBeenSet = true; m_state = value; }
610 inline void SetState(InstanceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
611 inline Instance& WithState(const InstanceState& value) { SetState(value); return *this;}
612 inline Instance& WithState(InstanceState&& value) { SetState(std::move(value)); return *this;}
614
616
625 inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; }
626 inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; }
627 inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
628 inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); }
629 inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); }
630 inline Instance& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;}
631 inline Instance& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;}
632 inline Instance& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;}
634
636
641 inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; }
642 inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; }
643 inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; }
644 inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::move(value); }
645 inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); }
646 inline Instance& WithPublicDnsName(const Aws::String& value) { SetPublicDnsName(value); return *this;}
647 inline Instance& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(std::move(value)); return *this;}
648 inline Instance& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;}
650
652
656 inline const Aws::String& GetStateTransitionReason() const{ return m_stateTransitionReason; }
657 inline bool StateTransitionReasonHasBeenSet() const { return m_stateTransitionReasonHasBeenSet; }
658 inline void SetStateTransitionReason(const Aws::String& value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason = value; }
659 inline void SetStateTransitionReason(Aws::String&& value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason = std::move(value); }
660 inline void SetStateTransitionReason(const char* value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason.assign(value); }
661 inline Instance& WithStateTransitionReason(const Aws::String& value) { SetStateTransitionReason(value); return *this;}
662 inline Instance& WithStateTransitionReason(Aws::String&& value) { SetStateTransitionReason(std::move(value)); return *this;}
663 inline Instance& WithStateTransitionReason(const char* value) { SetStateTransitionReason(value); return *this;}
665
667
671 inline const Aws::String& GetKeyName() const{ return m_keyName; }
672 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
673 inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
674 inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
675 inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
676 inline Instance& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
677 inline Instance& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
678 inline Instance& WithKeyName(const char* value) { SetKeyName(value); return *this;}
680
682
686 inline int GetAmiLaunchIndex() const{ return m_amiLaunchIndex; }
687 inline bool AmiLaunchIndexHasBeenSet() const { return m_amiLaunchIndexHasBeenSet; }
688 inline void SetAmiLaunchIndex(int value) { m_amiLaunchIndexHasBeenSet = true; m_amiLaunchIndex = value; }
689 inline Instance& WithAmiLaunchIndex(int value) { SetAmiLaunchIndex(value); return *this;}
691
693
696 inline const Aws::Vector<ProductCode>& GetProductCodes() const{ return m_productCodes; }
697 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
698 inline void SetProductCodes(const Aws::Vector<ProductCode>& value) { m_productCodesHasBeenSet = true; m_productCodes = value; }
699 inline void SetProductCodes(Aws::Vector<ProductCode>&& value) { m_productCodesHasBeenSet = true; m_productCodes = std::move(value); }
700 inline Instance& WithProductCodes(const Aws::Vector<ProductCode>& value) { SetProductCodes(value); return *this;}
701 inline Instance& WithProductCodes(Aws::Vector<ProductCode>&& value) { SetProductCodes(std::move(value)); return *this;}
702 inline Instance& AddProductCodes(const ProductCode& value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(value); return *this; }
703 inline Instance& AddProductCodes(ProductCode&& value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(std::move(value)); return *this; }
705
707
710 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
711 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
712 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
713 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
714 inline Instance& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
715 inline Instance& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
717
719
722 inline const Aws::Utils::DateTime& GetLaunchTime() const{ return m_launchTime; }
723 inline bool LaunchTimeHasBeenSet() const { return m_launchTimeHasBeenSet; }
724 inline void SetLaunchTime(const Aws::Utils::DateTime& value) { m_launchTimeHasBeenSet = true; m_launchTime = value; }
725 inline void SetLaunchTime(Aws::Utils::DateTime&& value) { m_launchTimeHasBeenSet = true; m_launchTime = std::move(value); }
726 inline Instance& WithLaunchTime(const Aws::Utils::DateTime& value) { SetLaunchTime(value); return *this;}
727 inline Instance& WithLaunchTime(Aws::Utils::DateTime&& value) { SetLaunchTime(std::move(value)); return *this;}
729
731
734 inline const Placement& GetPlacement() const{ return m_placement; }
735 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
736 inline void SetPlacement(const Placement& value) { m_placementHasBeenSet = true; m_placement = value; }
737 inline void SetPlacement(Placement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
738 inline Instance& WithPlacement(const Placement& value) { SetPlacement(value); return *this;}
739 inline Instance& WithPlacement(Placement&& value) { SetPlacement(std::move(value)); return *this;}
741
743
746 inline const Aws::String& GetKernelId() const{ return m_kernelId; }
747 inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; }
748 inline void SetKernelId(const Aws::String& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; }
749 inline void SetKernelId(Aws::String&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::move(value); }
750 inline void SetKernelId(const char* value) { m_kernelIdHasBeenSet = true; m_kernelId.assign(value); }
751 inline Instance& WithKernelId(const Aws::String& value) { SetKernelId(value); return *this;}
752 inline Instance& WithKernelId(Aws::String&& value) { SetKernelId(std::move(value)); return *this;}
753 inline Instance& WithKernelId(const char* value) { SetKernelId(value); return *this;}
755
757
760 inline const Aws::String& GetRamdiskId() const{ return m_ramdiskId; }
761 inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; }
762 inline void SetRamdiskId(const Aws::String& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = value; }
763 inline void SetRamdiskId(Aws::String&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::move(value); }
764 inline void SetRamdiskId(const char* value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId.assign(value); }
765 inline Instance& WithRamdiskId(const Aws::String& value) { SetRamdiskId(value); return *this;}
766 inline Instance& WithRamdiskId(Aws::String&& value) { SetRamdiskId(std::move(value)); return *this;}
767 inline Instance& WithRamdiskId(const char* value) { SetRamdiskId(value); return *this;}
769
771
775 inline const PlatformValues& GetPlatform() const{ return m_platform; }
776 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
777 inline void SetPlatform(const PlatformValues& value) { m_platformHasBeenSet = true; m_platform = value; }
778 inline void SetPlatform(PlatformValues&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
779 inline Instance& WithPlatform(const PlatformValues& value) { SetPlatform(value); return *this;}
780 inline Instance& WithPlatform(PlatformValues&& value) { SetPlatform(std::move(value)); return *this;}
782
784
787 inline const Monitoring& GetMonitoring() const{ return m_monitoring; }
788 inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; }
789 inline void SetMonitoring(const Monitoring& value) { m_monitoringHasBeenSet = true; m_monitoring = value; }
790 inline void SetMonitoring(Monitoring&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); }
791 inline Instance& WithMonitoring(const Monitoring& value) { SetMonitoring(value); return *this;}
792 inline Instance& WithMonitoring(Monitoring&& value) { SetMonitoring(std::move(value)); return *this;}
794
796
799 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
800 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
801 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
802 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
803 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
804 inline Instance& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
805 inline Instance& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
806 inline Instance& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
808
810
813 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
814 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
815 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
816 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
817 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
818 inline Instance& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
819 inline Instance& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
820 inline Instance& WithVpcId(const char* value) { SetVpcId(value); return *this;}
822
824
827 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
828 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
829 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
830 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
831 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
832 inline Instance& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
833 inline Instance& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
834 inline Instance& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
836
838
843 inline const Aws::String& GetPublicIpAddress() const{ return m_publicIpAddress; }
844 inline bool PublicIpAddressHasBeenSet() const { return m_publicIpAddressHasBeenSet; }
845 inline void SetPublicIpAddress(const Aws::String& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = value; }
846 inline void SetPublicIpAddress(Aws::String&& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = std::move(value); }
847 inline void SetPublicIpAddress(const char* value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress.assign(value); }
848 inline Instance& WithPublicIpAddress(const Aws::String& value) { SetPublicIpAddress(value); return *this;}
849 inline Instance& WithPublicIpAddress(Aws::String&& value) { SetPublicIpAddress(std::move(value)); return *this;}
850 inline Instance& WithPublicIpAddress(const char* value) { SetPublicIpAddress(value); return *this;}
852 private:
853
854 ArchitectureValues m_architecture;
855 bool m_architectureHasBeenSet = false;
856
857 Aws::Vector<InstanceBlockDeviceMapping> m_blockDeviceMappings;
858 bool m_blockDeviceMappingsHasBeenSet = false;
859
860 Aws::String m_clientToken;
861 bool m_clientTokenHasBeenSet = false;
862
863 bool m_ebsOptimized;
864 bool m_ebsOptimizedHasBeenSet = false;
865
866 bool m_enaSupport;
867 bool m_enaSupportHasBeenSet = false;
868
869 HypervisorType m_hypervisor;
870 bool m_hypervisorHasBeenSet = false;
871
872 IamInstanceProfile m_iamInstanceProfile;
873 bool m_iamInstanceProfileHasBeenSet = false;
874
875 InstanceLifecycleType m_instanceLifecycle;
876 bool m_instanceLifecycleHasBeenSet = false;
877
878 Aws::Vector<ElasticGpuAssociation> m_elasticGpuAssociations;
879 bool m_elasticGpuAssociationsHasBeenSet = false;
880
881 Aws::Vector<ElasticInferenceAcceleratorAssociation> m_elasticInferenceAcceleratorAssociations;
882 bool m_elasticInferenceAcceleratorAssociationsHasBeenSet = false;
883
884 Aws::Vector<InstanceNetworkInterface> m_networkInterfaces;
885 bool m_networkInterfacesHasBeenSet = false;
886
887 Aws::String m_outpostArn;
888 bool m_outpostArnHasBeenSet = false;
889
890 Aws::String m_rootDeviceName;
891 bool m_rootDeviceNameHasBeenSet = false;
892
893 DeviceType m_rootDeviceType;
894 bool m_rootDeviceTypeHasBeenSet = false;
895
896 Aws::Vector<GroupIdentifier> m_securityGroups;
897 bool m_securityGroupsHasBeenSet = false;
898
899 bool m_sourceDestCheck;
900 bool m_sourceDestCheckHasBeenSet = false;
901
902 Aws::String m_spotInstanceRequestId;
903 bool m_spotInstanceRequestIdHasBeenSet = false;
904
905 Aws::String m_sriovNetSupport;
906 bool m_sriovNetSupportHasBeenSet = false;
907
908 StateReason m_stateReason;
909 bool m_stateReasonHasBeenSet = false;
910
911 Aws::Vector<Tag> m_tags;
912 bool m_tagsHasBeenSet = false;
913
914 VirtualizationType m_virtualizationType;
915 bool m_virtualizationTypeHasBeenSet = false;
916
917 CpuOptions m_cpuOptions;
918 bool m_cpuOptionsHasBeenSet = false;
919
920 Aws::String m_capacityReservationId;
921 bool m_capacityReservationIdHasBeenSet = false;
922
923 CapacityReservationSpecificationResponse m_capacityReservationSpecification;
924 bool m_capacityReservationSpecificationHasBeenSet = false;
925
926 HibernationOptions m_hibernationOptions;
927 bool m_hibernationOptionsHasBeenSet = false;
928
930 bool m_licensesHasBeenSet = false;
931
932 InstanceMetadataOptionsResponse m_metadataOptions;
933 bool m_metadataOptionsHasBeenSet = false;
934
935 EnclaveOptions m_enclaveOptions;
936 bool m_enclaveOptionsHasBeenSet = false;
937
938 BootModeValues m_bootMode;
939 bool m_bootModeHasBeenSet = false;
940
941 Aws::String m_platformDetails;
942 bool m_platformDetailsHasBeenSet = false;
943
944 Aws::String m_usageOperation;
945 bool m_usageOperationHasBeenSet = false;
946
947 Aws::Utils::DateTime m_usageOperationUpdateTime;
948 bool m_usageOperationUpdateTimeHasBeenSet = false;
949
950 PrivateDnsNameOptionsResponse m_privateDnsNameOptions;
951 bool m_privateDnsNameOptionsHasBeenSet = false;
952
953 Aws::String m_ipv6Address;
954 bool m_ipv6AddressHasBeenSet = false;
955
956 Aws::String m_tpmSupport;
957 bool m_tpmSupportHasBeenSet = false;
958
959 InstanceMaintenanceOptions m_maintenanceOptions;
960 bool m_maintenanceOptionsHasBeenSet = false;
961
962 InstanceBootModeValues m_currentInstanceBootMode;
963 bool m_currentInstanceBootModeHasBeenSet = false;
964
965 Aws::String m_instanceId;
966 bool m_instanceIdHasBeenSet = false;
967
968 Aws::String m_imageId;
969 bool m_imageIdHasBeenSet = false;
970
971 InstanceState m_state;
972 bool m_stateHasBeenSet = false;
973
974 Aws::String m_privateDnsName;
975 bool m_privateDnsNameHasBeenSet = false;
976
977 Aws::String m_publicDnsName;
978 bool m_publicDnsNameHasBeenSet = false;
979
980 Aws::String m_stateTransitionReason;
981 bool m_stateTransitionReasonHasBeenSet = false;
982
983 Aws::String m_keyName;
984 bool m_keyNameHasBeenSet = false;
985
986 int m_amiLaunchIndex;
987 bool m_amiLaunchIndexHasBeenSet = false;
988
989 Aws::Vector<ProductCode> m_productCodes;
990 bool m_productCodesHasBeenSet = false;
991
992 InstanceType m_instanceType;
993 bool m_instanceTypeHasBeenSet = false;
994
995 Aws::Utils::DateTime m_launchTime;
996 bool m_launchTimeHasBeenSet = false;
997
998 Placement m_placement;
999 bool m_placementHasBeenSet = false;
1000
1001 Aws::String m_kernelId;
1002 bool m_kernelIdHasBeenSet = false;
1003
1004 Aws::String m_ramdiskId;
1005 bool m_ramdiskIdHasBeenSet = false;
1006
1007 PlatformValues m_platform;
1008 bool m_platformHasBeenSet = false;
1009
1010 Monitoring m_monitoring;
1011 bool m_monitoringHasBeenSet = false;
1012
1013 Aws::String m_subnetId;
1014 bool m_subnetIdHasBeenSet = false;
1015
1016 Aws::String m_vpcId;
1017 bool m_vpcIdHasBeenSet = false;
1018
1019 Aws::String m_privateIpAddress;
1020 bool m_privateIpAddressHasBeenSet = false;
1021
1022 Aws::String m_publicIpAddress;
1023 bool m_publicIpAddressHasBeenSet = false;
1024 };
1025
1026} // namespace Model
1027} // namespace EC2
1028} // namespace Aws
Instance & WithUsageOperation(Aws::String &&value)
Definition Instance.h:488
void SetTpmSupport(const char *value)
Definition Instance.h:541
const Aws::Vector< InstanceBlockDeviceMapping > & GetBlockDeviceMappings() const
Definition Instance.h:89
bool StateTransitionReasonHasBeenSet() const
Definition Instance.h:657
Instance & WithCpuOptions(CpuOptions &&value)
Definition Instance.h:361
Instance & WithStateTransitionReason(const char *value)
Definition Instance.h:663
Instance & WithIamInstanceProfile(IamInstanceProfile &&value)
Definition Instance.h:160
Instance & WithMetadataOptions(const InstanceMetadataOptionsResponse &value)
Definition Instance.h:424
Instance & WithUsageOperationUpdateTime(const Aws::Utils::DateTime &value)
Definition Instance.h:500
Instance & WithEnclaveOptions(EnclaveOptions &&value)
Definition Instance.h:438
Instance & WithKernelId(const Aws::String &value)
Definition Instance.h:751
const BootModeValues & GetBootMode() const
Definition Instance.h:452
void SetCurrentInstanceBootMode(InstanceBootModeValues &&value)
Definition Instance.h:570
void SetCapacityReservationSpecification(const CapacityReservationSpecificationResponse &value)
Definition Instance.h:384
bool RootDeviceNameHasBeenSet() const
Definition Instance.h:239
void SetIpv6Address(Aws::String &&value)
Definition Instance.h:523
Instance & WithPlacement(Placement &&value)
Definition Instance.h:739
Instance & WithPrivateIpAddress(const Aws::String &value)
Definition Instance.h:832
bool PrivateDnsNameOptionsHasBeenSet() const
Definition Instance.h:509
void SetIpv6Address(const Aws::String &value)
Definition Instance.h:522
Instance & WithPrivateDnsNameOptions(const PrivateDnsNameOptionsResponse &value)
Definition Instance.h:512
const InstanceState & GetState() const
Definition Instance.h:607
void SetInstanceType(InstanceType &&value)
Definition Instance.h:713
void SetCurrentInstanceBootMode(const InstanceBootModeValues &value)
Definition Instance.h:569
Instance & WithPlatform(const PlatformValues &value)
Definition Instance.h:779
Instance & WithRootDeviceName(const char *value)
Definition Instance.h:245
Instance & WithPrivateDnsNameOptions(PrivateDnsNameOptionsResponse &&value)
Definition Instance.h:513
Instance & WithElasticInferenceAcceleratorAssociations(const Aws::Vector< ElasticInferenceAcceleratorAssociation > &value)
Definition Instance.h:199
void SetKernelId(const Aws::String &value)
Definition Instance.h:748
void SetSpotInstanceRequestId(const Aws::String &value)
Definition Instance.h:291
bool ElasticInferenceAcceleratorAssociationsHasBeenSet() const
Definition Instance.h:196
Instance & AddElasticGpuAssociations(const ElasticGpuAssociation &value)
Definition Instance.h:186
Instance & AddBlockDeviceMappings(const InstanceBlockDeviceMapping &value)
Definition Instance.h:95
bool BlockDeviceMappingsHasBeenSet() const
Definition Instance.h:90
void SetVirtualizationType(VirtualizationType &&value)
Definition Instance.h:347
Instance & WithMaintenanceOptions(const InstanceMaintenanceOptions &value)
Definition Instance.h:556
bool GetEnaSupport() const
Definition Instance.h:132
void SetEnclaveOptions(const EnclaveOptions &value)
Definition Instance.h:435
void SetCapacityReservationId(const Aws::String &value)
Definition Instance.h:370
void SetPlatformDetails(Aws::String &&value)
Definition Instance.h:469
const Aws::String & GetKeyName() const
Definition Instance.h:671
void SetIpv6Address(const char *value)
Definition Instance.h:524
Instance & WithPlatformDetails(Aws::String &&value)
Definition Instance.h:472
Instance & WithSecurityGroups(const Aws::Vector< GroupIdentifier > &value)
Definition Instance.h:269
const Aws::String & GetIpv6Address() const
Definition Instance.h:520
void SetIamInstanceProfile(const IamInstanceProfile &value)
Definition Instance.h:157
void SetTags(Aws::Vector< Tag > &&value)
Definition Instance.h:333
Instance & WithMonitoring(const Monitoring &value)
Definition Instance.h:791
bool LicensesHasBeenSet() const
Definition Instance.h:407
Instance & WithBootMode(const BootModeValues &value)
Definition Instance.h:456
void SetRamdiskId(const char *value)
Definition Instance.h:764
void SetStateTransitionReason(const Aws::String &value)
Definition Instance.h:658
void SetHypervisor(HypervisorType &&value)
Definition Instance.h:146
Instance & WithSubnetId(const Aws::String &value)
Definition Instance.h:804
void SetStateTransitionReason(Aws::String &&value)
Definition Instance.h:659
void SetBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
Definition Instance.h:92
bool Ipv6AddressHasBeenSet() const
Definition Instance.h:521
void SetKeyName(const Aws::String &value)
Definition Instance.h:673
Instance & WithVirtualizationType(const VirtualizationType &value)
Definition Instance.h:348
void SetImageId(const Aws::String &value)
Definition Instance.h:595
Instance & WithRootDeviceType(const DeviceType &value)
Definition Instance.h:257
bool HibernationOptionsHasBeenSet() const
Definition Instance.h:395
Instance & WithStateTransitionReason(const Aws::String &value)
Definition Instance.h:661
Instance & AddTags(const Tag &value)
Definition Instance.h:336
void SetInstanceId(const char *value)
Definition Instance.h:583
void SetLicenses(const Aws::Vector< LicenseConfiguration > &value)
Definition Instance.h:408
Instance & WithPrivateDnsName(Aws::String &&value)
Definition Instance.h:631
Instance & WithRootDeviceName(Aws::String &&value)
Definition Instance.h:244
Instance & AddLicenses(const LicenseConfiguration &value)
Definition Instance.h:412
bool KeyNameHasBeenSet() const
Definition Instance.h:672
Instance & WithKeyName(Aws::String &&value)
Definition Instance.h:677
void SetOutpostArn(const char *value)
Definition Instance.h:227
void SetImageId(Aws::String &&value)
Definition Instance.h:596
void SetKeyName(Aws::String &&value)
Definition Instance.h:674
void SetTags(const Aws::Vector< Tag > &value)
Definition Instance.h:332
bool PlatformDetailsHasBeenSet() const
Definition Instance.h:467
const Aws::Vector< LicenseConfiguration > & GetLicenses() const
Definition Instance.h:406
void SetSriovNetSupport(const Aws::String &value)
Definition Instance.h:306
Instance & WithCapacityReservationSpecification(CapacityReservationSpecificationResponse &&value)
Definition Instance.h:387
const HypervisorType & GetHypervisor() const
Definition Instance.h:143
void SetEnaSupport(bool value)
Definition Instance.h:134
Instance & AddProductCodes(const ProductCode &value)
Definition Instance.h:702
Instance & WithPublicIpAddress(Aws::String &&value)
Definition Instance.h:849
const Aws::Vector< ProductCode > & GetProductCodes() const
Definition Instance.h:696
const Aws::String & GetVpcId() const
Definition Instance.h:813
void SetPublicDnsName(const char *value)
Definition Instance.h:645
Instance & WithStateReason(const StateReason &value)
Definition Instance.h:322
void SetNetworkInterfaces(const Aws::Vector< InstanceNetworkInterface > &value)
Definition Instance.h:211
Instance & WithTpmSupport(const char *value)
Definition Instance.h:544
Instance & WithKeyName(const Aws::String &value)
Definition Instance.h:676
void SetElasticInferenceAcceleratorAssociations(const Aws::Vector< ElasticInferenceAcceleratorAssociation > &value)
Definition Instance.h:197
Instance & WithSourceDestCheck(bool value)
Definition Instance.h:282
bool CurrentInstanceBootModeHasBeenSet() const
Definition Instance.h:568
void SetBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
Definition Instance.h:91
const Aws::Vector< ElasticGpuAssociation > & GetElasticGpuAssociations() const
Definition Instance.h:180
void SetElasticGpuAssociations(Aws::Vector< ElasticGpuAssociation > &&value)
Definition Instance.h:183
Instance & WithBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
Definition Instance.h:93
void SetCapacityReservationId(const char *value)
Definition Instance.h:372
void SetUsageOperation(const char *value)
Definition Instance.h:486
Instance & WithPublicDnsName(Aws::String &&value)
Definition Instance.h:647
Instance & WithPublicDnsName(const char *value)
Definition Instance.h:648
Instance & WithVpcId(const Aws::String &value)
Definition Instance.h:818
Instance & WithPrivateDnsName(const Aws::String &value)
Definition Instance.h:630
Instance & WithInstanceId(const char *value)
Definition Instance.h:586
Instance & AddBlockDeviceMappings(InstanceBlockDeviceMapping &&value)
Definition Instance.h:96
void SetInstanceLifecycle(InstanceLifecycleType &&value)
Definition Instance.h:170
bool EnaSupportHasBeenSet() const
Definition Instance.h:133
void SetUsageOperationUpdateTime(const Aws::Utils::DateTime &value)
Definition Instance.h:498
void SetPlacement(Placement &&value)
Definition Instance.h:737
void SetBootMode(const BootModeValues &value)
Definition Instance.h:454
const Aws::String & GetCapacityReservationId() const
Definition Instance.h:368
Instance & WithMetadataOptions(InstanceMetadataOptionsResponse &&value)
Definition Instance.h:425
Instance & WithRootDeviceType(DeviceType &&value)
Definition Instance.h:258
Instance & WithStateReason(StateReason &&value)
Definition Instance.h:323
void SetSecurityGroups(Aws::Vector< GroupIdentifier > &&value)
Definition Instance.h:268
const StateReason & GetStateReason() const
Definition Instance.h:318
void SetClientToken(const char *value)
Definition Instance.h:108
const Aws::String & GetPrivateDnsName() const
Definition Instance.h:625
bool MonitoringHasBeenSet() const
Definition Instance.h:788
bool AmiLaunchIndexHasBeenSet() const
Definition Instance.h:687
Instance & AddSecurityGroups(GroupIdentifier &&value)
Definition Instance.h:272
Instance & WithKeyName(const char *value)
Definition Instance.h:678
Instance & WithProductCodes(Aws::Vector< ProductCode > &&value)
Definition Instance.h:701
bool InstanceLifecycleHasBeenSet() const
Definition Instance.h:168
Instance & WithElasticGpuAssociations(const Aws::Vector< ElasticGpuAssociation > &value)
Definition Instance.h:184
void SetTpmSupport(const Aws::String &value)
Definition Instance.h:539
void SetPlatformDetails(const Aws::String &value)
Definition Instance.h:468
bool PublicIpAddressHasBeenSet() const
Definition Instance.h:844
Instance & WithSriovNetSupport(Aws::String &&value)
Definition Instance.h:310
void SetPrivateDnsName(const char *value)
Definition Instance.h:629
Instance & WithHypervisor(const HypervisorType &value)
Definition Instance.h:147
Instance & WithInstanceLifecycle(const InstanceLifecycleType &value)
Definition Instance.h:171
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetInstanceType(const InstanceType &value)
Definition Instance.h:712
const Aws::String & GetPublicDnsName() const
Definition Instance.h:641
void SetEnclaveOptions(EnclaveOptions &&value)
Definition Instance.h:436
Instance & WithProductCodes(const Aws::Vector< ProductCode > &value)
Definition Instance.h:700
Instance & WithOutpostArn(const char *value)
Definition Instance.h:230
void SetSecurityGroups(const Aws::Vector< GroupIdentifier > &value)
Definition Instance.h:267
void SetStateReason(const StateReason &value)
Definition Instance.h:320
const Aws::Utils::DateTime & GetUsageOperationUpdateTime() const
Definition Instance.h:496
void SetVpcId(const Aws::String &value)
Definition Instance.h:815
Instance & WithSubnetId(Aws::String &&value)
Definition Instance.h:805
const Aws::String & GetOutpostArn() const
Definition Instance.h:223
void SetInstanceId(const Aws::String &value)
Definition Instance.h:581
Instance & WithStateTransitionReason(Aws::String &&value)
Definition Instance.h:662
void SetKernelId(const char *value)
Definition Instance.h:750
void SetPublicIpAddress(const Aws::String &value)
Definition Instance.h:845
const Aws::String & GetPublicIpAddress() const
Definition Instance.h:843
const Placement & GetPlacement() const
Definition Instance.h:734
void SetImageId(const char *value)
Definition Instance.h:597
void SetElasticGpuAssociations(const Aws::Vector< ElasticGpuAssociation > &value)
Definition Instance.h:182
void SetInstanceLifecycle(const InstanceLifecycleType &value)
Definition Instance.h:169
void SetPrivateDnsName(Aws::String &&value)
Definition Instance.h:628
Instance & WithPublicIpAddress(const Aws::String &value)
Definition Instance.h:848
void SetCpuOptions(CpuOptions &&value)
Definition Instance.h:359
Instance & AddNetworkInterfaces(const InstanceNetworkInterface &value)
Definition Instance.h:215
void SetVpcId(Aws::String &&value)
Definition Instance.h:816
void SetVpcId(const char *value)
Definition Instance.h:817
void SetRamdiskId(Aws::String &&value)
Definition Instance.h:763
void SetClientToken(Aws::String &&value)
Definition Instance.h:107
bool SubnetIdHasBeenSet() const
Definition Instance.h:800
const Aws::String & GetKernelId() const
Definition Instance.h:746
Instance & WithVpcId(Aws::String &&value)
Definition Instance.h:819
Instance & WithNetworkInterfaces(Aws::Vector< InstanceNetworkInterface > &&value)
Definition Instance.h:214
Instance & WithInstanceLifecycle(InstanceLifecycleType &&value)
Definition Instance.h:172
void SetStateReason(StateReason &&value)
Definition Instance.h:321
void SetState(InstanceState &&value)
Definition Instance.h:610
void SetInstanceId(Aws::String &&value)
Definition Instance.h:582
Instance & WithLicenses(Aws::Vector< LicenseConfiguration > &&value)
Definition Instance.h:411
Instance & WithImageId(const Aws::String &value)
Definition Instance.h:598
bool LaunchTimeHasBeenSet() const
Definition Instance.h:723
Instance & WithRamdiskId(const char *value)
Definition Instance.h:767
bool CapacityReservationSpecificationHasBeenSet() const
Definition Instance.h:383
void SetClientToken(const Aws::String &value)
Definition Instance.h:106
void SetSubnetId(const Aws::String &value)
Definition Instance.h:801
bool PublicDnsNameHasBeenSet() const
Definition Instance.h:642
Instance & WithState(InstanceState &&value)
Definition Instance.h:612
bool TagsHasBeenSet() const
Definition Instance.h:331
const Aws::Utils::DateTime & GetLaunchTime() const
Definition Instance.h:722
bool SriovNetSupportHasBeenSet() const
Definition Instance.h:305
Instance & WithPlatformDetails(const char *value)
Definition Instance.h:473
bool RootDeviceTypeHasBeenSet() const
Definition Instance.h:254
void SetRootDeviceName(const char *value)
Definition Instance.h:242
Instance & WithLaunchTime(Aws::Utils::DateTime &&value)
Definition Instance.h:727
Instance & AddElasticInferenceAcceleratorAssociations(const ElasticInferenceAcceleratorAssociation &value)
Definition Instance.h:201
const Aws::String & GetSriovNetSupport() const
Definition Instance.h:304
const Aws::String & GetRootDeviceName() const
Definition Instance.h:238
Instance & WithInstanceId(const Aws::String &value)
Definition Instance.h:584
Instance & WithArchitecture(const ArchitectureValues &value)
Definition Instance.h:81
void SetLaunchTime(Aws::Utils::DateTime &&value)
Definition Instance.h:725
Instance & WithHypervisor(HypervisorType &&value)
Definition Instance.h:148
Instance & WithInstanceType(const InstanceType &value)
Definition Instance.h:714
void SetPublicIpAddress(const char *value)
Definition Instance.h:847
const Aws::String & GetImageId() const
Definition Instance.h:593
void SetArchitecture(const ArchitectureValues &value)
Definition Instance.h:79
Instance & WithSubnetId(const char *value)
Definition Instance.h:806
Instance & WithMaintenanceOptions(InstanceMaintenanceOptions &&value)
Definition Instance.h:557
bool PrivateIpAddressHasBeenSet() const
Definition Instance.h:828
void SetSriovNetSupport(const char *value)
Definition Instance.h:308
Instance & WithSpotInstanceRequestId(Aws::String &&value)
Definition Instance.h:295
void SetLaunchTime(const Aws::Utils::DateTime &value)
Definition Instance.h:724
Instance & WithMonitoring(Monitoring &&value)
Definition Instance.h:792
Instance & WithEnaSupport(bool value)
Definition Instance.h:135
Instance & WithSriovNetSupport(const Aws::String &value)
Definition Instance.h:309
int GetAmiLaunchIndex() const
Definition Instance.h:686
void SetPublicIpAddress(Aws::String &&value)
Definition Instance.h:846
const InstanceMaintenanceOptions & GetMaintenanceOptions() const
Definition Instance.h:552
Instance & WithUsageOperation(const char *value)
Definition Instance.h:489
void SetState(const InstanceState &value)
Definition Instance.h:609
bool InstanceIdHasBeenSet() const
Definition Instance.h:580
const Aws::Vector< Tag > & GetTags() const
Definition Instance.h:330
void SetSubnetId(Aws::String &&value)
Definition Instance.h:802
bool EbsOptimizedHasBeenSet() const
Definition Instance.h:123
bool GetEbsOptimized() const
Definition Instance.h:122
void SetRootDeviceType(const DeviceType &value)
Definition Instance.h:255
void SetPrivateDnsNameOptions(PrivateDnsNameOptionsResponse &&value)
Definition Instance.h:511
bool SpotInstanceRequestIdHasBeenSet() const
Definition Instance.h:290
Instance & WithCapacityReservationId(const Aws::String &value)
Definition Instance.h:373
bool TpmSupportHasBeenSet() const
Definition Instance.h:538
bool CpuOptionsHasBeenSet() const
Definition Instance.h:357
bool SourceDestCheckHasBeenSet() const
Definition Instance.h:280
bool ClientTokenHasBeenSet() const
Definition Instance.h:105
Instance & AddElasticInferenceAcceleratorAssociations(ElasticInferenceAcceleratorAssociation &&value)
Definition Instance.h:202
void SetTpmSupport(Aws::String &&value)
Definition Instance.h:540
const Aws::String & GetRamdiskId() const
Definition Instance.h:760
bool VpcIdHasBeenSet() const
Definition Instance.h:814
void SetKeyName(const char *value)
Definition Instance.h:675
void SetPublicDnsName(Aws::String &&value)
Definition Instance.h:644
void SetUsageOperation(Aws::String &&value)
Definition Instance.h:485
Instance & WithElasticGpuAssociations(Aws::Vector< ElasticGpuAssociation > &&value)
Definition Instance.h:185
const InstanceLifecycleType & GetInstanceLifecycle() const
Definition Instance.h:167
Instance & WithClientToken(const Aws::String &value)
Definition Instance.h:109
const Aws::String & GetPrivateIpAddress() const
Definition Instance.h:827
void SetElasticInferenceAcceleratorAssociations(Aws::Vector< ElasticInferenceAcceleratorAssociation > &&value)
Definition Instance.h:198
Instance & WithEnclaveOptions(const EnclaveOptions &value)
Definition Instance.h:437
bool PrivateDnsNameHasBeenSet() const
Definition Instance.h:626
bool StateReasonHasBeenSet() const
Definition Instance.h:319
Instance & WithPublicDnsName(const Aws::String &value)
Definition Instance.h:646
Instance & AddElasticGpuAssociations(ElasticGpuAssociation &&value)
Definition Instance.h:187
void SetVirtualizationType(const VirtualizationType &value)
Definition Instance.h:346
Instance & WithClientToken(Aws::String &&value)
Definition Instance.h:110
const EnclaveOptions & GetEnclaveOptions() const
Definition Instance.h:433
Instance & WithSriovNetSupport(const char *value)
Definition Instance.h:311
void SetPrivateDnsNameOptions(const PrivateDnsNameOptionsResponse &value)
Definition Instance.h:510
bool EnclaveOptionsHasBeenSet() const
Definition Instance.h:434
void SetPlatform(PlatformValues &&value)
Definition Instance.h:778
Instance & WithCurrentInstanceBootMode(const InstanceBootModeValues &value)
Definition Instance.h:571
Instance & WithSecurityGroups(Aws::Vector< GroupIdentifier > &&value)
Definition Instance.h:270
Instance & WithArchitecture(ArchitectureValues &&value)
Definition Instance.h:82
Instance & WithImageId(const char *value)
Definition Instance.h:600
void SetMetadataOptions(InstanceMetadataOptionsResponse &&value)
Definition Instance.h:423
void SetMetadataOptions(const InstanceMetadataOptionsResponse &value)
Definition Instance.h:422
void SetIamInstanceProfile(IamInstanceProfile &&value)
Definition Instance.h:158
AWS_EC2_API Instance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const HibernationOptions & GetHibernationOptions() const
Definition Instance.h:394
const Aws::String & GetSubnetId() const
Definition Instance.h:799
void SetRootDeviceName(Aws::String &&value)
Definition Instance.h:241
void SetHibernationOptions(const HibernationOptions &value)
Definition Instance.h:396
Instance & WithPublicIpAddress(const char *value)
Definition Instance.h:850
Instance & AddSecurityGroups(const GroupIdentifier &value)
Definition Instance.h:271
const IamInstanceProfile & GetIamInstanceProfile() const
Definition Instance.h:155
bool ImageIdHasBeenSet() const
Definition Instance.h:594
void SetLicenses(Aws::Vector< LicenseConfiguration > &&value)
Definition Instance.h:409
const PrivateDnsNameOptionsResponse & GetPrivateDnsNameOptions() const
Definition Instance.h:508
Instance & WithLaunchTime(const Aws::Utils::DateTime &value)
Definition Instance.h:726
const InstanceBootModeValues & GetCurrentInstanceBootMode() const
Definition Instance.h:567
void SetOutpostArn(Aws::String &&value)
Definition Instance.h:226
Instance & WithRamdiskId(const Aws::String &value)
Definition Instance.h:765
bool MaintenanceOptionsHasBeenSet() const
Definition Instance.h:553
void SetMonitoring(const Monitoring &value)
Definition Instance.h:789
void SetNetworkInterfaces(Aws::Vector< InstanceNetworkInterface > &&value)
Definition Instance.h:212
Instance & WithUsageOperationUpdateTime(Aws::Utils::DateTime &&value)
Definition Instance.h:501
void SetSubnetId(const char *value)
Definition Instance.h:803
Instance & WithInstanceId(Aws::String &&value)
Definition Instance.h:585
bool ArchitectureHasBeenSet() const
Definition Instance.h:78
const Aws::Vector< GroupIdentifier > & GetSecurityGroups() const
Definition Instance.h:265
void SetEbsOptimized(bool value)
Definition Instance.h:124
void SetRootDeviceName(const Aws::String &value)
Definition Instance.h:240
void SetHypervisor(const HypervisorType &value)
Definition Instance.h:145
const VirtualizationType & GetVirtualizationType() const
Definition Instance.h:344
void SetRootDeviceType(DeviceType &&value)
Definition Instance.h:256
const Aws::Vector< InstanceNetworkInterface > & GetNetworkInterfaces() const
Definition Instance.h:209
bool VirtualizationTypeHasBeenSet() const
Definition Instance.h:345
Instance & AddLicenses(LicenseConfiguration &&value)
Definition Instance.h:413
void SetPlatformDetails(const char *value)
Definition Instance.h:470
bool BootModeHasBeenSet() const
Definition Instance.h:453
const CpuOptions & GetCpuOptions() const
Definition Instance.h:356
void SetCapacityReservationSpecification(CapacityReservationSpecificationResponse &&value)
Definition Instance.h:385
void SetMaintenanceOptions(const InstanceMaintenanceOptions &value)
Definition Instance.h:554
const Aws::String & GetPlatformDetails() const
Definition Instance.h:466
bool ElasticGpuAssociationsHasBeenSet() const
Definition Instance.h:181
Instance & WithCpuOptions(const CpuOptions &value)
Definition Instance.h:360
Instance & WithCapacityReservationId(const char *value)
Definition Instance.h:375
Instance & WithAmiLaunchIndex(int value)
Definition Instance.h:689
void SetPlatform(const PlatformValues &value)
Definition Instance.h:777
void SetKernelId(Aws::String &&value)
Definition Instance.h:749
void SetProductCodes(Aws::Vector< ProductCode > &&value)
Definition Instance.h:699
void SetSpotInstanceRequestId(Aws::String &&value)
Definition Instance.h:292
bool MetadataOptionsHasBeenSet() const
Definition Instance.h:421
const InstanceMetadataOptionsResponse & GetMetadataOptions() const
Definition Instance.h:420
Instance & WithKernelId(Aws::String &&value)
Definition Instance.h:752
Instance & WithTags(Aws::Vector< Tag > &&value)
Definition Instance.h:335
Instance & WithRamdiskId(Aws::String &&value)
Definition Instance.h:766
Instance & AddTags(Tag &&value)
Definition Instance.h:337
void SetCapacityReservationId(Aws::String &&value)
Definition Instance.h:371
void SetArchitecture(ArchitectureValues &&value)
Definition Instance.h:80
const Aws::String & GetUsageOperation() const
Definition Instance.h:482
bool StateHasBeenSet() const
Definition Instance.h:608
void SetHibernationOptions(HibernationOptions &&value)
Definition Instance.h:397
bool UsageOperationUpdateTimeHasBeenSet() const
Definition Instance.h:497
Instance & WithTpmSupport(const Aws::String &value)
Definition Instance.h:542
bool InstanceTypeHasBeenSet() const
Definition Instance.h:711
Instance & WithPrivateIpAddress(const char *value)
Definition Instance.h:834
bool PlacementHasBeenSet() const
Definition Instance.h:735
bool HypervisorHasBeenSet() const
Definition Instance.h:144
void SetSourceDestCheck(bool value)
Definition Instance.h:281
Instance & WithVirtualizationType(VirtualizationType &&value)
Definition Instance.h:349
Instance & WithImageId(Aws::String &&value)
Definition Instance.h:599
void SetBootMode(BootModeValues &&value)
Definition Instance.h:455
bool KernelIdHasBeenSet() const
Definition Instance.h:747
Instance & WithPlatform(PlatformValues &&value)
Definition Instance.h:780
Instance & WithElasticInferenceAcceleratorAssociations(Aws::Vector< ElasticInferenceAcceleratorAssociation > &&value)
Definition Instance.h:200
void SetCpuOptions(const CpuOptions &value)
Definition Instance.h:358
void SetPrivateIpAddress(const Aws::String &value)
Definition Instance.h:829
Instance & WithLicenses(const Aws::Vector< LicenseConfiguration > &value)
Definition Instance.h:410
const Aws::String & GetStateTransitionReason() const
Definition Instance.h:656
Instance & WithPlatformDetails(const Aws::String &value)
Definition Instance.h:471
void SetUsageOperation(const Aws::String &value)
Definition Instance.h:484
bool RamdiskIdHasBeenSet() const
Definition Instance.h:761
Instance & WithHibernationOptions(HibernationOptions &&value)
Definition Instance.h:399
bool SecurityGroupsHasBeenSet() const
Definition Instance.h:266
void SetPublicDnsName(const Aws::String &value)
Definition Instance.h:643
void SetMaintenanceOptions(InstanceMaintenanceOptions &&value)
Definition Instance.h:555
Instance & WithRootDeviceName(const Aws::String &value)
Definition Instance.h:243
const DeviceType & GetRootDeviceType() const
Definition Instance.h:253
void SetPlacement(const Placement &value)
Definition Instance.h:736
Instance & AddNetworkInterfaces(InstanceNetworkInterface &&value)
Definition Instance.h:216
Instance & WithCurrentInstanceBootMode(InstanceBootModeValues &&value)
Definition Instance.h:572
bool ProductCodesHasBeenSet() const
Definition Instance.h:697
void SetPrivateIpAddress(Aws::String &&value)
Definition Instance.h:830
Instance & WithUsageOperation(const Aws::String &value)
Definition Instance.h:487
Instance & WithPrivateDnsName(const char *value)
Definition Instance.h:632
Instance & WithBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
Definition Instance.h:94
const ArchitectureValues & GetArchitecture() const
Definition Instance.h:77
void SetOutpostArn(const Aws::String &value)
Definition Instance.h:225
bool OutpostArnHasBeenSet() const
Definition Instance.h:224
void SetProductCodes(const Aws::Vector< ProductCode > &value)
Definition Instance.h:698
bool UsageOperationHasBeenSet() const
Definition Instance.h:483
const Monitoring & GetMonitoring() const
Definition Instance.h:787
Instance & WithVpcId(const char *value)
Definition Instance.h:820
const Aws::Vector< ElasticInferenceAcceleratorAssociation > & GetElasticInferenceAcceleratorAssociations() const
Definition Instance.h:195
Instance & WithBootMode(BootModeValues &&value)
Definition Instance.h:457
Instance & WithIpv6Address(Aws::String &&value)
Definition Instance.h:526
const Aws::String & GetSpotInstanceRequestId() const
Definition Instance.h:289
Instance & WithInstanceType(InstanceType &&value)
Definition Instance.h:715
void SetAmiLaunchIndex(int value)
Definition Instance.h:688
bool PlatformHasBeenSet() const
Definition Instance.h:776
void SetPrivateDnsName(const Aws::String &value)
Definition Instance.h:627
bool GetSourceDestCheck() const
Definition Instance.h:279
const PlatformValues & GetPlatform() const
Definition Instance.h:775
Instance & WithTpmSupport(Aws::String &&value)
Definition Instance.h:543
const Aws::String & GetInstanceId() const
Definition Instance.h:579
Instance & WithState(const InstanceState &value)
Definition Instance.h:611
Instance & WithEbsOptimized(bool value)
Definition Instance.h:125
void SetStateTransitionReason(const char *value)
Definition Instance.h:660
void SetUsageOperationUpdateTime(Aws::Utils::DateTime &&value)
Definition Instance.h:499
Instance & WithIpv6Address(const Aws::String &value)
Definition Instance.h:525
bool IamInstanceProfileHasBeenSet() const
Definition Instance.h:156
Instance & WithOutpostArn(Aws::String &&value)
Definition Instance.h:229
Instance & WithSpotInstanceRequestId(const Aws::String &value)
Definition Instance.h:294
void SetMonitoring(Monitoring &&value)
Definition Instance.h:790
Instance & WithNetworkInterfaces(const Aws::Vector< InstanceNetworkInterface > &value)
Definition Instance.h:213
void SetSriovNetSupport(Aws::String &&value)
Definition Instance.h:307
bool NetworkInterfacesHasBeenSet() const
Definition Instance.h:210
const Aws::String & GetClientToken() const
Definition Instance.h:104
Instance & WithCapacityReservationId(Aws::String &&value)
Definition Instance.h:374
Instance & WithTags(const Aws::Vector< Tag > &value)
Definition Instance.h:334
Instance & WithPrivateIpAddress(Aws::String &&value)
Definition Instance.h:833
const InstanceType & GetInstanceType() const
Definition Instance.h:710
Instance & WithHibernationOptions(const HibernationOptions &value)
Definition Instance.h:398
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Instance & WithCapacityReservationSpecification(const CapacityReservationSpecificationResponse &value)
Definition Instance.h:386
Instance & WithKernelId(const char *value)
Definition Instance.h:753
Instance & WithSpotInstanceRequestId(const char *value)
Definition Instance.h:296
void SetSpotInstanceRequestId(const char *value)
Definition Instance.h:293
Instance & WithPlacement(const Placement &value)
Definition Instance.h:738
bool CapacityReservationIdHasBeenSet() const
Definition Instance.h:369
AWS_EC2_API Instance(const Aws::Utils::Xml::XmlNode &xmlNode)
Instance & WithIpv6Address(const char *value)
Definition Instance.h:527
Instance & AddProductCodes(ProductCode &&value)
Definition Instance.h:703
Instance & WithClientToken(const char *value)
Definition Instance.h:111
const CapacityReservationSpecificationResponse & GetCapacityReservationSpecification() const
Definition Instance.h:382
const Aws::String & GetTpmSupport() const
Definition Instance.h:537
void SetPrivateIpAddress(const char *value)
Definition Instance.h:831
void SetRamdiskId(const Aws::String &value)
Definition Instance.h:762
Instance & WithOutpostArn(const Aws::String &value)
Definition Instance.h:228
Instance & WithIamInstanceProfile(const IamInstanceProfile &value)
Definition Instance.h:159
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream