/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class AWS_EC2_API RunInstancesRequest : public EC2Request { public: RunInstancesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RunInstances"; } Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The block device mapping, which defines the EBS volumes and instance store * volumes to attach to the instance at launch. For more information, see Block * device mappings in the Amazon EC2 User Guide.

*/ inline const Aws::Vector& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; } /** *

The block device mapping, which defines the EBS volumes and instance store * volumes to attach to the instance at launch. For more information, see Block * device mappings in the Amazon EC2 User Guide.

*/ inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; } /** *

The block device mapping, which defines the EBS volumes and instance store * volumes to attach to the instance at launch. For more information, see Block * device mappings in the Amazon EC2 User Guide.

*/ inline void SetBlockDeviceMappings(const Aws::Vector& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; } /** *

The block device mapping, which defines the EBS volumes and instance store * volumes to attach to the instance at launch. For more information, see Block * device mappings in the Amazon EC2 User Guide.

*/ inline void SetBlockDeviceMappings(Aws::Vector&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); } /** *

The block device mapping, which defines the EBS volumes and instance store * volumes to attach to the instance at launch. For more information, see Block * device mappings in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithBlockDeviceMappings(const Aws::Vector& value) { SetBlockDeviceMappings(value); return *this;} /** *

The block device mapping, which defines the EBS volumes and instance store * volumes to attach to the instance at launch. For more information, see Block * device mappings in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithBlockDeviceMappings(Aws::Vector&& value) { SetBlockDeviceMappings(std::move(value)); return *this;} /** *

The block device mapping, which defines the EBS volumes and instance store * volumes to attach to the instance at launch. For more information, see Block * device mappings in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& AddBlockDeviceMappings(const BlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; } /** *

The block device mapping, which defines the EBS volumes and instance store * volumes to attach to the instance at launch. For more information, see Block * device mappings in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& AddBlockDeviceMappings(BlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; } /** *

The ID of the AMI. An AMI ID is required to launch an instance and must be * specified here or in a launch template.

*/ inline const Aws::String& GetImageId() const{ return m_imageId; } /** *

The ID of the AMI. An AMI ID is required to launch an instance and must be * specified here or in a launch template.

*/ inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; } /** *

The ID of the AMI. An AMI ID is required to launch an instance and must be * specified here or in a launch template.

*/ inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; } /** *

The ID of the AMI. An AMI ID is required to launch an instance and must be * specified here or in a launch template.

*/ inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); } /** *

The ID of the AMI. An AMI ID is required to launch an instance and must be * specified here or in a launch template.

*/ inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); } /** *

The ID of the AMI. An AMI ID is required to launch an instance and must be * specified here or in a launch template.

*/ inline RunInstancesRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;} /** *

The ID of the AMI. An AMI ID is required to launch an instance and must be * specified here or in a launch template.

*/ inline RunInstancesRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;} /** *

The ID of the AMI. An AMI ID is required to launch an instance and must be * specified here or in a launch template.

*/ inline RunInstancesRequest& WithImageId(const char* value) { SetImageId(value); return *this;} /** *

The instance type. For more information, see Instance * types in the Amazon EC2 User Guide.

Default: * m1.small

*/ inline const InstanceType& GetInstanceType() const{ return m_instanceType; } /** *

The instance type. For more information, see Instance * types in the Amazon EC2 User Guide.

Default: * m1.small

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type. For more information, see Instance * types in the Amazon EC2 User Guide.

Default: * m1.small

*/ inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type. For more information, see Instance * types in the Amazon EC2 User Guide.

Default: * m1.small

*/ inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type. For more information, see Instance * types in the Amazon EC2 User Guide.

Default: * m1.small

*/ inline RunInstancesRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;} /** *

The instance type. For more information, see Instance * types in the Amazon EC2 User Guide.

Default: * m1.small

*/ inline RunInstancesRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *

[EC2-VPC] The number of IPv6 addresses to associate with the primary network * interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. * You cannot specify this option and the option to assign specific IPv6 addresses * in the same request. You can specify this option if you've specified a minimum * number of instances to launch.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline int GetIpv6AddressCount() const{ return m_ipv6AddressCount; } /** *

[EC2-VPC] The number of IPv6 addresses to associate with the primary network * interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. * You cannot specify this option and the option to assign specific IPv6 addresses * in the same request. You can specify this option if you've specified a minimum * number of instances to launch.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline bool Ipv6AddressCountHasBeenSet() const { return m_ipv6AddressCountHasBeenSet; } /** *

[EC2-VPC] The number of IPv6 addresses to associate with the primary network * interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. * You cannot specify this option and the option to assign specific IPv6 addresses * in the same request. You can specify this option if you've specified a minimum * number of instances to launch.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline void SetIpv6AddressCount(int value) { m_ipv6AddressCountHasBeenSet = true; m_ipv6AddressCount = value; } /** *

[EC2-VPC] The number of IPv6 addresses to associate with the primary network * interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. * You cannot specify this option and the option to assign specific IPv6 addresses * in the same request. You can specify this option if you've specified a minimum * number of instances to launch.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline RunInstancesRequest& WithIpv6AddressCount(int value) { SetIpv6AddressCount(value); return *this;} /** *

[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with * the primary network interface. You cannot specify this option and the option to * assign a number of IPv6 addresses in the same request. You cannot specify this * option if you've specified a minimum number of instances to launch.

You * cannot specify this option and the network interfaces option in the same * request.

*/ inline const Aws::Vector& GetIpv6Addresses() const{ return m_ipv6Addresses; } /** *

[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with * the primary network interface. You cannot specify this option and the option to * assign a number of IPv6 addresses in the same request. You cannot specify this * option if you've specified a minimum number of instances to launch.

You * cannot specify this option and the network interfaces option in the same * request.

*/ inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; } /** *

[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with * the primary network interface. You cannot specify this option and the option to * assign a number of IPv6 addresses in the same request. You cannot specify this * option if you've specified a minimum number of instances to launch.

You * cannot specify this option and the network interfaces option in the same * request.

*/ inline void SetIpv6Addresses(const Aws::Vector& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; } /** *

[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with * the primary network interface. You cannot specify this option and the option to * assign a number of IPv6 addresses in the same request. You cannot specify this * option if you've specified a minimum number of instances to launch.

You * cannot specify this option and the network interfaces option in the same * request.

*/ inline void SetIpv6Addresses(Aws::Vector&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); } /** *

[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with * the primary network interface. You cannot specify this option and the option to * assign a number of IPv6 addresses in the same request. You cannot specify this * option if you've specified a minimum number of instances to launch.

You * cannot specify this option and the network interfaces option in the same * request.

*/ inline RunInstancesRequest& WithIpv6Addresses(const Aws::Vector& value) { SetIpv6Addresses(value); return *this;} /** *

[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with * the primary network interface. You cannot specify this option and the option to * assign a number of IPv6 addresses in the same request. You cannot specify this * option if you've specified a minimum number of instances to launch.

You * cannot specify this option and the network interfaces option in the same * request.

*/ inline RunInstancesRequest& WithIpv6Addresses(Aws::Vector&& value) { SetIpv6Addresses(std::move(value)); return *this;} /** *

[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with * the primary network interface. You cannot specify this option and the option to * assign a number of IPv6 addresses in the same request. You cannot specify this * option if you've specified a minimum number of instances to launch.

You * cannot specify this option and the network interfaces option in the same * request.

*/ inline RunInstancesRequest& AddIpv6Addresses(const InstanceIpv6Address& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; } /** *

[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with * the primary network interface. You cannot specify this option and the option to * assign a number of IPv6 addresses in the same request. You cannot specify this * option if you've specified a minimum number of instances to launch.

You * cannot specify this option and the network interfaces option in the same * request.

*/ inline RunInstancesRequest& AddIpv6Addresses(InstanceIpv6Address&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; } /** *

The ID of the kernel.

We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see PV-GRUB * in the Amazon EC2 User Guide.

*/ inline const Aws::String& GetKernelId() const{ return m_kernelId; } /** *

The ID of the kernel.

We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see PV-GRUB * in the Amazon EC2 User Guide.

*/ inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; } /** *

The ID of the kernel.

We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see PV-GRUB * in the Amazon EC2 User Guide.

*/ inline void SetKernelId(const Aws::String& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; } /** *

The ID of the kernel.

We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see PV-GRUB * in the Amazon EC2 User Guide.

*/ inline void SetKernelId(Aws::String&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::move(value); } /** *

The ID of the kernel.

We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see PV-GRUB * in the Amazon EC2 User Guide.

*/ inline void SetKernelId(const char* value) { m_kernelIdHasBeenSet = true; m_kernelId.assign(value); } /** *

The ID of the kernel.

We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see PV-GRUB * in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithKernelId(const Aws::String& value) { SetKernelId(value); return *this;} /** *

The ID of the kernel.

We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see PV-GRUB * in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithKernelId(Aws::String&& value) { SetKernelId(std::move(value)); return *this;} /** *

The ID of the kernel.

We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see PV-GRUB * in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithKernelId(const char* value) { SetKernelId(value); return *this;} /** *

The name of the key pair. You can create a key pair using CreateKeyPair * or ImportKeyPair.

*

If you do not specify a key pair, you can't connect to the * instance unless you choose an AMI that is configured to allow users another way * to log in.

*/ inline const Aws::String& GetKeyName() const{ return m_keyName; } /** *

The name of the key pair. You can create a key pair using CreateKeyPair * or ImportKeyPair.

*

If you do not specify a key pair, you can't connect to the * instance unless you choose an AMI that is configured to allow users another way * to log in.

*/ inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; } /** *

The name of the key pair. You can create a key pair using CreateKeyPair * or ImportKeyPair.

*

If you do not specify a key pair, you can't connect to the * instance unless you choose an AMI that is configured to allow users another way * to log in.

*/ inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; } /** *

The name of the key pair. You can create a key pair using CreateKeyPair * or ImportKeyPair.

*

If you do not specify a key pair, you can't connect to the * instance unless you choose an AMI that is configured to allow users another way * to log in.

*/ inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); } /** *

The name of the key pair. You can create a key pair using CreateKeyPair * or ImportKeyPair.

*

If you do not specify a key pair, you can't connect to the * instance unless you choose an AMI that is configured to allow users another way * to log in.

*/ inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); } /** *

The name of the key pair. You can create a key pair using CreateKeyPair * or ImportKeyPair.

*

If you do not specify a key pair, you can't connect to the * instance unless you choose an AMI that is configured to allow users another way * to log in.

*/ inline RunInstancesRequest& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *

The name of the key pair. You can create a key pair using CreateKeyPair * or ImportKeyPair.

*

If you do not specify a key pair, you can't connect to the * instance unless you choose an AMI that is configured to allow users another way * to log in.

*/ inline RunInstancesRequest& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *

The name of the key pair. You can create a key pair using CreateKeyPair * or ImportKeyPair.

*

If you do not specify a key pair, you can't connect to the * instance unless you choose an AMI that is configured to allow users another way * to log in.

*/ inline RunInstancesRequest& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *

The maximum number of instances to launch. If you specify more instances than * Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the * largest possible number of instances above MinCount.

*

Constraints: Between 1 and the maximum number you're allowed for the * specified instance type. For more information about the default limits, and how * to request an increase, see How * many instances can I run in Amazon EC2 in the Amazon EC2 FAQ.

*/ inline int GetMaxCount() const{ return m_maxCount; } /** *

The maximum number of instances to launch. If you specify more instances than * Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the * largest possible number of instances above MinCount.

*

Constraints: Between 1 and the maximum number you're allowed for the * specified instance type. For more information about the default limits, and how * to request an increase, see How * many instances can I run in Amazon EC2 in the Amazon EC2 FAQ.

*/ inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; } /** *

The maximum number of instances to launch. If you specify more instances than * Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the * largest possible number of instances above MinCount.

*

Constraints: Between 1 and the maximum number you're allowed for the * specified instance type. For more information about the default limits, and how * to request an increase, see How * many instances can I run in Amazon EC2 in the Amazon EC2 FAQ.

*/ inline void SetMaxCount(int value) { m_maxCountHasBeenSet = true; m_maxCount = value; } /** *

The maximum number of instances to launch. If you specify more instances than * Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the * largest possible number of instances above MinCount.

*

Constraints: Between 1 and the maximum number you're allowed for the * specified instance type. For more information about the default limits, and how * to request an increase, see How * many instances can I run in Amazon EC2 in the Amazon EC2 FAQ.

*/ inline RunInstancesRequest& WithMaxCount(int value) { SetMaxCount(value); return *this;} /** *

The minimum number of instances to launch. If you specify a minimum that is * more instances than Amazon EC2 can launch in the target Availability Zone, * Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum * number you're allowed for the specified instance type. For more information * about the default limits, and how to request an increase, see How * many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

*/ inline int GetMinCount() const{ return m_minCount; } /** *

The minimum number of instances to launch. If you specify a minimum that is * more instances than Amazon EC2 can launch in the target Availability Zone, * Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum * number you're allowed for the specified instance type. For more information * about the default limits, and how to request an increase, see How * many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

*/ inline bool MinCountHasBeenSet() const { return m_minCountHasBeenSet; } /** *

The minimum number of instances to launch. If you specify a minimum that is * more instances than Amazon EC2 can launch in the target Availability Zone, * Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum * number you're allowed for the specified instance type. For more information * about the default limits, and how to request an increase, see How * many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

*/ inline void SetMinCount(int value) { m_minCountHasBeenSet = true; m_minCount = value; } /** *

The minimum number of instances to launch. If you specify a minimum that is * more instances than Amazon EC2 can launch in the target Availability Zone, * Amazon EC2 launches no instances.

Constraints: Between 1 and the maximum * number you're allowed for the specified instance type. For more information * about the default limits, and how to request an increase, see How * many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

*/ inline RunInstancesRequest& WithMinCount(int value) { SetMinCount(value); return *this;} /** *

Specifies whether detailed monitoring is enabled for the instance.

*/ inline const RunInstancesMonitoringEnabled& GetMonitoring() const{ return m_monitoring; } /** *

Specifies whether detailed monitoring is enabled for the instance.

*/ inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; } /** *

Specifies whether detailed monitoring is enabled for the instance.

*/ inline void SetMonitoring(const RunInstancesMonitoringEnabled& value) { m_monitoringHasBeenSet = true; m_monitoring = value; } /** *

Specifies whether detailed monitoring is enabled for the instance.

*/ inline void SetMonitoring(RunInstancesMonitoringEnabled&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); } /** *

Specifies whether detailed monitoring is enabled for the instance.

*/ inline RunInstancesRequest& WithMonitoring(const RunInstancesMonitoringEnabled& value) { SetMonitoring(value); return *this;} /** *

Specifies whether detailed monitoring is enabled for the instance.

*/ inline RunInstancesRequest& WithMonitoring(RunInstancesMonitoringEnabled&& value) { SetMonitoring(std::move(value)); return *this;} /** *

The placement for the instance.

*/ inline const Placement& GetPlacement() const{ return m_placement; } /** *

The placement for the instance.

*/ inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; } /** *

The placement for the instance.

*/ inline void SetPlacement(const Placement& value) { m_placementHasBeenSet = true; m_placement = value; } /** *

The placement for the instance.

*/ inline void SetPlacement(Placement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); } /** *

The placement for the instance.

*/ inline RunInstancesRequest& WithPlacement(const Placement& value) { SetPlacement(value); return *this;} /** *

The placement for the instance.

*/ inline RunInstancesRequest& WithPlacement(Placement&& value) { SetPlacement(std::move(value)); return *this;} /** *

The ID of the RAM disk to select. Some kernels require additional drivers at * launch. Check the kernel requirements for information about whether you need to * specify a RAM disk. To find kernel requirements, go to the Amazon Web Services * Resource Center and search for the kernel ID.

We recommend * that you use PV-GRUB instead of kernels and RAM disks. For more information, see * PV-GRUB * in the Amazon EC2 User Guide.

*/ inline const Aws::String& GetRamdiskId() const{ return m_ramdiskId; } /** *

The ID of the RAM disk to select. Some kernels require additional drivers at * launch. Check the kernel requirements for information about whether you need to * specify a RAM disk. To find kernel requirements, go to the Amazon Web Services * Resource Center and search for the kernel ID.

We recommend * that you use PV-GRUB instead of kernels and RAM disks. For more information, see * PV-GRUB * in the Amazon EC2 User Guide.

*/ inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; } /** *

The ID of the RAM disk to select. Some kernels require additional drivers at * launch. Check the kernel requirements for information about whether you need to * specify a RAM disk. To find kernel requirements, go to the Amazon Web Services * Resource Center and search for the kernel ID.

We recommend * that you use PV-GRUB instead of kernels and RAM disks. For more information, see * PV-GRUB * in the Amazon EC2 User Guide.

*/ inline void SetRamdiskId(const Aws::String& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = value; } /** *

The ID of the RAM disk to select. Some kernels require additional drivers at * launch. Check the kernel requirements for information about whether you need to * specify a RAM disk. To find kernel requirements, go to the Amazon Web Services * Resource Center and search for the kernel ID.

We recommend * that you use PV-GRUB instead of kernels and RAM disks. For more information, see * PV-GRUB * in the Amazon EC2 User Guide.

*/ inline void SetRamdiskId(Aws::String&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::move(value); } /** *

The ID of the RAM disk to select. Some kernels require additional drivers at * launch. Check the kernel requirements for information about whether you need to * specify a RAM disk. To find kernel requirements, go to the Amazon Web Services * Resource Center and search for the kernel ID.

We recommend * that you use PV-GRUB instead of kernels and RAM disks. For more information, see * PV-GRUB * in the Amazon EC2 User Guide.

*/ inline void SetRamdiskId(const char* value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId.assign(value); } /** *

The ID of the RAM disk to select. Some kernels require additional drivers at * launch. Check the kernel requirements for information about whether you need to * specify a RAM disk. To find kernel requirements, go to the Amazon Web Services * Resource Center and search for the kernel ID.

We recommend * that you use PV-GRUB instead of kernels and RAM disks. For more information, see * PV-GRUB * in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithRamdiskId(const Aws::String& value) { SetRamdiskId(value); return *this;} /** *

The ID of the RAM disk to select. Some kernels require additional drivers at * launch. Check the kernel requirements for information about whether you need to * specify a RAM disk. To find kernel requirements, go to the Amazon Web Services * Resource Center and search for the kernel ID.

We recommend * that you use PV-GRUB instead of kernels and RAM disks. For more information, see * PV-GRUB * in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithRamdiskId(Aws::String&& value) { SetRamdiskId(std::move(value)); return *this;} /** *

The ID of the RAM disk to select. Some kernels require additional drivers at * launch. Check the kernel requirements for information about whether you need to * specify a RAM disk. To find kernel requirements, go to the Amazon Web Services * Resource Center and search for the kernel ID.

We recommend * that you use PV-GRUB instead of kernels and RAM disks. For more information, see * PV-GRUB * in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithRamdiskId(const char* value) { SetRamdiskId(value); return *this;} /** *

The IDs of the security groups. You can create a security group using CreateSecurityGroup.

*

If you specify a network interface, you must specify any security groups as * part of the network interface.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

The IDs of the security groups. You can create a security group using CreateSecurityGroup.

*

If you specify a network interface, you must specify any security groups as * part of the network interface.

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

The IDs of the security groups. You can create a security group using CreateSecurityGroup.

*

If you specify a network interface, you must specify any security groups as * part of the network interface.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

The IDs of the security groups. You can create a security group using CreateSecurityGroup.

*

If you specify a network interface, you must specify any security groups as * part of the network interface.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

The IDs of the security groups. You can create a security group using CreateSecurityGroup.

*

If you specify a network interface, you must specify any security groups as * part of the network interface.

*/ inline RunInstancesRequest& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

The IDs of the security groups. You can create a security group using CreateSecurityGroup.

*

If you specify a network interface, you must specify any security groups as * part of the network interface.

*/ inline RunInstancesRequest& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

The IDs of the security groups. You can create a security group using CreateSecurityGroup.

*

If you specify a network interface, you must specify any security groups as * part of the network interface.

*/ inline RunInstancesRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The IDs of the security groups. You can create a security group using CreateSecurityGroup.

*

If you specify a network interface, you must specify any security groups as * part of the network interface.

*/ inline RunInstancesRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

The IDs of the security groups. You can create a security group using CreateSecurityGroup.

*

If you specify a network interface, you must specify any security groups as * part of the network interface.

*/ inline RunInstancesRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

[EC2-Classic, default VPC] The names of the security groups. For a nondefault * VPC, you must use security group IDs instead.

If you specify a network * interface, you must specify any security groups as part of the network * interface.

Default: Amazon EC2 uses the default security group.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

[EC2-Classic, default VPC] The names of the security groups. For a nondefault * VPC, you must use security group IDs instead.

If you specify a network * interface, you must specify any security groups as part of the network * interface.

Default: Amazon EC2 uses the default security group.

*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *

[EC2-Classic, default VPC] The names of the security groups. For a nondefault * VPC, you must use security group IDs instead.

If you specify a network * interface, you must specify any security groups as part of the network * interface.

Default: Amazon EC2 uses the default security group.

*/ inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

[EC2-Classic, default VPC] The names of the security groups. For a nondefault * VPC, you must use security group IDs instead.

If you specify a network * interface, you must specify any security groups as part of the network * interface.

Default: Amazon EC2 uses the default security group.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

[EC2-Classic, default VPC] The names of the security groups. For a nondefault * VPC, you must use security group IDs instead.

If you specify a network * interface, you must specify any security groups as part of the network * interface.

Default: Amazon EC2 uses the default security group.

*/ inline RunInstancesRequest& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

[EC2-Classic, default VPC] The names of the security groups. For a nondefault * VPC, you must use security group IDs instead.

If you specify a network * interface, you must specify any security groups as part of the network * interface.

Default: Amazon EC2 uses the default security group.

*/ inline RunInstancesRequest& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

[EC2-Classic, default VPC] The names of the security groups. For a nondefault * VPC, you must use security group IDs instead.

If you specify a network * interface, you must specify any security groups as part of the network * interface.

Default: Amazon EC2 uses the default security group.

*/ inline RunInstancesRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

[EC2-Classic, default VPC] The names of the security groups. For a nondefault * VPC, you must use security group IDs instead.

If you specify a network * interface, you must specify any security groups as part of the network * interface.

Default: Amazon EC2 uses the default security group.

*/ inline RunInstancesRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *

[EC2-Classic, default VPC] The names of the security groups. For a nondefault * VPC, you must use security group IDs instead.

If you specify a network * interface, you must specify any security groups as part of the network * interface.

Default: Amazon EC2 uses the default security group.

*/ inline RunInstancesRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

[EC2-VPC] The ID of the subnet to launch the instance into.

If you * specify a network interface, you must specify any subnets as part of the network * interface.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

[EC2-VPC] The ID of the subnet to launch the instance into.

If you * specify a network interface, you must specify any subnets as part of the network * interface.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

[EC2-VPC] The ID of the subnet to launch the instance into.

If you * specify a network interface, you must specify any subnets as part of the network * interface.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

[EC2-VPC] The ID of the subnet to launch the instance into.

If you * specify a network interface, you must specify any subnets as part of the network * interface.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

[EC2-VPC] The ID of the subnet to launch the instance into.

If you * specify a network interface, you must specify any subnets as part of the network * interface.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

[EC2-VPC] The ID of the subnet to launch the instance into.

If you * specify a network interface, you must specify any subnets as part of the network * interface.

*/ inline RunInstancesRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

[EC2-VPC] The ID of the subnet to launch the instance into.

If you * specify a network interface, you must specify any subnets as part of the network * interface.

*/ inline RunInstancesRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

[EC2-VPC] The ID of the subnet to launch the instance into.

If you * specify a network interface, you must specify any subnets as part of the network * interface.

*/ inline RunInstancesRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

The user data to make available to the instance. For more information, see Running * commands on your Linux instance at launch (Linux) and Adding * User Data (Windows). If you are using a command line tool, base64-encoding * is performed for you, and you can load the text from a file. Otherwise, you must * provide base64-encoded text. User data is limited to 16 KB.

*/ inline const Aws::String& GetUserData() const{ return m_userData; } /** *

The user data to make available to the instance. For more information, see Running * commands on your Linux instance at launch (Linux) and Adding * User Data (Windows). If you are using a command line tool, base64-encoding * is performed for you, and you can load the text from a file. Otherwise, you must * provide base64-encoded text. User data is limited to 16 KB.

*/ inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; } /** *

The user data to make available to the instance. For more information, see Running * commands on your Linux instance at launch (Linux) and Adding * User Data (Windows). If you are using a command line tool, base64-encoding * is performed for you, and you can load the text from a file. Otherwise, you must * provide base64-encoded text. User data is limited to 16 KB.

*/ inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; } /** *

The user data to make available to the instance. For more information, see Running * commands on your Linux instance at launch (Linux) and Adding * User Data (Windows). If you are using a command line tool, base64-encoding * is performed for you, and you can load the text from a file. Otherwise, you must * provide base64-encoded text. User data is limited to 16 KB.

*/ inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); } /** *

The user data to make available to the instance. For more information, see Running * commands on your Linux instance at launch (Linux) and Adding * User Data (Windows). If you are using a command line tool, base64-encoding * is performed for you, and you can load the text from a file. Otherwise, you must * provide base64-encoded text. User data is limited to 16 KB.

*/ inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); } /** *

The user data to make available to the instance. For more information, see Running * commands on your Linux instance at launch (Linux) and Adding * User Data (Windows). If you are using a command line tool, base64-encoding * is performed for you, and you can load the text from a file. Otherwise, you must * provide base64-encoded text. User data is limited to 16 KB.

*/ inline RunInstancesRequest& WithUserData(const Aws::String& value) { SetUserData(value); return *this;} /** *

The user data to make available to the instance. For more information, see Running * commands on your Linux instance at launch (Linux) and Adding * User Data (Windows). If you are using a command line tool, base64-encoding * is performed for you, and you can load the text from a file. Otherwise, you must * provide base64-encoded text. User data is limited to 16 KB.

*/ inline RunInstancesRequest& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;} /** *

The user data to make available to the instance. For more information, see Running * commands on your Linux instance at launch (Linux) and Adding * User Data (Windows). If you are using a command line tool, base64-encoding * is performed for you, and you can load the text from a file. Otherwise, you must * provide base64-encoded text. User data is limited to 16 KB.

*/ inline RunInstancesRequest& WithUserData(const char* value) { SetUserData(value); return *this;} /** *

Reserved.

*/ inline const Aws::String& GetAdditionalInfo() const{ return m_additionalInfo; } /** *

Reserved.

*/ inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; } /** *

Reserved.

*/ inline void SetAdditionalInfo(const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; } /** *

Reserved.

*/ inline void SetAdditionalInfo(Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); } /** *

Reserved.

*/ inline void SetAdditionalInfo(const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.assign(value); } /** *

Reserved.

*/ inline RunInstancesRequest& WithAdditionalInfo(const Aws::String& value) { SetAdditionalInfo(value); return *this;} /** *

Reserved.

*/ inline RunInstancesRequest& WithAdditionalInfo(Aws::String&& value) { SetAdditionalInfo(std::move(value)); return *this;} /** *

Reserved.

*/ inline RunInstancesRequest& WithAdditionalInfo(const char* value) { SetAdditionalInfo(value); return *this;} /** *

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request. If you do not specify a client token, a randomly generated token is * used for the request to ensure idempotency.

For more information, see Ensuring * Idempotency.

Constraints: Maximum 64 ASCII characters

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request. If you do not specify a client token, a randomly generated token is * used for the request to ensure idempotency.

For more information, see Ensuring * Idempotency.

Constraints: Maximum 64 ASCII characters

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request. If you do not specify a client token, a randomly generated token is * used for the request to ensure idempotency.

For more information, see Ensuring * Idempotency.

Constraints: Maximum 64 ASCII characters

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request. If you do not specify a client token, a randomly generated token is * used for the request to ensure idempotency.

For more information, see Ensuring * Idempotency.

Constraints: Maximum 64 ASCII characters

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request. If you do not specify a client token, a randomly generated token is * used for the request to ensure idempotency.

For more information, see Ensuring * Idempotency.

Constraints: Maximum 64 ASCII characters

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request. If you do not specify a client token, a randomly generated token is * used for the request to ensure idempotency.

For more information, see Ensuring * Idempotency.

Constraints: Maximum 64 ASCII characters

*/ inline RunInstancesRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request. If you do not specify a client token, a randomly generated token is * used for the request to ensure idempotency.

For more information, see Ensuring * Idempotency.

Constraints: Maximum 64 ASCII characters

*/ inline RunInstancesRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request. If you do not specify a client token, a randomly generated token is * used for the request to ensure idempotency.

For more information, see Ensuring * Idempotency.

Constraints: Maximum 64 ASCII characters

*/ inline RunInstancesRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

If you set this parameter to true, you can't terminate the * instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To * change this attribute after launch, use ModifyInstanceAttribute. * Alternatively, if you set InstanceInitiatedShutdownBehavior to * terminate, you can terminate the instance by running the shutdown * command from the instance.

Default: false

*/ inline bool GetDisableApiTermination() const{ return m_disableApiTermination; } /** *

If you set this parameter to true, you can't terminate the * instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To * change this attribute after launch, use ModifyInstanceAttribute. * Alternatively, if you set InstanceInitiatedShutdownBehavior to * terminate, you can terminate the instance by running the shutdown * command from the instance.

Default: false

*/ inline bool DisableApiTerminationHasBeenSet() const { return m_disableApiTerminationHasBeenSet; } /** *

If you set this parameter to true, you can't terminate the * instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To * change this attribute after launch, use ModifyInstanceAttribute. * Alternatively, if you set InstanceInitiatedShutdownBehavior to * terminate, you can terminate the instance by running the shutdown * command from the instance.

Default: false

*/ inline void SetDisableApiTermination(bool value) { m_disableApiTerminationHasBeenSet = true; m_disableApiTermination = value; } /** *

If you set this parameter to true, you can't terminate the * instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To * change this attribute after launch, use ModifyInstanceAttribute. * Alternatively, if you set InstanceInitiatedShutdownBehavior to * terminate, you can terminate the instance by running the shutdown * command from the instance.

Default: false

*/ inline RunInstancesRequest& WithDisableApiTermination(bool value) { SetDisableApiTermination(value); return *this;} /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline RunInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

Indicates whether the instance is optimized for Amazon EBS I/O. This * optimization provides dedicated throughput to Amazon EBS and an optimized * configuration stack to provide optimal Amazon EBS I/O performance. This * optimization isn't available with all instance types. Additional usage charges * apply when using an EBS-optimized instance.

Default: false *

*/ inline bool GetEbsOptimized() const{ return m_ebsOptimized; } /** *

Indicates whether the instance is optimized for Amazon EBS I/O. This * optimization provides dedicated throughput to Amazon EBS and an optimized * configuration stack to provide optimal Amazon EBS I/O performance. This * optimization isn't available with all instance types. Additional usage charges * apply when using an EBS-optimized instance.

Default: false *

*/ inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; } /** *

Indicates whether the instance is optimized for Amazon EBS I/O. This * optimization provides dedicated throughput to Amazon EBS and an optimized * configuration stack to provide optimal Amazon EBS I/O performance. This * optimization isn't available with all instance types. Additional usage charges * apply when using an EBS-optimized instance.

Default: false *

*/ inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; } /** *

Indicates whether the instance is optimized for Amazon EBS I/O. This * optimization provides dedicated throughput to Amazon EBS and an optimized * configuration stack to provide optimal Amazon EBS I/O performance. This * optimization isn't available with all instance types. Additional usage charges * apply when using an EBS-optimized instance.

Default: false *

*/ inline RunInstancesRequest& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;} /** *

The name or Amazon Resource Name (ARN) of an IAM instance profile.

*/ inline const IamInstanceProfileSpecification& GetIamInstanceProfile() const{ return m_iamInstanceProfile; } /** *

The name or Amazon Resource Name (ARN) of an IAM instance profile.

*/ inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; } /** *

The name or Amazon Resource Name (ARN) of an IAM instance profile.

*/ inline void SetIamInstanceProfile(const IamInstanceProfileSpecification& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; } /** *

The name or Amazon Resource Name (ARN) of an IAM instance profile.

*/ inline void SetIamInstanceProfile(IamInstanceProfileSpecification&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); } /** *

The name or Amazon Resource Name (ARN) of an IAM instance profile.

*/ inline RunInstancesRequest& WithIamInstanceProfile(const IamInstanceProfileSpecification& value) { SetIamInstanceProfile(value); return *this;} /** *

The name or Amazon Resource Name (ARN) of an IAM instance profile.

*/ inline RunInstancesRequest& WithIamInstanceProfile(IamInstanceProfileSpecification&& value) { SetIamInstanceProfile(std::move(value)); return *this;} /** *

Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).

*

Default: stop

*/ inline const ShutdownBehavior& GetInstanceInitiatedShutdownBehavior() const{ return m_instanceInitiatedShutdownBehavior; } /** *

Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).

*

Default: stop

*/ inline bool InstanceInitiatedShutdownBehaviorHasBeenSet() const { return m_instanceInitiatedShutdownBehaviorHasBeenSet; } /** *

Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).

*

Default: stop

*/ inline void SetInstanceInitiatedShutdownBehavior(const ShutdownBehavior& value) { m_instanceInitiatedShutdownBehaviorHasBeenSet = true; m_instanceInitiatedShutdownBehavior = value; } /** *

Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).

*

Default: stop

*/ inline void SetInstanceInitiatedShutdownBehavior(ShutdownBehavior&& value) { m_instanceInitiatedShutdownBehaviorHasBeenSet = true; m_instanceInitiatedShutdownBehavior = std::move(value); } /** *

Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).

*

Default: stop

*/ inline RunInstancesRequest& WithInstanceInitiatedShutdownBehavior(const ShutdownBehavior& value) { SetInstanceInitiatedShutdownBehavior(value); return *this;} /** *

Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).

*

Default: stop

*/ inline RunInstancesRequest& WithInstanceInitiatedShutdownBehavior(ShutdownBehavior&& value) { SetInstanceInitiatedShutdownBehavior(std::move(value)); return *this;} /** *

The network interfaces to associate with the instance. If you specify a * network interface, you must specify any security groups and subnets as part of * the network interface.

*/ inline const Aws::Vector& GetNetworkInterfaces() const{ return m_networkInterfaces; } /** *

The network interfaces to associate with the instance. If you specify a * network interface, you must specify any security groups and subnets as part of * the network interface.

*/ inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; } /** *

The network interfaces to associate with the instance. If you specify a * network interface, you must specify any security groups and subnets as part of * the network interface.

*/ inline void SetNetworkInterfaces(const Aws::Vector& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; } /** *

The network interfaces to associate with the instance. If you specify a * network interface, you must specify any security groups and subnets as part of * the network interface.

*/ inline void SetNetworkInterfaces(Aws::Vector&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); } /** *

The network interfaces to associate with the instance. If you specify a * network interface, you must specify any security groups and subnets as part of * the network interface.

*/ inline RunInstancesRequest& WithNetworkInterfaces(const Aws::Vector& value) { SetNetworkInterfaces(value); return *this;} /** *

The network interfaces to associate with the instance. If you specify a * network interface, you must specify any security groups and subnets as part of * the network interface.

*/ inline RunInstancesRequest& WithNetworkInterfaces(Aws::Vector&& value) { SetNetworkInterfaces(std::move(value)); return *this;} /** *

The network interfaces to associate with the instance. If you specify a * network interface, you must specify any security groups and subnets as part of * the network interface.

*/ inline RunInstancesRequest& AddNetworkInterfaces(const InstanceNetworkInterfaceSpecification& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; } /** *

The network interfaces to associate with the instance. If you specify a * network interface, you must specify any security groups and subnets as part of * the network interface.

*/ inline RunInstancesRequest& AddNetworkInterfaces(InstanceNetworkInterfaceSpecification&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; } /** *

[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 * address range of the subnet.

Only one private IP address can be * designated as primary. You can't specify this option if you've specified the * option to designate a private IP address as the primary IP address in a network * interface specification. You cannot specify this option if you're launching more * than one instance in the request.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; } /** *

[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 * address range of the subnet.

Only one private IP address can be * designated as primary. You can't specify this option if you've specified the * option to designate a private IP address as the primary IP address in a network * interface specification. You cannot specify this option if you're launching more * than one instance in the request.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; } /** *

[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 * address range of the subnet.

Only one private IP address can be * designated as primary. You can't specify this option if you've specified the * option to designate a private IP address as the primary IP address in a network * interface specification. You cannot specify this option if you're launching more * than one instance in the request.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; } /** *

[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 * address range of the subnet.

Only one private IP address can be * designated as primary. You can't specify this option if you've specified the * option to designate a private IP address as the primary IP address in a network * interface specification. You cannot specify this option if you're launching more * than one instance in the request.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); } /** *

[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 * address range of the subnet.

Only one private IP address can be * designated as primary. You can't specify this option if you've specified the * option to designate a private IP address as the primary IP address in a network * interface specification. You cannot specify this option if you're launching more * than one instance in the request.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); } /** *

[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 * address range of the subnet.

Only one private IP address can be * designated as primary. You can't specify this option if you've specified the * option to designate a private IP address as the primary IP address in a network * interface specification. You cannot specify this option if you're launching more * than one instance in the request.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline RunInstancesRequest& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *

[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 * address range of the subnet.

Only one private IP address can be * designated as primary. You can't specify this option if you've specified the * option to designate a private IP address as the primary IP address in a network * interface specification. You cannot specify this option if you're launching more * than one instance in the request.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline RunInstancesRequest& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *

[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 * address range of the subnet.

Only one private IP address can be * designated as primary. You can't specify this option if you've specified the * option to designate a private IP address as the primary IP address in a network * interface specification. You cannot specify this option if you're launching more * than one instance in the request.

You cannot specify this option and the * network interfaces option in the same request.

*/ inline RunInstancesRequest& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} /** *

An elastic GPU to associate with the instance. An Elastic GPU is a GPU * resource that you can attach to your Windows instance to accelerate the graphics * performance of your applications. For more information, see Amazon * EC2 Elastic GPUs in the Amazon EC2 User Guide.

*/ inline const Aws::Vector& GetElasticGpuSpecification() const{ return m_elasticGpuSpecification; } /** *

An elastic GPU to associate with the instance. An Elastic GPU is a GPU * resource that you can attach to your Windows instance to accelerate the graphics * performance of your applications. For more information, see Amazon * EC2 Elastic GPUs in the Amazon EC2 User Guide.

*/ inline bool ElasticGpuSpecificationHasBeenSet() const { return m_elasticGpuSpecificationHasBeenSet; } /** *

An elastic GPU to associate with the instance. An Elastic GPU is a GPU * resource that you can attach to your Windows instance to accelerate the graphics * performance of your applications. For more information, see Amazon * EC2 Elastic GPUs in the Amazon EC2 User Guide.

*/ inline void SetElasticGpuSpecification(const Aws::Vector& value) { m_elasticGpuSpecificationHasBeenSet = true; m_elasticGpuSpecification = value; } /** *

An elastic GPU to associate with the instance. An Elastic GPU is a GPU * resource that you can attach to your Windows instance to accelerate the graphics * performance of your applications. For more information, see Amazon * EC2 Elastic GPUs in the Amazon EC2 User Guide.

*/ inline void SetElasticGpuSpecification(Aws::Vector&& value) { m_elasticGpuSpecificationHasBeenSet = true; m_elasticGpuSpecification = std::move(value); } /** *

An elastic GPU to associate with the instance. An Elastic GPU is a GPU * resource that you can attach to your Windows instance to accelerate the graphics * performance of your applications. For more information, see Amazon * EC2 Elastic GPUs in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithElasticGpuSpecification(const Aws::Vector& value) { SetElasticGpuSpecification(value); return *this;} /** *

An elastic GPU to associate with the instance. An Elastic GPU is a GPU * resource that you can attach to your Windows instance to accelerate the graphics * performance of your applications. For more information, see Amazon * EC2 Elastic GPUs in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithElasticGpuSpecification(Aws::Vector&& value) { SetElasticGpuSpecification(std::move(value)); return *this;} /** *

An elastic GPU to associate with the instance. An Elastic GPU is a GPU * resource that you can attach to your Windows instance to accelerate the graphics * performance of your applications. For more information, see Amazon * EC2 Elastic GPUs in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& AddElasticGpuSpecification(const ElasticGpuSpecification& value) { m_elasticGpuSpecificationHasBeenSet = true; m_elasticGpuSpecification.push_back(value); return *this; } /** *

An elastic GPU to associate with the instance. An Elastic GPU is a GPU * resource that you can attach to your Windows instance to accelerate the graphics * performance of your applications. For more information, see Amazon * EC2 Elastic GPUs in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& AddElasticGpuSpecification(ElasticGpuSpecification&& value) { m_elasticGpuSpecificationHasBeenSet = true; m_elasticGpuSpecification.push_back(std::move(value)); return *this; } /** *

An elastic inference accelerator to associate with the instance. Elastic * inference accelerators are a resource you can attach to your Amazon EC2 * instances to accelerate your Deep Learning (DL) inference workloads.

You * cannot specify accelerators from different generations in the same request.

*/ inline const Aws::Vector& GetElasticInferenceAccelerators() const{ return m_elasticInferenceAccelerators; } /** *

An elastic inference accelerator to associate with the instance. Elastic * inference accelerators are a resource you can attach to your Amazon EC2 * instances to accelerate your Deep Learning (DL) inference workloads.

You * cannot specify accelerators from different generations in the same request.

*/ inline bool ElasticInferenceAcceleratorsHasBeenSet() const { return m_elasticInferenceAcceleratorsHasBeenSet; } /** *

An elastic inference accelerator to associate with the instance. Elastic * inference accelerators are a resource you can attach to your Amazon EC2 * instances to accelerate your Deep Learning (DL) inference workloads.

You * cannot specify accelerators from different generations in the same request.

*/ inline void SetElasticInferenceAccelerators(const Aws::Vector& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators = value; } /** *

An elastic inference accelerator to associate with the instance. Elastic * inference accelerators are a resource you can attach to your Amazon EC2 * instances to accelerate your Deep Learning (DL) inference workloads.

You * cannot specify accelerators from different generations in the same request.

*/ inline void SetElasticInferenceAccelerators(Aws::Vector&& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators = std::move(value); } /** *

An elastic inference accelerator to associate with the instance. Elastic * inference accelerators are a resource you can attach to your Amazon EC2 * instances to accelerate your Deep Learning (DL) inference workloads.

You * cannot specify accelerators from different generations in the same request.

*/ inline RunInstancesRequest& WithElasticInferenceAccelerators(const Aws::Vector& value) { SetElasticInferenceAccelerators(value); return *this;} /** *

An elastic inference accelerator to associate with the instance. Elastic * inference accelerators are a resource you can attach to your Amazon EC2 * instances to accelerate your Deep Learning (DL) inference workloads.

You * cannot specify accelerators from different generations in the same request.

*/ inline RunInstancesRequest& WithElasticInferenceAccelerators(Aws::Vector&& value) { SetElasticInferenceAccelerators(std::move(value)); return *this;} /** *

An elastic inference accelerator to associate with the instance. Elastic * inference accelerators are a resource you can attach to your Amazon EC2 * instances to accelerate your Deep Learning (DL) inference workloads.

You * cannot specify accelerators from different generations in the same request.

*/ inline RunInstancesRequest& AddElasticInferenceAccelerators(const ElasticInferenceAccelerator& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators.push_back(value); return *this; } /** *

An elastic inference accelerator to associate with the instance. Elastic * inference accelerators are a resource you can attach to your Amazon EC2 * instances to accelerate your Deep Learning (DL) inference workloads.

You * cannot specify accelerators from different generations in the same request.

*/ inline RunInstancesRequest& AddElasticInferenceAccelerators(ElasticInferenceAccelerator&& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators.push_back(std::move(value)); return *this; } /** *

The tags to apply to the resources during launch. You can only tag instances * and volumes on launch. The specified tags are applied to all instances or * volumes that are created during launch. To tag a resource after it has been * created, see CreateTags.

*/ inline const Aws::Vector& GetTagSpecifications() const{ return m_tagSpecifications; } /** *

The tags to apply to the resources during launch. You can only tag instances * and volumes on launch. The specified tags are applied to all instances or * volumes that are created during launch. To tag a resource after it has been * created, see CreateTags.

*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *

The tags to apply to the resources during launch. You can only tag instances * and volumes on launch. The specified tags are applied to all instances or * volumes that are created during launch. To tag a resource after it has been * created, see CreateTags.

*/ inline void SetTagSpecifications(const Aws::Vector& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; } /** *

The tags to apply to the resources during launch. You can only tag instances * and volumes on launch. The specified tags are applied to all instances or * volumes that are created during launch. To tag a resource after it has been * created, see CreateTags.

*/ inline void SetTagSpecifications(Aws::Vector&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); } /** *

The tags to apply to the resources during launch. You can only tag instances * and volumes on launch. The specified tags are applied to all instances or * volumes that are created during launch. To tag a resource after it has been * created, see CreateTags.

*/ inline RunInstancesRequest& WithTagSpecifications(const Aws::Vector& value) { SetTagSpecifications(value); return *this;} /** *

The tags to apply to the resources during launch. You can only tag instances * and volumes on launch. The specified tags are applied to all instances or * volumes that are created during launch. To tag a resource after it has been * created, see CreateTags.

*/ inline RunInstancesRequest& WithTagSpecifications(Aws::Vector&& value) { SetTagSpecifications(std::move(value)); return *this;} /** *

The tags to apply to the resources during launch. You can only tag instances * and volumes on launch. The specified tags are applied to all instances or * volumes that are created during launch. To tag a resource after it has been * created, see CreateTags.

*/ inline RunInstancesRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *

The tags to apply to the resources during launch. You can only tag instances * and volumes on launch. The specified tags are applied to all instances or * volumes that are created during launch. To tag a resource after it has been * created, see CreateTags.

*/ inline RunInstancesRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } /** *

The launch template to use to launch the instances. Any parameters that you * specify in RunInstances override the same parameters in the launch * template. You can specify either the name or ID of a launch template, but not * both.

*/ inline const LaunchTemplateSpecification& GetLaunchTemplate() const{ return m_launchTemplate; } /** *

The launch template to use to launch the instances. Any parameters that you * specify in RunInstances override the same parameters in the launch * template. You can specify either the name or ID of a launch template, but not * both.

*/ inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; } /** *

The launch template to use to launch the instances. Any parameters that you * specify in RunInstances override the same parameters in the launch * template. You can specify either the name or ID of a launch template, but not * both.

*/ inline void SetLaunchTemplate(const LaunchTemplateSpecification& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = value; } /** *

The launch template to use to launch the instances. Any parameters that you * specify in RunInstances override the same parameters in the launch * template. You can specify either the name or ID of a launch template, but not * both.

*/ inline void SetLaunchTemplate(LaunchTemplateSpecification&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::move(value); } /** *

The launch template to use to launch the instances. Any parameters that you * specify in RunInstances override the same parameters in the launch * template. You can specify either the name or ID of a launch template, but not * both.

*/ inline RunInstancesRequest& WithLaunchTemplate(const LaunchTemplateSpecification& value) { SetLaunchTemplate(value); return *this;} /** *

The launch template to use to launch the instances. Any parameters that you * specify in RunInstances override the same parameters in the launch * template. You can specify either the name or ID of a launch template, but not * both.

*/ inline RunInstancesRequest& WithLaunchTemplate(LaunchTemplateSpecification&& value) { SetLaunchTemplate(std::move(value)); return *this;} /** *

The market (purchasing) option for the instances.

For * RunInstances, persistent Spot Instance requests are only supported when * InstanceInterruptionBehavior is set to either hibernate or * stop.

*/ inline const InstanceMarketOptionsRequest& GetInstanceMarketOptions() const{ return m_instanceMarketOptions; } /** *

The market (purchasing) option for the instances.

For * RunInstances, persistent Spot Instance requests are only supported when * InstanceInterruptionBehavior is set to either hibernate or * stop.

*/ inline bool InstanceMarketOptionsHasBeenSet() const { return m_instanceMarketOptionsHasBeenSet; } /** *

The market (purchasing) option for the instances.

For * RunInstances, persistent Spot Instance requests are only supported when * InstanceInterruptionBehavior is set to either hibernate or * stop.

*/ inline void SetInstanceMarketOptions(const InstanceMarketOptionsRequest& value) { m_instanceMarketOptionsHasBeenSet = true; m_instanceMarketOptions = value; } /** *

The market (purchasing) option for the instances.

For * RunInstances, persistent Spot Instance requests are only supported when * InstanceInterruptionBehavior is set to either hibernate or * stop.

*/ inline void SetInstanceMarketOptions(InstanceMarketOptionsRequest&& value) { m_instanceMarketOptionsHasBeenSet = true; m_instanceMarketOptions = std::move(value); } /** *

The market (purchasing) option for the instances.

For * RunInstances, persistent Spot Instance requests are only supported when * InstanceInterruptionBehavior is set to either hibernate or * stop.

*/ inline RunInstancesRequest& WithInstanceMarketOptions(const InstanceMarketOptionsRequest& value) { SetInstanceMarketOptions(value); return *this;} /** *

The market (purchasing) option for the instances.

For * RunInstances, persistent Spot Instance requests are only supported when * InstanceInterruptionBehavior is set to either hibernate or * stop.

*/ inline RunInstancesRequest& WithInstanceMarketOptions(InstanceMarketOptionsRequest&& value) { SetInstanceMarketOptions(std::move(value)); return *this;} /** *

The credit option for CPU usage of the burstable performance instance. Valid * values are standard and unlimited. To change this * attribute after launch, use * ModifyInstanceCreditSpecification. For more information, see Burstable * performance instances in the Amazon EC2 User Guide.

Default: * standard (T2 instances) or unlimited (T3/T3a * instances)

For T3 instances with host tenancy, only * standard is supported.

*/ inline const CreditSpecificationRequest& GetCreditSpecification() const{ return m_creditSpecification; } /** *

The credit option for CPU usage of the burstable performance instance. Valid * values are standard and unlimited. To change this * attribute after launch, use * ModifyInstanceCreditSpecification. For more information, see Burstable * performance instances in the Amazon EC2 User Guide.

Default: * standard (T2 instances) or unlimited (T3/T3a * instances)

For T3 instances with host tenancy, only * standard is supported.

*/ inline bool CreditSpecificationHasBeenSet() const { return m_creditSpecificationHasBeenSet; } /** *

The credit option for CPU usage of the burstable performance instance. Valid * values are standard and unlimited. To change this * attribute after launch, use * ModifyInstanceCreditSpecification. For more information, see Burstable * performance instances in the Amazon EC2 User Guide.

Default: * standard (T2 instances) or unlimited (T3/T3a * instances)

For T3 instances with host tenancy, only * standard is supported.

*/ inline void SetCreditSpecification(const CreditSpecificationRequest& value) { m_creditSpecificationHasBeenSet = true; m_creditSpecification = value; } /** *

The credit option for CPU usage of the burstable performance instance. Valid * values are standard and unlimited. To change this * attribute after launch, use * ModifyInstanceCreditSpecification. For more information, see Burstable * performance instances in the Amazon EC2 User Guide.

Default: * standard (T2 instances) or unlimited (T3/T3a * instances)

For T3 instances with host tenancy, only * standard is supported.

*/ inline void SetCreditSpecification(CreditSpecificationRequest&& value) { m_creditSpecificationHasBeenSet = true; m_creditSpecification = std::move(value); } /** *

The credit option for CPU usage of the burstable performance instance. Valid * values are standard and unlimited. To change this * attribute after launch, use * ModifyInstanceCreditSpecification. For more information, see Burstable * performance instances in the Amazon EC2 User Guide.

Default: * standard (T2 instances) or unlimited (T3/T3a * instances)

For T3 instances with host tenancy, only * standard is supported.

*/ inline RunInstancesRequest& WithCreditSpecification(const CreditSpecificationRequest& value) { SetCreditSpecification(value); return *this;} /** *

The credit option for CPU usage of the burstable performance instance. Valid * values are standard and unlimited. To change this * attribute after launch, use * ModifyInstanceCreditSpecification. For more information, see Burstable * performance instances in the Amazon EC2 User Guide.

Default: * standard (T2 instances) or unlimited (T3/T3a * instances)

For T3 instances with host tenancy, only * standard is supported.

*/ inline RunInstancesRequest& WithCreditSpecification(CreditSpecificationRequest&& value) { SetCreditSpecification(std::move(value)); return *this;} /** *

The CPU options for the instance. For more information, see Optimizing * CPU options in the Amazon EC2 User Guide.

*/ inline const CpuOptionsRequest& GetCpuOptions() const{ return m_cpuOptions; } /** *

The CPU options for the instance. For more information, see Optimizing * CPU options in the Amazon EC2 User Guide.

*/ inline bool CpuOptionsHasBeenSet() const { return m_cpuOptionsHasBeenSet; } /** *

The CPU options for the instance. For more information, see Optimizing * CPU options in the Amazon EC2 User Guide.

*/ inline void SetCpuOptions(const CpuOptionsRequest& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = value; } /** *

The CPU options for the instance. For more information, see Optimizing * CPU options in the Amazon EC2 User Guide.

*/ inline void SetCpuOptions(CpuOptionsRequest&& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = std::move(value); } /** *

The CPU options for the instance. For more information, see Optimizing * CPU options in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithCpuOptions(const CpuOptionsRequest& value) { SetCpuOptions(value); return *this;} /** *

The CPU options for the instance. For more information, see Optimizing * CPU options in the Amazon EC2 User Guide.

*/ inline RunInstancesRequest& WithCpuOptions(CpuOptionsRequest&& value) { SetCpuOptions(std::move(value)); return *this;} /** *

Information about the Capacity Reservation targeting option. If you do not * specify this parameter, the instance's Capacity Reservation preference defaults * to open, which enables it to run in any open Capacity Reservation * that has matching attributes (instance type, platform, Availability Zone).

*/ inline const CapacityReservationSpecification& GetCapacityReservationSpecification() const{ return m_capacityReservationSpecification; } /** *

Information about the Capacity Reservation targeting option. If you do not * specify this parameter, the instance's Capacity Reservation preference defaults * to open, which enables it to run in any open Capacity Reservation * that has matching attributes (instance type, platform, Availability Zone).

*/ inline bool CapacityReservationSpecificationHasBeenSet() const { return m_capacityReservationSpecificationHasBeenSet; } /** *

Information about the Capacity Reservation targeting option. If you do not * specify this parameter, the instance's Capacity Reservation preference defaults * to open, which enables it to run in any open Capacity Reservation * that has matching attributes (instance type, platform, Availability Zone).

*/ inline void SetCapacityReservationSpecification(const CapacityReservationSpecification& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = value; } /** *

Information about the Capacity Reservation targeting option. If you do not * specify this parameter, the instance's Capacity Reservation preference defaults * to open, which enables it to run in any open Capacity Reservation * that has matching attributes (instance type, platform, Availability Zone).

*/ inline void SetCapacityReservationSpecification(CapacityReservationSpecification&& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = std::move(value); } /** *

Information about the Capacity Reservation targeting option. If you do not * specify this parameter, the instance's Capacity Reservation preference defaults * to open, which enables it to run in any open Capacity Reservation * that has matching attributes (instance type, platform, Availability Zone).

*/ inline RunInstancesRequest& WithCapacityReservationSpecification(const CapacityReservationSpecification& value) { SetCapacityReservationSpecification(value); return *this;} /** *

Information about the Capacity Reservation targeting option. If you do not * specify this parameter, the instance's Capacity Reservation preference defaults * to open, which enables it to run in any open Capacity Reservation * that has matching attributes (instance type, platform, Availability Zone).

*/ inline RunInstancesRequest& WithCapacityReservationSpecification(CapacityReservationSpecification&& value) { SetCapacityReservationSpecification(std::move(value)); return *this;} /** *

Indicates whether an instance is enabled for hibernation. For more * information, see Hibernate * your instance in the Amazon EC2 User Guide.

You can't enable * hibernation and Amazon Web Services Nitro Enclaves on the same instance.

*/ inline const HibernationOptionsRequest& GetHibernationOptions() const{ return m_hibernationOptions; } /** *

Indicates whether an instance is enabled for hibernation. For more * information, see Hibernate * your instance in the Amazon EC2 User Guide.

You can't enable * hibernation and Amazon Web Services Nitro Enclaves on the same instance.

*/ inline bool HibernationOptionsHasBeenSet() const { return m_hibernationOptionsHasBeenSet; } /** *

Indicates whether an instance is enabled for hibernation. For more * information, see Hibernate * your instance in the Amazon EC2 User Guide.

You can't enable * hibernation and Amazon Web Services Nitro Enclaves on the same instance.

*/ inline void SetHibernationOptions(const HibernationOptionsRequest& value) { m_hibernationOptionsHasBeenSet = true; m_hibernationOptions = value; } /** *

Indicates whether an instance is enabled for hibernation. For more * information, see Hibernate * your instance in the Amazon EC2 User Guide.

You can't enable * hibernation and Amazon Web Services Nitro Enclaves on the same instance.

*/ inline void SetHibernationOptions(HibernationOptionsRequest&& value) { m_hibernationOptionsHasBeenSet = true; m_hibernationOptions = std::move(value); } /** *

Indicates whether an instance is enabled for hibernation. For more * information, see Hibernate * your instance in the Amazon EC2 User Guide.

You can't enable * hibernation and Amazon Web Services Nitro Enclaves on the same instance.

*/ inline RunInstancesRequest& WithHibernationOptions(const HibernationOptionsRequest& value) { SetHibernationOptions(value); return *this;} /** *

Indicates whether an instance is enabled for hibernation. For more * information, see Hibernate * your instance in the Amazon EC2 User Guide.

You can't enable * hibernation and Amazon Web Services Nitro Enclaves on the same instance.

*/ inline RunInstancesRequest& WithHibernationOptions(HibernationOptionsRequest&& value) { SetHibernationOptions(std::move(value)); return *this;} /** *

The license configurations.

*/ inline const Aws::Vector& GetLicenseSpecifications() const{ return m_licenseSpecifications; } /** *

The license configurations.

*/ inline bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; } /** *

The license configurations.

*/ inline void SetLicenseSpecifications(const Aws::Vector& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications = value; } /** *

The license configurations.

*/ inline void SetLicenseSpecifications(Aws::Vector&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications = std::move(value); } /** *

The license configurations.

*/ inline RunInstancesRequest& WithLicenseSpecifications(const Aws::Vector& value) { SetLicenseSpecifications(value); return *this;} /** *

The license configurations.

*/ inline RunInstancesRequest& WithLicenseSpecifications(Aws::Vector&& value) { SetLicenseSpecifications(std::move(value)); return *this;} /** *

The license configurations.

*/ inline RunInstancesRequest& AddLicenseSpecifications(const LicenseConfigurationRequest& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(value); return *this; } /** *

The license configurations.

*/ inline RunInstancesRequest& AddLicenseSpecifications(LicenseConfigurationRequest&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(std::move(value)); return *this; } /** *

The metadata options for the instance. For more information, see Instance * metadata and user data.

*/ inline const InstanceMetadataOptionsRequest& GetMetadataOptions() const{ return m_metadataOptions; } /** *

The metadata options for the instance. For more information, see Instance * metadata and user data.

*/ inline bool MetadataOptionsHasBeenSet() const { return m_metadataOptionsHasBeenSet; } /** *

The metadata options for the instance. For more information, see Instance * metadata and user data.

*/ inline void SetMetadataOptions(const InstanceMetadataOptionsRequest& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = value; } /** *

The metadata options for the instance. For more information, see Instance * metadata and user data.

*/ inline void SetMetadataOptions(InstanceMetadataOptionsRequest&& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = std::move(value); } /** *

The metadata options for the instance. For more information, see Instance * metadata and user data.

*/ inline RunInstancesRequest& WithMetadataOptions(const InstanceMetadataOptionsRequest& value) { SetMetadataOptions(value); return *this;} /** *

The metadata options for the instance. For more information, see Instance * metadata and user data.

*/ inline RunInstancesRequest& WithMetadataOptions(InstanceMetadataOptionsRequest&& value) { SetMetadataOptions(std::move(value)); return *this;} /** *

Indicates whether the instance is enabled for Amazon Web Services Nitro * Enclaves. For more information, see What * is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro * Enclaves User Guide.

You can't enable Amazon Web Services Nitro * Enclaves and hibernation on the same instance.

*/ inline const EnclaveOptionsRequest& GetEnclaveOptions() const{ return m_enclaveOptions; } /** *

Indicates whether the instance is enabled for Amazon Web Services Nitro * Enclaves. For more information, see What * is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro * Enclaves User Guide.

You can't enable Amazon Web Services Nitro * Enclaves and hibernation on the same instance.

*/ inline bool EnclaveOptionsHasBeenSet() const { return m_enclaveOptionsHasBeenSet; } /** *

Indicates whether the instance is enabled for Amazon Web Services Nitro * Enclaves. For more information, see What * is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro * Enclaves User Guide.

You can't enable Amazon Web Services Nitro * Enclaves and hibernation on the same instance.

*/ inline void SetEnclaveOptions(const EnclaveOptionsRequest& value) { m_enclaveOptionsHasBeenSet = true; m_enclaveOptions = value; } /** *

Indicates whether the instance is enabled for Amazon Web Services Nitro * Enclaves. For more information, see What * is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro * Enclaves User Guide.

You can't enable Amazon Web Services Nitro * Enclaves and hibernation on the same instance.

*/ inline void SetEnclaveOptions(EnclaveOptionsRequest&& value) { m_enclaveOptionsHasBeenSet = true; m_enclaveOptions = std::move(value); } /** *

Indicates whether the instance is enabled for Amazon Web Services Nitro * Enclaves. For more information, see What * is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro * Enclaves User Guide.

You can't enable Amazon Web Services Nitro * Enclaves and hibernation on the same instance.

*/ inline RunInstancesRequest& WithEnclaveOptions(const EnclaveOptionsRequest& value) { SetEnclaveOptions(value); return *this;} /** *

Indicates whether the instance is enabled for Amazon Web Services Nitro * Enclaves. For more information, see What * is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro * Enclaves User Guide.

You can't enable Amazon Web Services Nitro * Enclaves and hibernation on the same instance.

*/ inline RunInstancesRequest& WithEnclaveOptions(EnclaveOptionsRequest&& value) { SetEnclaveOptions(std::move(value)); return *this;} private: Aws::Vector m_blockDeviceMappings; bool m_blockDeviceMappingsHasBeenSet; Aws::String m_imageId; bool m_imageIdHasBeenSet; InstanceType m_instanceType; bool m_instanceTypeHasBeenSet; int m_ipv6AddressCount; bool m_ipv6AddressCountHasBeenSet; Aws::Vector m_ipv6Addresses; bool m_ipv6AddressesHasBeenSet; Aws::String m_kernelId; bool m_kernelIdHasBeenSet; Aws::String m_keyName; bool m_keyNameHasBeenSet; int m_maxCount; bool m_maxCountHasBeenSet; int m_minCount; bool m_minCountHasBeenSet; RunInstancesMonitoringEnabled m_monitoring; bool m_monitoringHasBeenSet; Placement m_placement; bool m_placementHasBeenSet; Aws::String m_ramdiskId; bool m_ramdiskIdHasBeenSet; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet; Aws::String m_subnetId; bool m_subnetIdHasBeenSet; Aws::String m_userData; bool m_userDataHasBeenSet; Aws::String m_additionalInfo; bool m_additionalInfoHasBeenSet; Aws::String m_clientToken; bool m_clientTokenHasBeenSet; bool m_disableApiTermination; bool m_disableApiTerminationHasBeenSet; bool m_dryRun; bool m_dryRunHasBeenSet; bool m_ebsOptimized; bool m_ebsOptimizedHasBeenSet; IamInstanceProfileSpecification m_iamInstanceProfile; bool m_iamInstanceProfileHasBeenSet; ShutdownBehavior m_instanceInitiatedShutdownBehavior; bool m_instanceInitiatedShutdownBehaviorHasBeenSet; Aws::Vector m_networkInterfaces; bool m_networkInterfacesHasBeenSet; Aws::String m_privateIpAddress; bool m_privateIpAddressHasBeenSet; Aws::Vector m_elasticGpuSpecification; bool m_elasticGpuSpecificationHasBeenSet; Aws::Vector m_elasticInferenceAccelerators; bool m_elasticInferenceAcceleratorsHasBeenSet; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet; LaunchTemplateSpecification m_launchTemplate; bool m_launchTemplateHasBeenSet; InstanceMarketOptionsRequest m_instanceMarketOptions; bool m_instanceMarketOptionsHasBeenSet; CreditSpecificationRequest m_creditSpecification; bool m_creditSpecificationHasBeenSet; CpuOptionsRequest m_cpuOptions; bool m_cpuOptionsHasBeenSet; CapacityReservationSpecification m_capacityReservationSpecification; bool m_capacityReservationSpecificationHasBeenSet; HibernationOptionsRequest m_hibernationOptions; bool m_hibernationOptionsHasBeenSet; Aws::Vector m_licenseSpecifications; bool m_licenseSpecificationsHasBeenSet; InstanceMetadataOptionsRequest m_metadataOptions; bool m_metadataOptionsHasBeenSet; EnclaveOptionsRequest m_enclaveOptions; bool m_enclaveOptionsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws