/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the launch specification for an instance.See Also:
* AWS
* API Reference
The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline const Aws::String& GetUserData() const{ return m_userData; } /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; } /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; } /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); } /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); } /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline LaunchSpecification& WithUserData(const Aws::String& value) { SetUserData(value); return *this;} /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline LaunchSpecification& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;} /** *The base64-encoded user data that instances use when starting up. User data * is limited to 16 KB.
*/ inline LaunchSpecification& WithUserData(const char* value) { SetUserData(value); return *this;} /** *The IDs of the security groups.
*/ inline const Aws::VectorThe IDs of the security groups.
*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *The IDs of the security groups.
*/ inline void SetSecurityGroups(const Aws::VectorThe IDs of the security groups.
*/ inline void SetSecurityGroups(Aws::VectorThe IDs of the security groups.
*/ inline LaunchSpecification& WithSecurityGroups(const Aws::VectorThe IDs of the security groups.
*/ inline LaunchSpecification& WithSecurityGroups(Aws::VectorThe IDs of the security groups.
*/ inline LaunchSpecification& AddSecurityGroups(const GroupIdentifier& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *The IDs of the security groups.
*/ inline LaunchSpecification& AddSecurityGroups(GroupIdentifier&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *Deprecated.
*/ inline const Aws::String& GetAddressingType() const{ return m_addressingType; } /** *Deprecated.
*/ inline bool AddressingTypeHasBeenSet() const { return m_addressingTypeHasBeenSet; } /** *Deprecated.
*/ inline void SetAddressingType(const Aws::String& value) { m_addressingTypeHasBeenSet = true; m_addressingType = value; } /** *Deprecated.
*/ inline void SetAddressingType(Aws::String&& value) { m_addressingTypeHasBeenSet = true; m_addressingType = std::move(value); } /** *Deprecated.
*/ inline void SetAddressingType(const char* value) { m_addressingTypeHasBeenSet = true; m_addressingType.assign(value); } /** *Deprecated.
*/ inline LaunchSpecification& WithAddressingType(const Aws::String& value) { SetAddressingType(value); return *this;} /** *Deprecated.
*/ inline LaunchSpecification& WithAddressingType(Aws::String&& value) { SetAddressingType(std::move(value)); return *this;} /** *Deprecated.
*/ inline LaunchSpecification& WithAddressingType(const char* value) { SetAddressingType(value); return *this;} /** *The block device mapping entries.
*/ inline const Aws::VectorThe block device mapping entries.
*/ inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; } /** *The block device mapping entries.
*/ inline void SetBlockDeviceMappings(const Aws::VectorThe block device mapping entries.
*/ inline void SetBlockDeviceMappings(Aws::VectorThe block device mapping entries.
*/ inline LaunchSpecification& WithBlockDeviceMappings(const Aws::VectorThe block device mapping entries.
*/ inline LaunchSpecification& WithBlockDeviceMappings(Aws::VectorThe block device mapping entries.
*/ inline LaunchSpecification& AddBlockDeviceMappings(const BlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; } /** *The block device mapping entries.
*/ inline LaunchSpecification& AddBlockDeviceMappings(BlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; } /** *Indicates whether the instance is optimized for EBS I/O. This optimization * provides dedicated throughput to Amazon EBS and an optimized configuration stack * to provide optimal 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
Indicates whether the instance is optimized for EBS I/O. This optimization * provides dedicated throughput to Amazon EBS and an optimized configuration stack * to provide optimal 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
Indicates whether the instance is optimized for EBS I/O. This optimization * provides dedicated throughput to Amazon EBS and an optimized configuration stack * to provide optimal 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
Indicates whether the instance is optimized for EBS I/O. This optimization * provides dedicated throughput to Amazon EBS and an optimized configuration stack * to provide optimal 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
The IAM instance profile.
*/ inline const IamInstanceProfileSpecification& GetIamInstanceProfile() const{ return m_iamInstanceProfile; } /** *The IAM instance profile.
*/ inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; } /** *The IAM instance profile.
*/ inline void SetIamInstanceProfile(const IamInstanceProfileSpecification& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; } /** *The IAM instance profile.
*/ inline void SetIamInstanceProfile(IamInstanceProfileSpecification&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); } /** *The IAM instance profile.
*/ inline LaunchSpecification& WithIamInstanceProfile(const IamInstanceProfileSpecification& value) { SetIamInstanceProfile(value); return *this;} /** *The IAM instance profile.
*/ inline LaunchSpecification& WithIamInstanceProfile(IamInstanceProfileSpecification&& value) { SetIamInstanceProfile(std::move(value)); return *this;} /** *The ID of the AMI.
*/ inline const Aws::String& GetImageId() const{ return m_imageId; } /** *The ID of the AMI.
*/ inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; } /** *The ID of the AMI.
*/ inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; } /** *The ID of the AMI.
*/ inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); } /** *The ID of the AMI.
*/ inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); } /** *The ID of the AMI.
*/ inline LaunchSpecification& WithImageId(const Aws::String& value) { SetImageId(value); return *this;} /** *The ID of the AMI.
*/ inline LaunchSpecification& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;} /** *The ID of the AMI.
*/ inline LaunchSpecification& WithImageId(const char* value) { SetImageId(value); return *this;} /** *The instance type. Only one instance type can be specified.
*/ inline const InstanceType& GetInstanceType() const{ return m_instanceType; } /** *The instance type. Only one instance type can be specified.
*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *The instance type. Only one instance type can be specified.
*/ inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *The instance type. Only one instance type can be specified.
*/ inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *The instance type. Only one instance type can be specified.
*/ inline LaunchSpecification& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;} /** *The instance type. Only one instance type can be specified.
*/ inline LaunchSpecification& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *The ID of the kernel.
*/ inline const Aws::String& GetKernelId() const{ return m_kernelId; } /** *The ID of the kernel.
*/ inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; } /** *The ID of the kernel.
*/ inline void SetKernelId(const Aws::String& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; } /** *The ID of the kernel.
*/ inline void SetKernelId(Aws::String&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::move(value); } /** *The ID of the kernel.
*/ inline void SetKernelId(const char* value) { m_kernelIdHasBeenSet = true; m_kernelId.assign(value); } /** *The ID of the kernel.
*/ inline LaunchSpecification& WithKernelId(const Aws::String& value) { SetKernelId(value); return *this;} /** *The ID of the kernel.
*/ inline LaunchSpecification& WithKernelId(Aws::String&& value) { SetKernelId(std::move(value)); return *this;} /** *The ID of the kernel.
*/ inline LaunchSpecification& WithKernelId(const char* value) { SetKernelId(value); return *this;} /** *The name of the key pair.
*/ inline const Aws::String& GetKeyName() const{ return m_keyName; } /** *The name of the key pair.
*/ inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; } /** *The name of the key pair.
*/ inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; } /** *The name of the key pair.
*/ inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); } /** *The name of the key pair.
*/ inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); } /** *The name of the key pair.
*/ inline LaunchSpecification& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *The name of the key pair.
*/ inline LaunchSpecification& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *The name of the key pair.
*/ inline LaunchSpecification& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *The network interfaces. If you specify a network interface, you must specify * subnet IDs and security group IDs using the network interface.
*/ inline const Aws::VectorThe network interfaces. If you specify a network interface, you must specify * subnet IDs and security group IDs using the network interface.
*/ inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; } /** *The network interfaces. If you specify a network interface, you must specify * subnet IDs and security group IDs using the network interface.
*/ inline void SetNetworkInterfaces(const Aws::VectorThe network interfaces. If you specify a network interface, you must specify * subnet IDs and security group IDs using the network interface.
*/ inline void SetNetworkInterfaces(Aws::VectorThe network interfaces. If you specify a network interface, you must specify * subnet IDs and security group IDs using the network interface.
*/ inline LaunchSpecification& WithNetworkInterfaces(const Aws::VectorThe network interfaces. If you specify a network interface, you must specify * subnet IDs and security group IDs using the network interface.
*/ inline LaunchSpecification& WithNetworkInterfaces(Aws::VectorThe network interfaces. If you specify a network interface, you must specify * subnet IDs and security group IDs using the network interface.
*/ inline LaunchSpecification& AddNetworkInterfaces(const InstanceNetworkInterfaceSpecification& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; } /** *The network interfaces. If you specify a network interface, you must specify * subnet IDs and security group IDs using the network interface.
*/ inline LaunchSpecification& AddNetworkInterfaces(InstanceNetworkInterfaceSpecification&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; } /** *The placement information for the instance.
*/ inline const SpotPlacement& GetPlacement() const{ return m_placement; } /** *The placement information for the instance.
*/ inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; } /** *The placement information for the instance.
*/ inline void SetPlacement(const SpotPlacement& value) { m_placementHasBeenSet = true; m_placement = value; } /** *The placement information for the instance.
*/ inline void SetPlacement(SpotPlacement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); } /** *The placement information for the instance.
*/ inline LaunchSpecification& WithPlacement(const SpotPlacement& value) { SetPlacement(value); return *this;} /** *The placement information for the instance.
*/ inline LaunchSpecification& WithPlacement(SpotPlacement&& value) { SetPlacement(std::move(value)); return *this;} /** *The ID of the RAM disk.
*/ inline const Aws::String& GetRamdiskId() const{ return m_ramdiskId; } /** *The ID of the RAM disk.
*/ inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; } /** *The ID of the RAM disk.
*/ inline void SetRamdiskId(const Aws::String& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = value; } /** *The ID of the RAM disk.
*/ inline void SetRamdiskId(Aws::String&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::move(value); } /** *The ID of the RAM disk.
*/ inline void SetRamdiskId(const char* value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId.assign(value); } /** *The ID of the RAM disk.
*/ inline LaunchSpecification& WithRamdiskId(const Aws::String& value) { SetRamdiskId(value); return *this;} /** *The ID of the RAM disk.
*/ inline LaunchSpecification& WithRamdiskId(Aws::String&& value) { SetRamdiskId(std::move(value)); return *this;} /** *The ID of the RAM disk.
*/ inline LaunchSpecification& WithRamdiskId(const char* value) { SetRamdiskId(value); return *this;} /** *The ID of the subnet in which to launch the instance.
*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *The ID of the subnet in which to launch the instance.
*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *The ID of the subnet in which to launch the instance.
*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *The ID of the subnet in which to launch the instance.
*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *The ID of the subnet in which to launch the instance.
*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *The ID of the subnet in which to launch the instance.
*/ inline LaunchSpecification& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The ID of the subnet in which to launch the instance.
*/ inline LaunchSpecification& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The ID of the subnet in which to launch the instance.
*/ inline LaunchSpecification& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} inline const RunInstancesMonitoringEnabled& GetMonitoring() const{ return m_monitoring; } inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; } inline void SetMonitoring(const RunInstancesMonitoringEnabled& value) { m_monitoringHasBeenSet = true; m_monitoring = value; } inline void SetMonitoring(RunInstancesMonitoringEnabled&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); } inline LaunchSpecification& WithMonitoring(const RunInstancesMonitoringEnabled& value) { SetMonitoring(value); return *this;} inline LaunchSpecification& WithMonitoring(RunInstancesMonitoringEnabled&& value) { SetMonitoring(std::move(value)); return *this;} private: Aws::String m_userData; bool m_userDataHasBeenSet = false; Aws::Vector