/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The information to include in the launch template.See Also:
* AWS
* API Reference
The ID of the kernel.
We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see User * Provided Kernels in the Amazon Elastic Compute Cloud 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 User * Provided Kernels in the Amazon Elastic Compute Cloud 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 User * Provided Kernels in the Amazon Elastic Compute Cloud 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 User * Provided Kernels in the Amazon Elastic Compute Cloud 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 User * Provided Kernels in the Amazon Elastic Compute Cloud 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 User * Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
* */ inline RequestLaunchTemplateData& 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 User * Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
* */ inline RequestLaunchTemplateData& 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 User * Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
* */ inline RequestLaunchTemplateData& WithKernelId(const char* value) { SetKernelId(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.
*/ 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.
*/ 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.
*/ 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.
*/ inline RequestLaunchTemplateData& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;} /** *The IAM instance profile.
*/ inline const LaunchTemplateIamInstanceProfileSpecificationRequest& GetIamInstanceProfile() const{ return m_iamInstanceProfile; } /** *The IAM instance profile.
*/ inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; } /** *The IAM instance profile.
*/ inline void SetIamInstanceProfile(const LaunchTemplateIamInstanceProfileSpecificationRequest& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; } /** *The IAM instance profile.
*/ inline void SetIamInstanceProfile(LaunchTemplateIamInstanceProfileSpecificationRequest&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); } /** *The IAM instance profile.
*/ inline RequestLaunchTemplateData& WithIamInstanceProfile(const LaunchTemplateIamInstanceProfileSpecificationRequest& value) { SetIamInstanceProfile(value); return *this;} /** *The IAM instance profile.
*/ inline RequestLaunchTemplateData& WithIamInstanceProfile(LaunchTemplateIamInstanceProfileSpecificationRequest&& value) { SetIamInstanceProfile(std::move(value)); return *this;} /** *The block device mapping.
*/ inline const Aws::VectorThe block device mapping.
*/ inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; } /** *The block device mapping.
*/ inline void SetBlockDeviceMappings(const Aws::VectorThe block device mapping.
*/ inline void SetBlockDeviceMappings(Aws::VectorThe block device mapping.
*/ inline RequestLaunchTemplateData& WithBlockDeviceMappings(const Aws::VectorThe block device mapping.
*/ inline RequestLaunchTemplateData& WithBlockDeviceMappings(Aws::VectorThe block device mapping.
*/ inline RequestLaunchTemplateData& AddBlockDeviceMappings(const LaunchTemplateBlockDeviceMappingRequest& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; } /** *The block device mapping.
*/ inline RequestLaunchTemplateData& AddBlockDeviceMappings(LaunchTemplateBlockDeviceMappingRequest&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; } /** *One or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline const Aws::VectorOne or more network interfaces. 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; } /** *One or more network interfaces. 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::VectorOne or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline void SetNetworkInterfaces(Aws::VectorOne or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline RequestLaunchTemplateData& WithNetworkInterfaces(const Aws::VectorOne or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline RequestLaunchTemplateData& WithNetworkInterfaces(Aws::VectorOne or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline RequestLaunchTemplateData& AddNetworkInterfaces(const LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; } /** *One or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline RequestLaunchTemplateData& AddNetworkInterfaces(LaunchTemplateInstanceNetworkInterfaceSpecificationRequest&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(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 RequestLaunchTemplateData& WithImageId(const Aws::String& value) { SetImageId(value); return *this;} /** *The ID of the AMI.
*/ inline RequestLaunchTemplateData& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;} /** *The ID of the AMI.
*/ inline RequestLaunchTemplateData& WithImageId(const char* value) { SetImageId(value); return *this;} /** *The instance type. For more information, see Instance * Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline const InstanceType& GetInstanceType() const{ return m_instanceType; } /** *The instance type. For more information, see Instance * Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *The instance type. For more information, see Instance * Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *The instance type. For more information, see Instance * Types in the Amazon Elastic Compute Cloud User Guide.
*/ 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 Elastic Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;} /** *The instance type. For more information, see Instance * Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithInstanceType(InstanceType&& value) { SetInstanceType(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 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 RequestLaunchTemplateData& 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 RequestLaunchTemplateData& 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 RequestLaunchTemplateData& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *The monitoring for the instance.
*/ inline const LaunchTemplatesMonitoringRequest& GetMonitoring() const{ return m_monitoring; } /** *The monitoring for the instance.
*/ inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; } /** *The monitoring for the instance.
*/ inline void SetMonitoring(const LaunchTemplatesMonitoringRequest& value) { m_monitoringHasBeenSet = true; m_monitoring = value; } /** *The monitoring for the instance.
*/ inline void SetMonitoring(LaunchTemplatesMonitoringRequest&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); } /** *The monitoring for the instance.
*/ inline RequestLaunchTemplateData& WithMonitoring(const LaunchTemplatesMonitoringRequest& value) { SetMonitoring(value); return *this;} /** *The monitoring for the instance.
*/ inline RequestLaunchTemplateData& WithMonitoring(LaunchTemplatesMonitoringRequest&& value) { SetMonitoring(std::move(value)); return *this;} /** *The placement for the instance.
*/ inline const LaunchTemplatePlacementRequest& 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 LaunchTemplatePlacementRequest& value) { m_placementHasBeenSet = true; m_placement = value; } /** *The placement for the instance.
*/ inline void SetPlacement(LaunchTemplatePlacementRequest&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); } /** *The placement for the instance.
*/ inline RequestLaunchTemplateData& WithPlacement(const LaunchTemplatePlacementRequest& value) { SetPlacement(value); return *this;} /** *The placement for the instance.
*/ inline RequestLaunchTemplateData& WithPlacement(LaunchTemplatePlacementRequest&& value) { SetPlacement(std::move(value)); return *this;} /** *The ID of the RAM disk.
We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see User * Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
* */ inline const Aws::String& GetRamDiskId() const{ return m_ramDiskId; } /** *The ID of the RAM disk.
We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see User * Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
* */ inline bool RamDiskIdHasBeenSet() const { return m_ramDiskIdHasBeenSet; } /** *The ID of the RAM disk.
We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see User * Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
* */ inline void SetRamDiskId(const Aws::String& value) { m_ramDiskIdHasBeenSet = true; m_ramDiskId = value; } /** *The ID of the RAM disk.
We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see User * Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
* */ inline void SetRamDiskId(Aws::String&& value) { m_ramDiskIdHasBeenSet = true; m_ramDiskId = std::move(value); } /** *The ID of the RAM disk.
We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see User * Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
* */ inline void SetRamDiskId(const char* value) { m_ramDiskIdHasBeenSet = true; m_ramDiskId.assign(value); } /** *The ID of the RAM disk.
We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see User * Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
* */ inline RequestLaunchTemplateData& WithRamDiskId(const Aws::String& value) { SetRamDiskId(value); return *this;} /** *The ID of the RAM disk.
We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see User * Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
* */ inline RequestLaunchTemplateData& WithRamDiskId(Aws::String&& value) { SetRamDiskId(std::move(value)); return *this;} /** *The ID of the RAM disk.
We recommend that you use PV-GRUB * instead of kernels and RAM disks. For more information, see User * Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
* */ inline RequestLaunchTemplateData& WithRamDiskId(const char* value) { SetRamDiskId(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.
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.
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.
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.
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
The Base64-encoded 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).
*/ inline const Aws::String& GetUserData() const{ return m_userData; } /** *The Base64-encoded 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).
*/ inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; } /** *The Base64-encoded 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).
*/ inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; } /** *The Base64-encoded 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).
*/ inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); } /** *The Base64-encoded 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).
*/ inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); } /** *The Base64-encoded 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).
*/ inline RequestLaunchTemplateData& WithUserData(const Aws::String& value) { SetUserData(value); return *this;} /** *The Base64-encoded 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).
*/ inline RequestLaunchTemplateData& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;} /** *The Base64-encoded 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).
*/ inline RequestLaunchTemplateData& WithUserData(const char* value) { SetUserData(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::VectorThe 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::VectorThe 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::VectorThe 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 RequestLaunchTemplateData& WithTagSpecifications(const Aws::VectorThe 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 RequestLaunchTemplateData& WithTagSpecifications(Aws::VectorThe 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 RequestLaunchTemplateData& AddTagSpecifications(const LaunchTemplateTagSpecificationRequest& 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 RequestLaunchTemplateData& AddTagSpecifications(LaunchTemplateTagSpecificationRequest&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } /** *An elastic GPU to associate with the instance.
*/ inline const Aws::VectorAn elastic GPU to associate with the instance.
*/ inline bool ElasticGpuSpecificationsHasBeenSet() const { return m_elasticGpuSpecificationsHasBeenSet; } /** *An elastic GPU to associate with the instance.
*/ inline void SetElasticGpuSpecifications(const Aws::VectorAn elastic GPU to associate with the instance.
*/ inline void SetElasticGpuSpecifications(Aws::VectorAn elastic GPU to associate with the instance.
*/ inline RequestLaunchTemplateData& WithElasticGpuSpecifications(const Aws::VectorAn elastic GPU to associate with the instance.
*/ inline RequestLaunchTemplateData& WithElasticGpuSpecifications(Aws::VectorAn elastic GPU to associate with the instance.
*/ inline RequestLaunchTemplateData& AddElasticGpuSpecifications(const ElasticGpuSpecification& value) { m_elasticGpuSpecificationsHasBeenSet = true; m_elasticGpuSpecifications.push_back(value); return *this; } /** *An elastic GPU to associate with the instance.
*/ inline RequestLaunchTemplateData& AddElasticGpuSpecifications(ElasticGpuSpecification&& value) { m_elasticGpuSpecificationsHasBeenSet = true; m_elasticGpuSpecifications.push_back(std::move(value)); return *this; } /** *The elastic inference accelerator for the instance.
*/ inline const Aws::VectorThe elastic inference accelerator for the instance.
*/ inline bool ElasticInferenceAcceleratorsHasBeenSet() const { return m_elasticInferenceAcceleratorsHasBeenSet; } /** *The elastic inference accelerator for the instance.
*/ inline void SetElasticInferenceAccelerators(const Aws::VectorThe elastic inference accelerator for the instance.
*/ inline void SetElasticInferenceAccelerators(Aws::VectorThe elastic inference accelerator for the instance.
*/ inline RequestLaunchTemplateData& WithElasticInferenceAccelerators(const Aws::VectorThe elastic inference accelerator for the instance.
*/ inline RequestLaunchTemplateData& WithElasticInferenceAccelerators(Aws::VectorThe elastic inference accelerator for the instance.
*/ inline RequestLaunchTemplateData& AddElasticInferenceAccelerators(const LaunchTemplateElasticInferenceAccelerator& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators.push_back(value); return *this; } /** *The elastic inference accelerator for the instance.
*/ inline RequestLaunchTemplateData& AddElasticInferenceAccelerators(LaunchTemplateElasticInferenceAccelerator&& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators.push_back(std::move(value)); return *this; } /** *One or more security group IDs. You can create a security group using CreateSecurityGroup. * You cannot specify both a security group ID and security name in the same * request.
*/ inline const Aws::VectorOne or more security group IDs. You can create a security group using CreateSecurityGroup. * You cannot specify both a security group ID and security name in the same * request.
*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *One or more security group IDs. You can create a security group using CreateSecurityGroup. * You cannot specify both a security group ID and security name in the same * request.
*/ inline void SetSecurityGroupIds(const Aws::VectorOne or more security group IDs. You can create a security group using CreateSecurityGroup. * You cannot specify both a security group ID and security name in the same * request.
*/ inline void SetSecurityGroupIds(Aws::VectorOne or more security group IDs. You can create a security group using CreateSecurityGroup. * You cannot specify both a security group ID and security name in the same * request.
*/ inline RequestLaunchTemplateData& WithSecurityGroupIds(const Aws::VectorOne or more security group IDs. You can create a security group using CreateSecurityGroup. * You cannot specify both a security group ID and security name in the same * request.
*/ inline RequestLaunchTemplateData& WithSecurityGroupIds(Aws::VectorOne or more security group IDs. You can create a security group using CreateSecurityGroup. * You cannot specify both a security group ID and security name in the same * request.
*/ inline RequestLaunchTemplateData& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *One or more security group IDs. You can create a security group using CreateSecurityGroup. * You cannot specify both a security group ID and security name in the same * request.
*/ inline RequestLaunchTemplateData& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *One or more security group IDs. You can create a security group using CreateSecurityGroup. * You cannot specify both a security group ID and security name in the same * request.
*/ inline RequestLaunchTemplateData& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *[EC2-Classic, default VPC] One or more security group names. For a nondefault * VPC, you must use security group IDs instead. You cannot specify both a security * group ID and security name in the same request.
*/ inline const Aws::Vector[EC2-Classic, default VPC] One or more security group names. For a nondefault * VPC, you must use security group IDs instead. You cannot specify both a security * group ID and security name in the same request.
*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *[EC2-Classic, default VPC] One or more security group names. For a nondefault * VPC, you must use security group IDs instead. You cannot specify both a security * group ID and security name in the same request.
*/ inline void SetSecurityGroups(const Aws::Vector[EC2-Classic, default VPC] One or more security group names. For a nondefault * VPC, you must use security group IDs instead. You cannot specify both a security * group ID and security name in the same request.
*/ inline void SetSecurityGroups(Aws::Vector[EC2-Classic, default VPC] One or more security group names. For a nondefault * VPC, you must use security group IDs instead. You cannot specify both a security * group ID and security name in the same request.
*/ inline RequestLaunchTemplateData& WithSecurityGroups(const Aws::Vector[EC2-Classic, default VPC] One or more security group names. For a nondefault * VPC, you must use security group IDs instead. You cannot specify both a security * group ID and security name in the same request.
*/ inline RequestLaunchTemplateData& WithSecurityGroups(Aws::Vector[EC2-Classic, default VPC] One or more security group names. For a nondefault * VPC, you must use security group IDs instead. You cannot specify both a security * group ID and security name in the same request.
*/ inline RequestLaunchTemplateData& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *[EC2-Classic, default VPC] One or more security group names. For a nondefault * VPC, you must use security group IDs instead. You cannot specify both a security * group ID and security name in the same request.
*/ inline RequestLaunchTemplateData& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *[EC2-Classic, default VPC] One or more security group names. For a nondefault * VPC, you must use security group IDs instead. You cannot specify both a security * group ID and security name in the same request.
*/ inline RequestLaunchTemplateData& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *The market (purchasing) option for the instances.
*/ inline const LaunchTemplateInstanceMarketOptionsRequest& GetInstanceMarketOptions() const{ return m_instanceMarketOptions; } /** *The market (purchasing) option for the instances.
*/ inline bool InstanceMarketOptionsHasBeenSet() const { return m_instanceMarketOptionsHasBeenSet; } /** *The market (purchasing) option for the instances.
*/ inline void SetInstanceMarketOptions(const LaunchTemplateInstanceMarketOptionsRequest& value) { m_instanceMarketOptionsHasBeenSet = true; m_instanceMarketOptions = value; } /** *The market (purchasing) option for the instances.
*/ inline void SetInstanceMarketOptions(LaunchTemplateInstanceMarketOptionsRequest&& value) { m_instanceMarketOptionsHasBeenSet = true; m_instanceMarketOptions = std::move(value); } /** *The market (purchasing) option for the instances.
*/ inline RequestLaunchTemplateData& WithInstanceMarketOptions(const LaunchTemplateInstanceMarketOptionsRequest& value) { SetInstanceMarketOptions(value); return *this;} /** *The market (purchasing) option for the instances.
*/ inline RequestLaunchTemplateData& WithInstanceMarketOptions(LaunchTemplateInstanceMarketOptionsRequest&& value) { SetInstanceMarketOptions(std::move(value)); return *this;} /** *The credit option for CPU usage of the instance. Valid for T2, T3, or T3a * instances only.
*/ inline const CreditSpecificationRequest& GetCreditSpecification() const{ return m_creditSpecification; } /** *The credit option for CPU usage of the instance. Valid for T2, T3, or T3a * instances only.
*/ inline bool CreditSpecificationHasBeenSet() const { return m_creditSpecificationHasBeenSet; } /** *The credit option for CPU usage of the instance. Valid for T2, T3, or T3a * instances only.
*/ inline void SetCreditSpecification(const CreditSpecificationRequest& value) { m_creditSpecificationHasBeenSet = true; m_creditSpecification = value; } /** *The credit option for CPU usage of the instance. Valid for T2, T3, or T3a * instances only.
*/ inline void SetCreditSpecification(CreditSpecificationRequest&& value) { m_creditSpecificationHasBeenSet = true; m_creditSpecification = std::move(value); } /** *The credit option for CPU usage of the instance. Valid for T2, T3, or T3a * instances only.
*/ inline RequestLaunchTemplateData& WithCreditSpecification(const CreditSpecificationRequest& value) { SetCreditSpecification(value); return *this;} /** *The credit option for CPU usage of the instance. Valid for T2, T3, or T3a * instances only.
*/ inline RequestLaunchTemplateData& 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 Elastic Compute Cloud User Guide.
*/ inline const LaunchTemplateCpuOptionsRequest& GetCpuOptions() const{ return m_cpuOptions; } /** *The CPU options for the instance. For more information, see Optimizing * CPU Options in the Amazon Elastic Compute Cloud 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 Elastic Compute Cloud User Guide.
*/ inline void SetCpuOptions(const LaunchTemplateCpuOptionsRequest& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = value; } /** *The CPU options for the instance. For more information, see Optimizing * CPU Options in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetCpuOptions(LaunchTemplateCpuOptionsRequest&& 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 Elastic Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithCpuOptions(const LaunchTemplateCpuOptionsRequest& value) { SetCpuOptions(value); return *this;} /** *The CPU options for the instance. For more information, see Optimizing * CPU Options in the Amazon Elastic Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithCpuOptions(LaunchTemplateCpuOptionsRequest&& value) { SetCpuOptions(std::move(value)); return *this;} /** *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).
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).
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).
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).
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).
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).
The license configurations.
*/ inline const Aws::VectorThe license configurations.
*/ inline bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; } /** *The license configurations.
*/ inline void SetLicenseSpecifications(const Aws::VectorThe license configurations.
*/ inline void SetLicenseSpecifications(Aws::VectorThe license configurations.
*/ inline RequestLaunchTemplateData& WithLicenseSpecifications(const Aws::VectorThe license configurations.
*/ inline RequestLaunchTemplateData& WithLicenseSpecifications(Aws::VectorThe license configurations.
*/ inline RequestLaunchTemplateData& AddLicenseSpecifications(const LaunchTemplateLicenseConfigurationRequest& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(value); return *this; } /** *The license configurations.
*/ inline RequestLaunchTemplateData& AddLicenseSpecifications(LaunchTemplateLicenseConfigurationRequest&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(std::move(value)); return *this; } /** *Indicates whether an instance is enabled for hibernation. This parameter is * valid only if the instance meets the hibernation * prerequisites. For more information, see Hibernate * Your Instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline const LaunchTemplateHibernationOptionsRequest& GetHibernationOptions() const{ return m_hibernationOptions; } /** *Indicates whether an instance is enabled for hibernation. This parameter is * valid only if the instance meets the hibernation * prerequisites. For more information, see Hibernate * Your Instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline bool HibernationOptionsHasBeenSet() const { return m_hibernationOptionsHasBeenSet; } /** *Indicates whether an instance is enabled for hibernation. This parameter is * valid only if the instance meets the hibernation * prerequisites. For more information, see Hibernate * Your Instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetHibernationOptions(const LaunchTemplateHibernationOptionsRequest& value) { m_hibernationOptionsHasBeenSet = true; m_hibernationOptions = value; } /** *Indicates whether an instance is enabled for hibernation. This parameter is * valid only if the instance meets the hibernation * prerequisites. For more information, see Hibernate * Your Instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetHibernationOptions(LaunchTemplateHibernationOptionsRequest&& value) { m_hibernationOptionsHasBeenSet = true; m_hibernationOptions = std::move(value); } /** *Indicates whether an instance is enabled for hibernation. This parameter is * valid only if the instance meets the hibernation * prerequisites. For more information, see Hibernate * Your Instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithHibernationOptions(const LaunchTemplateHibernationOptionsRequest& value) { SetHibernationOptions(value); return *this;} /** *Indicates whether an instance is enabled for hibernation. This parameter is * valid only if the instance meets the hibernation * prerequisites. For more information, see Hibernate * Your Instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithHibernationOptions(LaunchTemplateHibernationOptionsRequest&& value) { SetHibernationOptions(std::move(value)); return *this;} /** *The metadata options for the instance. For more information, see Instance * Metadata and User Data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline const LaunchTemplateInstanceMetadataOptionsRequest& GetMetadataOptions() const{ return m_metadataOptions; } /** *The metadata options for the instance. For more information, see Instance * Metadata and User Data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline bool MetadataOptionsHasBeenSet() const { return m_metadataOptionsHasBeenSet; } /** *The metadata options for the instance. For more information, see Instance * Metadata and User Data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline void SetMetadataOptions(const LaunchTemplateInstanceMetadataOptionsRequest& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = value; } /** *The metadata options for the instance. For more information, see Instance * Metadata and User Data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline void SetMetadataOptions(LaunchTemplateInstanceMetadataOptionsRequest&& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = std::move(value); } /** *The metadata options for the instance. For more information, see Instance * Metadata and User Data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline RequestLaunchTemplateData& WithMetadataOptions(const LaunchTemplateInstanceMetadataOptionsRequest& value) { SetMetadataOptions(value); return *this;} /** *The metadata options for the instance. For more information, see Instance * Metadata and User Data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline RequestLaunchTemplateData& WithMetadataOptions(LaunchTemplateInstanceMetadataOptionsRequest&& value) { SetMetadataOptions(std::move(value)); return *this;} private: Aws::String m_kernelId; bool m_kernelIdHasBeenSet; bool m_ebsOptimized; bool m_ebsOptimizedHasBeenSet; LaunchTemplateIamInstanceProfileSpecificationRequest m_iamInstanceProfile; bool m_iamInstanceProfileHasBeenSet; Aws::Vector