AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RunInstancesRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/InstanceType.h>
12#include <aws/ec2/model/RunInstancesMonitoringEnabled.h>
13#include <aws/ec2/model/Placement.h>
14#include <aws/ec2/model/LaunchTemplateSpecification.h>
15#include <aws/ec2/model/InstanceMarketOptionsRequest.h>
16#include <aws/ec2/model/CreditSpecificationRequest.h>
17#include <aws/ec2/model/CpuOptionsRequest.h>
18#include <aws/ec2/model/CapacityReservationSpecification.h>
19#include <aws/ec2/model/HibernationOptionsRequest.h>
20#include <aws/ec2/model/InstanceMetadataOptionsRequest.h>
21#include <aws/ec2/model/EnclaveOptionsRequest.h>
22#include <aws/ec2/model/PrivateDnsNameOptionsRequest.h>
23#include <aws/ec2/model/InstanceMaintenanceOptionsRequest.h>
24#include <aws/ec2/model/ShutdownBehavior.h>
25#include <aws/ec2/model/IamInstanceProfileSpecification.h>
26#include <aws/ec2/model/BlockDeviceMapping.h>
27#include <aws/ec2/model/InstanceIpv6Address.h>
28#include <aws/ec2/model/ElasticGpuSpecification.h>
29#include <aws/ec2/model/ElasticInferenceAccelerator.h>
30#include <aws/ec2/model/TagSpecification.h>
31#include <aws/ec2/model/LicenseConfigurationRequest.h>
32#include <aws/ec2/model/InstanceNetworkInterfaceSpecification.h>
33#include <utility>
34#include <aws/core/utils/UUID.h>
35
36namespace Aws
37{
38namespace EC2
39{
40namespace Model
41{
42
46 {
47 public:
48 AWS_EC2_API RunInstancesRequest();
49
50 // Service request name is the Operation name which will send this request out,
51 // each operation should has unique request name, so that we can get operation's name from this request.
52 // Note: this is not true for response, multiple operations may have the same response name,
53 // so we can not get operation's name from response.
54 inline virtual const char* GetServiceRequestName() const override { return "RunInstances"; }
55
56 AWS_EC2_API Aws::String SerializePayload() const override;
57
58 protected:
59 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
60
61 public:
62
64
70 inline const Aws::Vector<BlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
71 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
72 inline void SetBlockDeviceMappings(const Aws::Vector<BlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
73 inline void SetBlockDeviceMappings(Aws::Vector<BlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
76 inline RunInstancesRequest& AddBlockDeviceMappings(const BlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
77 inline RunInstancesRequest& AddBlockDeviceMappings(BlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
79
81
85 inline const Aws::String& GetImageId() const{ return m_imageId; }
86 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
87 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
88 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
89 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
90 inline RunInstancesRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
91 inline RunInstancesRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
92 inline RunInstancesRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
94
96
101 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
102 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
103 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
104 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
105 inline RunInstancesRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
106 inline RunInstancesRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
108
110
118 inline int GetIpv6AddressCount() const{ return m_ipv6AddressCount; }
119 inline bool Ipv6AddressCountHasBeenSet() const { return m_ipv6AddressCountHasBeenSet; }
120 inline void SetIpv6AddressCount(int value) { m_ipv6AddressCountHasBeenSet = true; m_ipv6AddressCount = value; }
121 inline RunInstancesRequest& WithIpv6AddressCount(int value) { SetIpv6AddressCount(value); return *this;}
123
125
132 inline const Aws::Vector<InstanceIpv6Address>& GetIpv6Addresses() const{ return m_ipv6Addresses; }
133 inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; }
134 inline void SetIpv6Addresses(const Aws::Vector<InstanceIpv6Address>& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; }
135 inline void SetIpv6Addresses(Aws::Vector<InstanceIpv6Address>&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); }
138 inline RunInstancesRequest& AddIpv6Addresses(const InstanceIpv6Address& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
139 inline RunInstancesRequest& AddIpv6Addresses(InstanceIpv6Address&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; }
141
143
149 inline const Aws::String& GetKernelId() const{ return m_kernelId; }
150 inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; }
151 inline void SetKernelId(const Aws::String& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; }
152 inline void SetKernelId(Aws::String&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::move(value); }
153 inline void SetKernelId(const char* value) { m_kernelIdHasBeenSet = true; m_kernelId.assign(value); }
154 inline RunInstancesRequest& WithKernelId(const Aws::String& value) { SetKernelId(value); return *this;}
155 inline RunInstancesRequest& WithKernelId(Aws::String&& value) { SetKernelId(std::move(value)); return *this;}
156 inline RunInstancesRequest& WithKernelId(const char* value) { SetKernelId(value); return *this;}
158
160
169 inline const Aws::String& GetKeyName() const{ return m_keyName; }
170 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
171 inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
172 inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
173 inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
174 inline RunInstancesRequest& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
175 inline RunInstancesRequest& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
176 inline RunInstancesRequest& WithKeyName(const char* value) { SetKeyName(value); return *this;}
178
180
189 inline int GetMaxCount() const{ return m_maxCount; }
190 inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; }
191 inline void SetMaxCount(int value) { m_maxCountHasBeenSet = true; m_maxCount = value; }
192 inline RunInstancesRequest& WithMaxCount(int value) { SetMaxCount(value); return *this;}
194
196
205 inline int GetMinCount() const{ return m_minCount; }
206 inline bool MinCountHasBeenSet() const { return m_minCountHasBeenSet; }
207 inline void SetMinCount(int value) { m_minCountHasBeenSet = true; m_minCount = value; }
208 inline RunInstancesRequest& WithMinCount(int value) { SetMinCount(value); return *this;}
210
212
215 inline const RunInstancesMonitoringEnabled& GetMonitoring() const{ return m_monitoring; }
216 inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; }
217 inline void SetMonitoring(const RunInstancesMonitoringEnabled& value) { m_monitoringHasBeenSet = true; m_monitoring = value; }
218 inline void SetMonitoring(RunInstancesMonitoringEnabled&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); }
220 inline RunInstancesRequest& WithMonitoring(RunInstancesMonitoringEnabled&& value) { SetMonitoring(std::move(value)); return *this;}
222
224
227 inline const Placement& GetPlacement() const{ return m_placement; }
228 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
229 inline void SetPlacement(const Placement& value) { m_placementHasBeenSet = true; m_placement = value; }
230 inline void SetPlacement(Placement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
231 inline RunInstancesRequest& WithPlacement(const Placement& value) { SetPlacement(value); return *this;}
232 inline RunInstancesRequest& WithPlacement(Placement&& value) { SetPlacement(std::move(value)); return *this;}
234
236
246 inline const Aws::String& GetRamdiskId() const{ return m_ramdiskId; }
247 inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; }
248 inline void SetRamdiskId(const Aws::String& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = value; }
249 inline void SetRamdiskId(Aws::String&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::move(value); }
250 inline void SetRamdiskId(const char* value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId.assign(value); }
251 inline RunInstancesRequest& WithRamdiskId(const Aws::String& value) { SetRamdiskId(value); return *this;}
252 inline RunInstancesRequest& WithRamdiskId(Aws::String&& value) { SetRamdiskId(std::move(value)); return *this;}
253 inline RunInstancesRequest& WithRamdiskId(const char* value) { SetRamdiskId(value); return *this;}
255
257
263 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
264 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
265 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
266 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
269 inline RunInstancesRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
270 inline RunInstancesRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
271 inline RunInstancesRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
273
275
281 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
282 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
283 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
284 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
286 inline RunInstancesRequest& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
287 inline RunInstancesRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
288 inline RunInstancesRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
289 inline RunInstancesRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
291
293
298 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
299 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
300 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
301 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
302 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
303 inline RunInstancesRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
304 inline RunInstancesRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
305 inline RunInstancesRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
307
309
316 inline const Aws::String& GetUserData() const{ return m_userData; }
317 inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
318 inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; }
319 inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); }
320 inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); }
321 inline RunInstancesRequest& WithUserData(const Aws::String& value) { SetUserData(value); return *this;}
322 inline RunInstancesRequest& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;}
323 inline RunInstancesRequest& WithUserData(const char* value) { SetUserData(value); return *this;}
325
327
331 inline const Aws::Vector<ElasticGpuSpecification>& GetElasticGpuSpecification() const{ return m_elasticGpuSpecification; }
332 inline bool ElasticGpuSpecificationHasBeenSet() const { return m_elasticGpuSpecificationHasBeenSet; }
333 inline void SetElasticGpuSpecification(const Aws::Vector<ElasticGpuSpecification>& value) { m_elasticGpuSpecificationHasBeenSet = true; m_elasticGpuSpecification = value; }
334 inline void SetElasticGpuSpecification(Aws::Vector<ElasticGpuSpecification>&& value) { m_elasticGpuSpecificationHasBeenSet = true; m_elasticGpuSpecification = std::move(value); }
337 inline RunInstancesRequest& AddElasticGpuSpecification(const ElasticGpuSpecification& value) { m_elasticGpuSpecificationHasBeenSet = true; m_elasticGpuSpecification.push_back(value); return *this; }
338 inline RunInstancesRequest& AddElasticGpuSpecification(ElasticGpuSpecification&& value) { m_elasticGpuSpecificationHasBeenSet = true; m_elasticGpuSpecification.push_back(std::move(value)); return *this; }
340
342
346 inline const Aws::Vector<ElasticInferenceAccelerator>& GetElasticInferenceAccelerators() const{ return m_elasticInferenceAccelerators; }
347 inline bool ElasticInferenceAcceleratorsHasBeenSet() const { return m_elasticInferenceAcceleratorsHasBeenSet; }
348 inline void SetElasticInferenceAccelerators(const Aws::Vector<ElasticInferenceAccelerator>& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators = value; }
349 inline void SetElasticInferenceAccelerators(Aws::Vector<ElasticInferenceAccelerator>&& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators = std::move(value); }
352 inline RunInstancesRequest& AddElasticInferenceAccelerators(const ElasticInferenceAccelerator& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators.push_back(value); return *this; }
353 inline RunInstancesRequest& AddElasticInferenceAccelerators(ElasticInferenceAccelerator&& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators.push_back(std::move(value)); return *this; }
355
357
365 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
366 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
367 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
368 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
371 inline RunInstancesRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
372 inline RunInstancesRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
374
376
381 inline const LaunchTemplateSpecification& GetLaunchTemplate() const{ return m_launchTemplate; }
382 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
383 inline void SetLaunchTemplate(const LaunchTemplateSpecification& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = value; }
384 inline void SetLaunchTemplate(LaunchTemplateSpecification&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::move(value); }
386 inline RunInstancesRequest& WithLaunchTemplate(LaunchTemplateSpecification&& value) { SetLaunchTemplate(std::move(value)); return *this;}
388
390
396 inline const InstanceMarketOptionsRequest& GetInstanceMarketOptions() const{ return m_instanceMarketOptions; }
397 inline bool InstanceMarketOptionsHasBeenSet() const { return m_instanceMarketOptionsHasBeenSet; }
398 inline void SetInstanceMarketOptions(const InstanceMarketOptionsRequest& value) { m_instanceMarketOptionsHasBeenSet = true; m_instanceMarketOptions = value; }
399 inline void SetInstanceMarketOptions(InstanceMarketOptionsRequest&& value) { m_instanceMarketOptionsHasBeenSet = true; m_instanceMarketOptions = std::move(value); }
403
405
417 inline const CreditSpecificationRequest& GetCreditSpecification() const{ return m_creditSpecification; }
418 inline bool CreditSpecificationHasBeenSet() const { return m_creditSpecificationHasBeenSet; }
419 inline void SetCreditSpecification(const CreditSpecificationRequest& value) { m_creditSpecificationHasBeenSet = true; m_creditSpecification = value; }
420 inline void SetCreditSpecification(CreditSpecificationRequest&& value) { m_creditSpecificationHasBeenSet = true; m_creditSpecification = std::move(value); }
424
426
431 inline const CpuOptionsRequest& GetCpuOptions() const{ return m_cpuOptions; }
432 inline bool CpuOptionsHasBeenSet() const { return m_cpuOptionsHasBeenSet; }
433 inline void SetCpuOptions(const CpuOptionsRequest& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = value; }
434 inline void SetCpuOptions(CpuOptionsRequest&& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = std::move(value); }
435 inline RunInstancesRequest& WithCpuOptions(const CpuOptionsRequest& value) { SetCpuOptions(value); return *this;}
436 inline RunInstancesRequest& WithCpuOptions(CpuOptionsRequest&& value) { SetCpuOptions(std::move(value)); return *this;}
438
440
446 inline const CapacityReservationSpecification& GetCapacityReservationSpecification() const{ return m_capacityReservationSpecification; }
447 inline bool CapacityReservationSpecificationHasBeenSet() const { return m_capacityReservationSpecificationHasBeenSet; }
448 inline void SetCapacityReservationSpecification(const CapacityReservationSpecification& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = value; }
449 inline void SetCapacityReservationSpecification(CapacityReservationSpecification&& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = std::move(value); }
453
455
465 inline const HibernationOptionsRequest& GetHibernationOptions() const{ return m_hibernationOptions; }
466 inline bool HibernationOptionsHasBeenSet() const { return m_hibernationOptionsHasBeenSet; }
467 inline void SetHibernationOptions(const HibernationOptionsRequest& value) { m_hibernationOptionsHasBeenSet = true; m_hibernationOptions = value; }
468 inline void SetHibernationOptions(HibernationOptionsRequest&& value) { m_hibernationOptionsHasBeenSet = true; m_hibernationOptions = std::move(value); }
472
474
477 inline const Aws::Vector<LicenseConfigurationRequest>& GetLicenseSpecifications() const{ return m_licenseSpecifications; }
478 inline bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; }
479 inline void SetLicenseSpecifications(const Aws::Vector<LicenseConfigurationRequest>& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications = value; }
480 inline void SetLicenseSpecifications(Aws::Vector<LicenseConfigurationRequest>&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications = std::move(value); }
483 inline RunInstancesRequest& AddLicenseSpecifications(const LicenseConfigurationRequest& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(value); return *this; }
484 inline RunInstancesRequest& AddLicenseSpecifications(LicenseConfigurationRequest&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(std::move(value)); return *this; }
486
488
493 inline const InstanceMetadataOptionsRequest& GetMetadataOptions() const{ return m_metadataOptions; }
494 inline bool MetadataOptionsHasBeenSet() const { return m_metadataOptionsHasBeenSet; }
495 inline void SetMetadataOptions(const InstanceMetadataOptionsRequest& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = value; }
496 inline void SetMetadataOptions(InstanceMetadataOptionsRequest&& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = std::move(value); }
500
502
510 inline const EnclaveOptionsRequest& GetEnclaveOptions() const{ return m_enclaveOptions; }
511 inline bool EnclaveOptionsHasBeenSet() const { return m_enclaveOptionsHasBeenSet; }
512 inline void SetEnclaveOptions(const EnclaveOptionsRequest& value) { m_enclaveOptionsHasBeenSet = true; m_enclaveOptions = value; }
513 inline void SetEnclaveOptions(EnclaveOptionsRequest&& value) { m_enclaveOptionsHasBeenSet = true; m_enclaveOptions = std::move(value); }
515 inline RunInstancesRequest& WithEnclaveOptions(EnclaveOptionsRequest&& value) { SetEnclaveOptions(std::move(value)); return *this;}
517
519
524 inline const PrivateDnsNameOptionsRequest& GetPrivateDnsNameOptions() const{ return m_privateDnsNameOptions; }
525 inline bool PrivateDnsNameOptionsHasBeenSet() const { return m_privateDnsNameOptionsHasBeenSet; }
526 inline void SetPrivateDnsNameOptions(const PrivateDnsNameOptionsRequest& value) { m_privateDnsNameOptionsHasBeenSet = true; m_privateDnsNameOptions = value; }
527 inline void SetPrivateDnsNameOptions(PrivateDnsNameOptionsRequest&& value) { m_privateDnsNameOptionsHasBeenSet = true; m_privateDnsNameOptions = std::move(value); }
531
533
536 inline const InstanceMaintenanceOptionsRequest& GetMaintenanceOptions() const{ return m_maintenanceOptions; }
537 inline bool MaintenanceOptionsHasBeenSet() const { return m_maintenanceOptionsHasBeenSet; }
538 inline void SetMaintenanceOptions(const InstanceMaintenanceOptionsRequest& value) { m_maintenanceOptionsHasBeenSet = true; m_maintenanceOptions = value; }
539 inline void SetMaintenanceOptions(InstanceMaintenanceOptionsRequest&& value) { m_maintenanceOptionsHasBeenSet = true; m_maintenanceOptions = std::move(value); }
543
545
551 inline bool GetDisableApiStop() const{ return m_disableApiStop; }
552 inline bool DisableApiStopHasBeenSet() const { return m_disableApiStopHasBeenSet; }
553 inline void SetDisableApiStop(bool value) { m_disableApiStopHasBeenSet = true; m_disableApiStop = value; }
554 inline RunInstancesRequest& WithDisableApiStop(bool value) { SetDisableApiStop(value); return *this;}
556
558
573 inline bool GetEnablePrimaryIpv6() const{ return m_enablePrimaryIpv6; }
574 inline bool EnablePrimaryIpv6HasBeenSet() const { return m_enablePrimaryIpv6HasBeenSet; }
575 inline void SetEnablePrimaryIpv6(bool value) { m_enablePrimaryIpv6HasBeenSet = true; m_enablePrimaryIpv6 = value; }
576 inline RunInstancesRequest& WithEnablePrimaryIpv6(bool value) { SetEnablePrimaryIpv6(value); return *this;}
578
580
586 inline bool GetDryRun() const{ return m_dryRun; }
587 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
588 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
589 inline RunInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
591
593
602 inline bool GetDisableApiTermination() const{ return m_disableApiTermination; }
603 inline bool DisableApiTerminationHasBeenSet() const { return m_disableApiTerminationHasBeenSet; }
604 inline void SetDisableApiTermination(bool value) { m_disableApiTerminationHasBeenSet = true; m_disableApiTermination = value; }
605 inline RunInstancesRequest& WithDisableApiTermination(bool value) { SetDisableApiTermination(value); return *this;}
607
609
614 inline const ShutdownBehavior& GetInstanceInitiatedShutdownBehavior() const{ return m_instanceInitiatedShutdownBehavior; }
615 inline bool InstanceInitiatedShutdownBehaviorHasBeenSet() const { return m_instanceInitiatedShutdownBehaviorHasBeenSet; }
616 inline void SetInstanceInitiatedShutdownBehavior(const ShutdownBehavior& value) { m_instanceInitiatedShutdownBehaviorHasBeenSet = true; m_instanceInitiatedShutdownBehavior = value; }
617 inline void SetInstanceInitiatedShutdownBehavior(ShutdownBehavior&& value) { m_instanceInitiatedShutdownBehaviorHasBeenSet = true; m_instanceInitiatedShutdownBehavior = std::move(value); }
621
623
632 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
633 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
634 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
635 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
636 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
637 inline RunInstancesRequest& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
638 inline RunInstancesRequest& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
639 inline RunInstancesRequest& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
641
643
650 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
651 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
652 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
653 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
654 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
655 inline RunInstancesRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
656 inline RunInstancesRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
657 inline RunInstancesRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
659
661
664 inline const Aws::String& GetAdditionalInfo() const{ return m_additionalInfo; }
665 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
666 inline void SetAdditionalInfo(const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
667 inline void SetAdditionalInfo(Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); }
668 inline void SetAdditionalInfo(const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.assign(value); }
669 inline RunInstancesRequest& WithAdditionalInfo(const Aws::String& value) { SetAdditionalInfo(value); return *this;}
670 inline RunInstancesRequest& WithAdditionalInfo(Aws::String&& value) { SetAdditionalInfo(std::move(value)); return *this;}
671 inline RunInstancesRequest& WithAdditionalInfo(const char* value) { SetAdditionalInfo(value); return *this;}
673
675
678 inline const Aws::Vector<InstanceNetworkInterfaceSpecification>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
679 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
680 inline void SetNetworkInterfaces(const Aws::Vector<InstanceNetworkInterfaceSpecification>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
681 inline void SetNetworkInterfaces(Aws::Vector<InstanceNetworkInterfaceSpecification>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
684 inline RunInstancesRequest& AddNetworkInterfaces(const InstanceNetworkInterfaceSpecification& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
685 inline RunInstancesRequest& AddNetworkInterfaces(InstanceNetworkInterfaceSpecification&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
687
689
692 inline const IamInstanceProfileSpecification& GetIamInstanceProfile() const{ return m_iamInstanceProfile; }
693 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
694 inline void SetIamInstanceProfile(const IamInstanceProfileSpecification& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; }
695 inline void SetIamInstanceProfile(IamInstanceProfileSpecification&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); }
699
701
709 inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
710 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
711 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
712 inline RunInstancesRequest& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
714 private:
715
716 Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
717 bool m_blockDeviceMappingsHasBeenSet = false;
718
719 Aws::String m_imageId;
720 bool m_imageIdHasBeenSet = false;
721
722 InstanceType m_instanceType;
723 bool m_instanceTypeHasBeenSet = false;
724
725 int m_ipv6AddressCount;
726 bool m_ipv6AddressCountHasBeenSet = false;
727
728 Aws::Vector<InstanceIpv6Address> m_ipv6Addresses;
729 bool m_ipv6AddressesHasBeenSet = false;
730
731 Aws::String m_kernelId;
732 bool m_kernelIdHasBeenSet = false;
733
734 Aws::String m_keyName;
735 bool m_keyNameHasBeenSet = false;
736
737 int m_maxCount;
738 bool m_maxCountHasBeenSet = false;
739
740 int m_minCount;
741 bool m_minCountHasBeenSet = false;
742
744 bool m_monitoringHasBeenSet = false;
745
746 Placement m_placement;
747 bool m_placementHasBeenSet = false;
748
749 Aws::String m_ramdiskId;
750 bool m_ramdiskIdHasBeenSet = false;
751
752 Aws::Vector<Aws::String> m_securityGroupIds;
753 bool m_securityGroupIdsHasBeenSet = false;
754
755 Aws::Vector<Aws::String> m_securityGroups;
756 bool m_securityGroupsHasBeenSet = false;
757
758 Aws::String m_subnetId;
759 bool m_subnetIdHasBeenSet = false;
760
761 Aws::String m_userData;
762 bool m_userDataHasBeenSet = false;
763
764 Aws::Vector<ElasticGpuSpecification> m_elasticGpuSpecification;
765 bool m_elasticGpuSpecificationHasBeenSet = false;
766
767 Aws::Vector<ElasticInferenceAccelerator> m_elasticInferenceAccelerators;
768 bool m_elasticInferenceAcceleratorsHasBeenSet = false;
769
770 Aws::Vector<TagSpecification> m_tagSpecifications;
771 bool m_tagSpecificationsHasBeenSet = false;
772
773 LaunchTemplateSpecification m_launchTemplate;
774 bool m_launchTemplateHasBeenSet = false;
775
776 InstanceMarketOptionsRequest m_instanceMarketOptions;
777 bool m_instanceMarketOptionsHasBeenSet = false;
778
779 CreditSpecificationRequest m_creditSpecification;
780 bool m_creditSpecificationHasBeenSet = false;
781
782 CpuOptionsRequest m_cpuOptions;
783 bool m_cpuOptionsHasBeenSet = false;
784
785 CapacityReservationSpecification m_capacityReservationSpecification;
786 bool m_capacityReservationSpecificationHasBeenSet = false;
787
788 HibernationOptionsRequest m_hibernationOptions;
789 bool m_hibernationOptionsHasBeenSet = false;
790
791 Aws::Vector<LicenseConfigurationRequest> m_licenseSpecifications;
792 bool m_licenseSpecificationsHasBeenSet = false;
793
794 InstanceMetadataOptionsRequest m_metadataOptions;
795 bool m_metadataOptionsHasBeenSet = false;
796
797 EnclaveOptionsRequest m_enclaveOptions;
798 bool m_enclaveOptionsHasBeenSet = false;
799
800 PrivateDnsNameOptionsRequest m_privateDnsNameOptions;
801 bool m_privateDnsNameOptionsHasBeenSet = false;
802
803 InstanceMaintenanceOptionsRequest m_maintenanceOptions;
804 bool m_maintenanceOptionsHasBeenSet = false;
805
806 bool m_disableApiStop;
807 bool m_disableApiStopHasBeenSet = false;
808
809 bool m_enablePrimaryIpv6;
810 bool m_enablePrimaryIpv6HasBeenSet = false;
811
812 bool m_dryRun;
813 bool m_dryRunHasBeenSet = false;
814
815 bool m_disableApiTermination;
816 bool m_disableApiTerminationHasBeenSet = false;
817
818 ShutdownBehavior m_instanceInitiatedShutdownBehavior;
819 bool m_instanceInitiatedShutdownBehaviorHasBeenSet = false;
820
821 Aws::String m_privateIpAddress;
822 bool m_privateIpAddressHasBeenSet = false;
823
824 Aws::String m_clientToken;
825 bool m_clientTokenHasBeenSet = false;
826
827 Aws::String m_additionalInfo;
828 bool m_additionalInfoHasBeenSet = false;
829
831 bool m_networkInterfacesHasBeenSet = false;
832
833 IamInstanceProfileSpecification m_iamInstanceProfile;
834 bool m_iamInstanceProfileHasBeenSet = false;
835
836 bool m_ebsOptimized;
837 bool m_ebsOptimizedHasBeenSet = false;
838 };
839
840} // namespace Model
841} // namespace EC2
842} // namespace Aws
const Aws::Vector< LicenseConfigurationRequest > & GetLicenseSpecifications() const
const Aws::String & GetKeyName() const
RunInstancesRequest & WithAdditionalInfo(const Aws::String &value)
RunInstancesRequest & WithSubnetId(const Aws::String &value)
void SetPlacement(const Placement &value)
RunInstancesRequest & WithMonitoring(const RunInstancesMonitoringEnabled &value)
void SetLicenseSpecifications(Aws::Vector< LicenseConfigurationRequest > &&value)
void SetLicenseSpecifications(const Aws::Vector< LicenseConfigurationRequest > &value)
const Aws::Vector< ElasticGpuSpecification > & GetElasticGpuSpecification() const
RunInstancesRequest & WithCapacityReservationSpecification(const CapacityReservationSpecification &value)
void SetImageId(const Aws::String &value)
RunInstancesRequest & AddSecurityGroups(const Aws::String &value)
void SetKeyName(const Aws::String &value)
void SetCpuOptions(const CpuOptionsRequest &value)
RunInstancesRequest & WithElasticInferenceAccelerators(Aws::Vector< ElasticInferenceAccelerator > &&value)
void SetMetadataOptions(const InstanceMetadataOptionsRequest &value)
RunInstancesRequest & WithIpv6Addresses(const Aws::Vector< InstanceIpv6Address > &value)
const PrivateDnsNameOptionsRequest & GetPrivateDnsNameOptions() const
RunInstancesRequest & WithInstanceType(InstanceType &&value)
void SetInstanceInitiatedShutdownBehavior(ShutdownBehavior &&value)
void SetPrivateDnsNameOptions(const PrivateDnsNameOptionsRequest &value)
RunInstancesRequest & WithKernelId(const Aws::String &value)
RunInstancesRequest & WithMonitoring(RunInstancesMonitoringEnabled &&value)
RunInstancesRequest & WithElasticGpuSpecification(Aws::Vector< ElasticGpuSpecification > &&value)
const CreditSpecificationRequest & GetCreditSpecification() const
RunInstancesRequest & WithImageId(const Aws::String &value)
const Aws::Vector< InstanceIpv6Address > & GetIpv6Addresses() const
void SetSubnetId(const Aws::String &value)
const InstanceMaintenanceOptionsRequest & GetMaintenanceOptions() const
RunInstancesRequest & WithElasticGpuSpecification(const Aws::Vector< ElasticGpuSpecification > &value)
RunInstancesRequest & WithMinCount(int value)
RunInstancesRequest & AddBlockDeviceMappings(const BlockDeviceMapping &value)
RunInstancesRequest & WithDryRun(bool value)
void SetMaintenanceOptions(InstanceMaintenanceOptionsRequest &&value)
const IamInstanceProfileSpecification & GetIamInstanceProfile() const
void SetEnclaveOptions(EnclaveOptionsRequest &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
RunInstancesRequest & WithKernelId(Aws::String &&value)
void SetHibernationOptions(const HibernationOptionsRequest &value)
RunInstancesRequest & WithImageId(Aws::String &&value)
RunInstancesRequest & WithMetadataOptions(InstanceMetadataOptionsRequest &&value)
void SetMaintenanceOptions(const InstanceMaintenanceOptionsRequest &value)
RunInstancesRequest & WithIamInstanceProfile(const IamInstanceProfileSpecification &value)
const InstanceType & GetInstanceType() const
const Aws::Vector< Aws::String > & GetSecurityGroups() const
RunInstancesRequest & WithPrivateIpAddress(const Aws::String &value)
RunInstancesRequest & WithAdditionalInfo(Aws::String &&value)
RunInstancesRequest & AddSecurityGroupIds(const Aws::String &value)
RunInstancesRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
RunInstancesRequest & WithKeyName(const Aws::String &value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
const RunInstancesMonitoringEnabled & GetMonitoring() const
RunInstancesRequest & WithElasticInferenceAccelerators(const Aws::Vector< ElasticInferenceAccelerator > &value)
void SetInstanceMarketOptions(const InstanceMarketOptionsRequest &value)
void SetAdditionalInfo(const Aws::String &value)
void SetUserData(const Aws::String &value)
void SetCapacityReservationSpecification(CapacityReservationSpecification &&value)
void SetMonitoring(RunInstancesMonitoringEnabled &&value)
void SetElasticInferenceAccelerators(Aws::Vector< ElasticInferenceAccelerator > &&value)
void SetEnclaveOptions(const EnclaveOptionsRequest &value)
RunInstancesRequest & WithInstanceType(const InstanceType &value)
RunInstancesRequest & WithIpv6Addresses(Aws::Vector< InstanceIpv6Address > &&value)
RunInstancesRequest & WithCapacityReservationSpecification(CapacityReservationSpecification &&value)
RunInstancesRequest & WithPrivateIpAddress(const char *value)
RunInstancesRequest & WithSubnetId(Aws::String &&value)
RunInstancesRequest & WithMetadataOptions(const InstanceMetadataOptionsRequest &value)
void SetIpv6Addresses(Aws::Vector< InstanceIpv6Address > &&value)
RunInstancesRequest & AddLicenseSpecifications(const LicenseConfigurationRequest &value)
RunInstancesRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
RunInstancesRequest & WithKernelId(const char *value)
RunInstancesRequest & WithEbsOptimized(bool value)
const InstanceMetadataOptionsRequest & GetMetadataOptions() const
void SetNetworkInterfaces(const Aws::Vector< InstanceNetworkInterfaceSpecification > &value)
void SetAdditionalInfo(Aws::String &&value)
void SetCapacityReservationSpecification(const CapacityReservationSpecification &value)
RunInstancesRequest & WithCreditSpecification(const CreditSpecificationRequest &value)
void SetKernelId(const Aws::String &value)
void SetPrivateDnsNameOptions(PrivateDnsNameOptionsRequest &&value)
RunInstancesRequest & AddIpv6Addresses(const InstanceIpv6Address &value)
RunInstancesRequest & WithInstanceInitiatedShutdownBehavior(const ShutdownBehavior &value)
const Aws::String & GetClientToken() const
const Aws::String & GetUserData() const
void SetInstanceType(InstanceType &&value)
void SetBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
RunInstancesRequest & WithClientToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
RunInstancesRequest & WithLicenseSpecifications(Aws::Vector< LicenseConfigurationRequest > &&value)
const Aws::String & GetPrivateIpAddress() const
RunInstancesRequest & AddElasticGpuSpecification(const ElasticGpuSpecification &value)
RunInstancesRequest & WithCreditSpecification(CreditSpecificationRequest &&value)
void SetIamInstanceProfile(const IamInstanceProfileSpecification &value)
RunInstancesRequest & WithRamdiskId(const Aws::String &value)
RunInstancesRequest & WithMaintenanceOptions(const InstanceMaintenanceOptionsRequest &value)
RunInstancesRequest & WithDisableApiStop(bool value)
RunInstancesRequest & WithClientToken(const Aws::String &value)
RunInstancesRequest & WithNetworkInterfaces(Aws::Vector< InstanceNetworkInterfaceSpecification > &&value)
const CpuOptionsRequest & GetCpuOptions() const
void SetLaunchTemplate(const LaunchTemplateSpecification &value)
RunInstancesRequest & WithInstanceMarketOptions(const InstanceMarketOptionsRequest &value)
RunInstancesRequest & AddTagSpecifications(const TagSpecification &value)
RunInstancesRequest & WithIpv6AddressCount(int value)
void SetIpv6Addresses(const Aws::Vector< InstanceIpv6Address > &value)
void SetHibernationOptions(HibernationOptionsRequest &&value)
RunInstancesRequest & WithLaunchTemplate(LaunchTemplateSpecification &&value)
const Aws::String & GetAdditionalInfo() const
RunInstancesRequest & WithRamdiskId(const char *value)
RunInstancesRequest & WithCpuOptions(CpuOptionsRequest &&value)
void SetInstanceMarketOptions(InstanceMarketOptionsRequest &&value)
RunInstancesRequest & WithPrivateDnsNameOptions(PrivateDnsNameOptionsRequest &&value)
RunInstancesRequest & AddElasticInferenceAccelerators(const ElasticInferenceAccelerator &value)
const CapacityReservationSpecification & GetCapacityReservationSpecification() const
void SetPrivateIpAddress(Aws::String &&value)
RunInstancesRequest & WithUserData(const char *value)
RunInstancesRequest & AddNetworkInterfaces(const InstanceNetworkInterfaceSpecification &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
RunInstancesRequest & WithInstanceMarketOptions(InstanceMarketOptionsRequest &&value)
void SetElasticGpuSpecification(const Aws::Vector< ElasticGpuSpecification > &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
RunInstancesRequest & AddSecurityGroupIds(const char *value)
void SetMetadataOptions(InstanceMetadataOptionsRequest &&value)
RunInstancesRequest & AddSecurityGroups(const char *value)
RunInstancesRequest & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
void SetInstanceInitiatedShutdownBehavior(const ShutdownBehavior &value)
RunInstancesRequest & AddSecurityGroupIds(Aws::String &&value)
void SetPrivateIpAddress(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RunInstancesRequest & WithRamdiskId(Aws::String &&value)
void SetNetworkInterfaces(Aws::Vector< InstanceNetworkInterfaceSpecification > &&value)
const Aws::String & GetImageId() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
RunInstancesRequest & AddSecurityGroups(Aws::String &&value)
void SetCpuOptions(CpuOptionsRequest &&value)
RunInstancesRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
RunInstancesRequest & WithDisableApiTermination(bool value)
void SetCreditSpecification(CreditSpecificationRequest &&value)
RunInstancesRequest & WithPlacement(Placement &&value)
RunInstancesRequest & WithIamInstanceProfile(IamInstanceProfileSpecification &&value)
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
RunInstancesRequest & WithMaintenanceOptions(InstanceMaintenanceOptionsRequest &&value)
RunInstancesRequest & WithLaunchTemplate(const LaunchTemplateSpecification &value)
RunInstancesRequest & WithSubnetId(const char *value)
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
void SetElasticGpuSpecification(Aws::Vector< ElasticGpuSpecification > &&value)
RunInstancesRequest & AddElasticInferenceAccelerators(ElasticInferenceAccelerator &&value)
const InstanceMarketOptionsRequest & GetInstanceMarketOptions() const
RunInstancesRequest & WithHibernationOptions(const HibernationOptionsRequest &value)
RunInstancesRequest & WithLicenseSpecifications(const Aws::Vector< LicenseConfigurationRequest > &value)
void SetInstanceType(const InstanceType &value)
const Aws::String & GetRamdiskId() const
const EnclaveOptionsRequest & GetEnclaveOptions() const
void SetClientToken(const Aws::String &value)
const Aws::String & GetKernelId() const
RunInstancesRequest & WithImageId(const char *value)
RunInstancesRequest & WithPrivateIpAddress(Aws::String &&value)
RunInstancesRequest & WithEnablePrimaryIpv6(bool value)
RunInstancesRequest & WithKeyName(Aws::String &&value)
RunInstancesRequest & WithAdditionalInfo(const char *value)
RunInstancesRequest & WithBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
RunInstancesRequest & WithKeyName(const char *value)
RunInstancesRequest & AddTagSpecifications(TagSpecification &&value)
void SetLaunchTemplate(LaunchTemplateSpecification &&value)
const LaunchTemplateSpecification & GetLaunchTemplate() const
RunInstancesRequest & WithInstanceInitiatedShutdownBehavior(ShutdownBehavior &&value)
RunInstancesRequest & AddElasticGpuSpecification(ElasticGpuSpecification &&value)
const Aws::String & GetSubnetId() const
RunInstancesRequest & WithClientToken(const char *value)
void SetIamInstanceProfile(IamInstanceProfileSpecification &&value)
void SetRamdiskId(const Aws::String &value)
RunInstancesRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
RunInstancesRequest & WithPrivateDnsNameOptions(const PrivateDnsNameOptionsRequest &value)
RunInstancesRequest & AddLicenseSpecifications(LicenseConfigurationRequest &&value)
RunInstancesRequest & AddBlockDeviceMappings(BlockDeviceMapping &&value)
RunInstancesRequest & AddIpv6Addresses(InstanceIpv6Address &&value)
const ShutdownBehavior & GetInstanceInitiatedShutdownBehavior() const
RunInstancesRequest & WithBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
void SetBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
RunInstancesRequest & WithCpuOptions(const CpuOptionsRequest &value)
RunInstancesRequest & WithHibernationOptions(HibernationOptionsRequest &&value)
const Aws::Vector< InstanceNetworkInterfaceSpecification > & GetNetworkInterfaces() const
RunInstancesRequest & WithPlacement(const Placement &value)
void SetMonitoring(const RunInstancesMonitoringEnabled &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
AWS_EC2_API Aws::String SerializePayload() const override
RunInstancesRequest & AddNetworkInterfaces(InstanceNetworkInterfaceSpecification &&value)
const Aws::Vector< ElasticInferenceAccelerator > & GetElasticInferenceAccelerators() const
RunInstancesRequest & WithNetworkInterfaces(const Aws::Vector< InstanceNetworkInterfaceSpecification > &value)
RunInstancesRequest & WithUserData(Aws::String &&value)
void SetCreditSpecification(const CreditSpecificationRequest &value)
RunInstancesRequest & WithMaxCount(int value)
void SetElasticInferenceAccelerators(const Aws::Vector< ElasticInferenceAccelerator > &value)
RunInstancesRequest & WithEnclaveOptions(EnclaveOptionsRequest &&value)
const HibernationOptionsRequest & GetHibernationOptions() const
RunInstancesRequest & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
RunInstancesRequest & WithEnclaveOptions(const EnclaveOptionsRequest &value)
RunInstancesRequest & WithUserData(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector