/** * 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 Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

The information to include in the launch template.

You must * specify at least one parameter for the launch template data.

*

See Also:

AWS * API Reference

*/ class RequestLaunchTemplateData { public: AWS_EC2_API RequestLaunchTemplateData(); AWS_EC2_API RequestLaunchTemplateData(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API RequestLaunchTemplateData& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

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 name or Amazon Resource Name (ARN) of an IAM instance profile.

*/ inline const LaunchTemplateIamInstanceProfileSpecificationRequest& 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 LaunchTemplateIamInstanceProfileSpecificationRequest& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; } /** *

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

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

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

*/ inline RequestLaunchTemplateData& WithIamInstanceProfile(const LaunchTemplateIamInstanceProfileSpecificationRequest& value) { SetIamInstanceProfile(value); return *this;} /** *

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

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

The block device mapping.

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

The block device mapping.

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

The block device mapping.

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

The block device mapping.

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

The block device mapping.

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

The block device mapping.

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

The 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::Vector& GetNetworkInterfaces() const{ return m_networkInterfaces; } /** *

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 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::Vector& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; } /** *

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(Aws::Vector&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); } /** *

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& WithNetworkInterfaces(const Aws::Vector& value) { SetNetworkInterfaces(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& WithNetworkInterfaces(Aws::Vector&& value) { SetNetworkInterfaces(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 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. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.

Valid formats:

*
  • ami-17characters00000

  • * resolve:ssm:parameter-name

  • * resolve:ssm:parameter-name:version-number

  • * resolve:ssm:parameter-name:label

  • * resolve:ssm:public-parameter

Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.

For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.

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

The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.

Valid formats:

*
  • ami-17characters00000

  • * resolve:ssm:parameter-name

  • * resolve:ssm:parameter-name:version-number

  • * resolve:ssm:parameter-name:label

  • * resolve:ssm:public-parameter

Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.

For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.

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

The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.

Valid formats:

*
  • ami-17characters00000

  • * resolve:ssm:parameter-name

  • * resolve:ssm:parameter-name:version-number

  • * resolve:ssm:parameter-name:label

  • * resolve:ssm:public-parameter

Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.

For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.

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

The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.

Valid formats:

*
  • ami-17characters00000

  • * resolve:ssm:parameter-name

  • * resolve:ssm:parameter-name:version-number

  • * resolve:ssm:parameter-name:label

  • * resolve:ssm:public-parameter

Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.

For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.

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

The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.

Valid formats:

*
  • ami-17characters00000

  • * resolve:ssm:parameter-name

  • * resolve:ssm:parameter-name:version-number

  • * resolve:ssm:parameter-name:label

  • * resolve:ssm:public-parameter

Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.

For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.

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

The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.

Valid formats:

*
  • ami-17characters00000

  • * resolve:ssm:parameter-name

  • * resolve:ssm:parameter-name:version-number

  • * resolve:ssm:parameter-name:label

  • * resolve:ssm:public-parameter

Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.

For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.

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

The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.

Valid formats:

*
  • ami-17characters00000

  • * resolve:ssm:parameter-name

  • * resolve:ssm:parameter-name:version-number

  • * resolve:ssm:parameter-name:label

  • * resolve:ssm:public-parameter

Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.

For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.

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

The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.

Valid formats:

*
  • ami-17characters00000

  • * resolve:ssm:parameter-name

  • * resolve:ssm:parameter-name:version-number

  • * resolve:ssm:parameter-name:label

  • * resolve:ssm:public-parameter

Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.

For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.

*/ 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.

If you * specify InstanceType, you can't specify * InstanceRequirements.

*/ 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.

If you * specify InstanceType, you can't specify * InstanceRequirements.

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

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

If you * specify InstanceType, you can't specify * InstanceRequirements.

*/ 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.

If you * specify InstanceType, you can't specify * InstanceRequirements.

*/ 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.

If you * specify InstanceType, you can't specify * InstanceRequirements.

*/ 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.

If you * specify InstanceType, you can't specify * InstanceRequirements.

*/ 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.

*/ 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.

*/ 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.

*/ 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.

*/ inline RequestLaunchTemplateData& WithDisableApiTermination(bool value) { SetDisableApiTermination(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 RequestLaunchTemplateData& 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 RequestLaunchTemplateData& WithInstanceInitiatedShutdownBehavior(ShutdownBehavior&& value) { SetInstanceInitiatedShutdownBehavior(std::move(value)); return *this;} /** *

The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.

If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.

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

The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.

If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.

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

The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.

If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.

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

The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.

If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.

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

The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.

If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.

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

The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.

If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.

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

The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.

If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.

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

The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.

If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.

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

The tags to apply to the resources that are created during instance * launch.

You can specify tags for the following resources only:

    *
  • Instances

  • Volumes

  • Elastic * graphics

  • Spot Instance requests

  • Network * interfaces

To tag a resource after it has been created, see * CreateTags.

*

To tag the launch template itself, you must use the TagSpecification * parameter.

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

The tags to apply to the resources that are created during instance * launch.

You can specify tags for the following resources only:

    *
  • Instances

  • Volumes

  • Elastic * graphics

  • Spot Instance requests

  • Network * interfaces

To tag a resource after it has been created, see * CreateTags.

*

To tag the launch template itself, you must use the TagSpecification * parameter.

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

The tags to apply to the resources that are created during instance * launch.

You can specify tags for the following resources only:

    *
  • Instances

  • Volumes

  • Elastic * graphics

  • Spot Instance requests

  • Network * interfaces

To tag a resource after it has been created, see * CreateTags.

*

To tag the launch template itself, you must use the TagSpecification * parameter.

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

The tags to apply to the resources that are created during instance * launch.

You can specify tags for the following resources only:

    *
  • Instances

  • Volumes

  • Elastic * graphics

  • Spot Instance requests

  • Network * interfaces

To tag a resource after it has been created, see * CreateTags.

*

To tag the launch template itself, you must use the TagSpecification * parameter.

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

The tags to apply to the resources that are created during instance * launch.

You can specify tags for the following resources only:

    *
  • Instances

  • Volumes

  • Elastic * graphics

  • Spot Instance requests

  • Network * interfaces

To tag a resource after it has been created, see * CreateTags.

*

To tag the launch template itself, you must use the TagSpecification * parameter.

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

The tags to apply to the resources that are created during instance * launch.

You can specify tags for the following resources only:

    *
  • Instances

  • Volumes

  • Elastic * graphics

  • Spot Instance requests

  • Network * interfaces

To tag a resource after it has been created, see * CreateTags.

*

To tag the launch template itself, you must use the TagSpecification * parameter.

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

The tags to apply to the resources that are created during instance * launch.

You can specify tags for the following resources only:

    *
  • Instances

  • Volumes

  • Elastic * graphics

  • Spot Instance requests

  • Network * interfaces

To tag a resource after it has been created, see * CreateTags.

*

To tag the launch template itself, you must use the TagSpecification * parameter.

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

The tags to apply to the resources that are created during instance * launch.

You can specify tags for the following resources only:

    *
  • Instances

  • Volumes

  • Elastic * graphics

  • Spot Instance requests

  • Network * interfaces

To tag a resource after it has been created, see * CreateTags.

*

To tag the launch template itself, you must use the TagSpecification * parameter.

*/ 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::Vector& GetElasticGpuSpecifications() const{ return m_elasticGpuSpecifications; } /** *

An 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::Vector& value) { m_elasticGpuSpecificationsHasBeenSet = true; m_elasticGpuSpecifications = value; } /** *

An elastic GPU to associate with the instance.

*/ inline void SetElasticGpuSpecifications(Aws::Vector&& value) { m_elasticGpuSpecificationsHasBeenSet = true; m_elasticGpuSpecifications = std::move(value); } /** *

An elastic GPU to associate with the instance.

*/ inline RequestLaunchTemplateData& WithElasticGpuSpecifications(const Aws::Vector& value) { SetElasticGpuSpecifications(value); return *this;} /** *

An elastic GPU to associate with the instance.

*/ inline RequestLaunchTemplateData& WithElasticGpuSpecifications(Aws::Vector&& value) { SetElasticGpuSpecifications(std::move(value)); return *this;} /** *

An 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::Vector& GetElasticInferenceAccelerators() const{ return m_elasticInferenceAccelerators; } /** *

The 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::Vector& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators = value; } /** *

The elastic inference accelerator for the instance.

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

The elastic inference accelerator for the instance.

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

The elastic inference accelerator for the instance.

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

The 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::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

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 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::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

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(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

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& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(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& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(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 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; } /** *

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& GetSecurityGroups() const{ return m_securityGroups; } /** *

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; } /** *

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& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

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&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

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& value) { SetSecurityGroups(value); return *this;} /** *

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&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

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; } /** *

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; } /** *

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 only for T * instances.

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

The credit option for CPU usage of the instance. Valid only for T * instances.

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

The credit option for CPU usage of the instance. Valid only for T * instances.

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

The credit option for CPU usage of the instance. Valid only for T * instances.

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

The credit option for CPU usage of the instance. Valid only for T * instances.

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

The credit option for CPU usage of the instance. Valid only for T * instances.

*/ 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).

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

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; } /** *

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 LaunchTemplateCapacityReservationSpecificationRequest& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = value; } /** *

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(LaunchTemplateCapacityReservationSpecificationRequest&& value) { m_capacityReservationSpecificationHasBeenSet = true; m_capacityReservationSpecification = std::move(value); } /** *

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 RequestLaunchTemplateData& WithCapacityReservationSpecification(const LaunchTemplateCapacityReservationSpecificationRequest& value) { SetCapacityReservationSpecification(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).

*/ inline RequestLaunchTemplateData& WithCapacityReservationSpecification(LaunchTemplateCapacityReservationSpecificationRequest&& value) { SetCapacityReservationSpecification(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 RequestLaunchTemplateData& WithLicenseSpecifications(const Aws::Vector& value) { SetLicenseSpecifications(value); return *this;} /** *

The license configurations.

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

The 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;} /** *

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 LaunchTemplateEnclaveOptionsRequest& 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 LaunchTemplateEnclaveOptionsRequest& 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(LaunchTemplateEnclaveOptionsRequest&& 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 RequestLaunchTemplateData& WithEnclaveOptions(const LaunchTemplateEnclaveOptionsRequest& 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 RequestLaunchTemplateData& WithEnclaveOptions(LaunchTemplateEnclaveOptionsRequest&& value) { SetEnclaveOptions(std::move(value)); return *this;} /** *

The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.

You must * specify VCpuCount and MemoryMiB. All other attributes * are optional. Any unspecified optional attribute is set to its default.

*

When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.

To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:

  • AllowedInstanceTypes - The instance * types to include in the list. All other instance types are ignored, even if they * match your specified attributes.

  • * ExcludedInstanceTypes - The instance types to exclude from the * list, even if they match your specified attributes.

If * you specify InstanceRequirements, you can't specify * InstanceType.

Attribute-based instance type selection is * only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to * launch instances. If you plan to use the launch template in the launch * instance wizard, or with the RunInstances * API or AWS::EC2::Instance * Amazon Web Services CloudFormation resource, you can't specify * InstanceRequirements.

For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.

*/ inline const InstanceRequirementsRequest& GetInstanceRequirements() const{ return m_instanceRequirements; } /** *

The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.

You must * specify VCpuCount and MemoryMiB. All other attributes * are optional. Any unspecified optional attribute is set to its default.

*

When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.

To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:

  • AllowedInstanceTypes - The instance * types to include in the list. All other instance types are ignored, even if they * match your specified attributes.

  • * ExcludedInstanceTypes - The instance types to exclude from the * list, even if they match your specified attributes.

If * you specify InstanceRequirements, you can't specify * InstanceType.

Attribute-based instance type selection is * only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to * launch instances. If you plan to use the launch template in the launch * instance wizard, or with the RunInstances * API or AWS::EC2::Instance * Amazon Web Services CloudFormation resource, you can't specify * InstanceRequirements.

For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.

*/ inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; } /** *

The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.

You must * specify VCpuCount and MemoryMiB. All other attributes * are optional. Any unspecified optional attribute is set to its default.

*

When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.

To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:

  • AllowedInstanceTypes - The instance * types to include in the list. All other instance types are ignored, even if they * match your specified attributes.

  • * ExcludedInstanceTypes - The instance types to exclude from the * list, even if they match your specified attributes.

If * you specify InstanceRequirements, you can't specify * InstanceType.

Attribute-based instance type selection is * only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to * launch instances. If you plan to use the launch template in the launch * instance wizard, or with the RunInstances * API or AWS::EC2::Instance * Amazon Web Services CloudFormation resource, you can't specify * InstanceRequirements.

For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.

*/ inline void SetInstanceRequirements(const InstanceRequirementsRequest& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = value; } /** *

The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.

You must * specify VCpuCount and MemoryMiB. All other attributes * are optional. Any unspecified optional attribute is set to its default.

*

When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.

To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:

  • AllowedInstanceTypes - The instance * types to include in the list. All other instance types are ignored, even if they * match your specified attributes.

  • * ExcludedInstanceTypes - The instance types to exclude from the * list, even if they match your specified attributes.

If * you specify InstanceRequirements, you can't specify * InstanceType.

Attribute-based instance type selection is * only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to * launch instances. If you plan to use the launch template in the launch * instance wizard, or with the RunInstances * API or AWS::EC2::Instance * Amazon Web Services CloudFormation resource, you can't specify * InstanceRequirements.

For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.

*/ inline void SetInstanceRequirements(InstanceRequirementsRequest&& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = std::move(value); } /** *

The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.

You must * specify VCpuCount and MemoryMiB. All other attributes * are optional. Any unspecified optional attribute is set to its default.

*

When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.

To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:

  • AllowedInstanceTypes - The instance * types to include in the list. All other instance types are ignored, even if they * match your specified attributes.

  • * ExcludedInstanceTypes - The instance types to exclude from the * list, even if they match your specified attributes.

If * you specify InstanceRequirements, you can't specify * InstanceType.

Attribute-based instance type selection is * only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to * launch instances. If you plan to use the launch template in the launch * instance wizard, or with the RunInstances * API or AWS::EC2::Instance * Amazon Web Services CloudFormation resource, you can't specify * InstanceRequirements.

For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.

*/ inline RequestLaunchTemplateData& WithInstanceRequirements(const InstanceRequirementsRequest& value) { SetInstanceRequirements(value); return *this;} /** *

The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.

You must * specify VCpuCount and MemoryMiB. All other attributes * are optional. Any unspecified optional attribute is set to its default.

*

When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.

To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:

  • AllowedInstanceTypes - The instance * types to include in the list. All other instance types are ignored, even if they * match your specified attributes.

  • * ExcludedInstanceTypes - The instance types to exclude from the * list, even if they match your specified attributes.

If * you specify InstanceRequirements, you can't specify * InstanceType.

Attribute-based instance type selection is * only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to * launch instances. If you plan to use the launch template in the launch * instance wizard, or with the RunInstances * API or AWS::EC2::Instance * Amazon Web Services CloudFormation resource, you can't specify * InstanceRequirements.

For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.

*/ inline RequestLaunchTemplateData& WithInstanceRequirements(InstanceRequirementsRequest&& value) { SetInstanceRequirements(std::move(value)); return *this;} /** *

The options for the instance hostname. The default values are inherited from * the subnet.

*/ inline const LaunchTemplatePrivateDnsNameOptionsRequest& GetPrivateDnsNameOptions() const{ return m_privateDnsNameOptions; } /** *

The options for the instance hostname. The default values are inherited from * the subnet.

*/ inline bool PrivateDnsNameOptionsHasBeenSet() const { return m_privateDnsNameOptionsHasBeenSet; } /** *

The options for the instance hostname. The default values are inherited from * the subnet.

*/ inline void SetPrivateDnsNameOptions(const LaunchTemplatePrivateDnsNameOptionsRequest& value) { m_privateDnsNameOptionsHasBeenSet = true; m_privateDnsNameOptions = value; } /** *

The options for the instance hostname. The default values are inherited from * the subnet.

*/ inline void SetPrivateDnsNameOptions(LaunchTemplatePrivateDnsNameOptionsRequest&& value) { m_privateDnsNameOptionsHasBeenSet = true; m_privateDnsNameOptions = std::move(value); } /** *

The options for the instance hostname. The default values are inherited from * the subnet.

*/ inline RequestLaunchTemplateData& WithPrivateDnsNameOptions(const LaunchTemplatePrivateDnsNameOptionsRequest& value) { SetPrivateDnsNameOptions(value); return *this;} /** *

The options for the instance hostname. The default values are inherited from * the subnet.

*/ inline RequestLaunchTemplateData& WithPrivateDnsNameOptions(LaunchTemplatePrivateDnsNameOptionsRequest&& value) { SetPrivateDnsNameOptions(std::move(value)); return *this;} /** *

The maintenance options for the instance.

*/ inline const LaunchTemplateInstanceMaintenanceOptionsRequest& GetMaintenanceOptions() const{ return m_maintenanceOptions; } /** *

The maintenance options for the instance.

*/ inline bool MaintenanceOptionsHasBeenSet() const { return m_maintenanceOptionsHasBeenSet; } /** *

The maintenance options for the instance.

*/ inline void SetMaintenanceOptions(const LaunchTemplateInstanceMaintenanceOptionsRequest& value) { m_maintenanceOptionsHasBeenSet = true; m_maintenanceOptions = value; } /** *

The maintenance options for the instance.

*/ inline void SetMaintenanceOptions(LaunchTemplateInstanceMaintenanceOptionsRequest&& value) { m_maintenanceOptionsHasBeenSet = true; m_maintenanceOptions = std::move(value); } /** *

The maintenance options for the instance.

*/ inline RequestLaunchTemplateData& WithMaintenanceOptions(const LaunchTemplateInstanceMaintenanceOptionsRequest& value) { SetMaintenanceOptions(value); return *this;} /** *

The maintenance options for the instance.

*/ inline RequestLaunchTemplateData& WithMaintenanceOptions(LaunchTemplateInstanceMaintenanceOptionsRequest&& value) { SetMaintenanceOptions(std::move(value)); return *this;} /** *

Indicates whether to enable the instance for stop protection. For more * information, see Stop * protection in the Amazon Elastic Compute Cloud User Guide.

*/ inline bool GetDisableApiStop() const{ return m_disableApiStop; } /** *

Indicates whether to enable the instance for stop protection. For more * information, see Stop * protection in the Amazon Elastic Compute Cloud User Guide.

*/ inline bool DisableApiStopHasBeenSet() const { return m_disableApiStopHasBeenSet; } /** *

Indicates whether to enable the instance for stop protection. For more * information, see Stop * protection in the Amazon Elastic Compute Cloud User Guide.

*/ inline void SetDisableApiStop(bool value) { m_disableApiStopHasBeenSet = true; m_disableApiStop = value; } /** *

Indicates whether to enable the instance for stop protection. For more * information, see Stop * protection in the Amazon Elastic Compute Cloud User Guide.

*/ inline RequestLaunchTemplateData& WithDisableApiStop(bool value) { SetDisableApiStop(value); return *this;} private: Aws::String m_kernelId; bool m_kernelIdHasBeenSet = false; bool m_ebsOptimized; bool m_ebsOptimizedHasBeenSet = false; LaunchTemplateIamInstanceProfileSpecificationRequest m_iamInstanceProfile; bool m_iamInstanceProfileHasBeenSet = false; Aws::Vector m_blockDeviceMappings; bool m_blockDeviceMappingsHasBeenSet = false; Aws::Vector m_networkInterfaces; bool m_networkInterfacesHasBeenSet = false; Aws::String m_imageId; bool m_imageIdHasBeenSet = false; InstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_keyName; bool m_keyNameHasBeenSet = false; LaunchTemplatesMonitoringRequest m_monitoring; bool m_monitoringHasBeenSet = false; LaunchTemplatePlacementRequest m_placement; bool m_placementHasBeenSet = false; Aws::String m_ramDiskId; bool m_ramDiskIdHasBeenSet = false; bool m_disableApiTermination; bool m_disableApiTerminationHasBeenSet = false; ShutdownBehavior m_instanceInitiatedShutdownBehavior; bool m_instanceInitiatedShutdownBehaviorHasBeenSet = false; Aws::String m_userData; bool m_userDataHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; Aws::Vector m_elasticGpuSpecifications; bool m_elasticGpuSpecificationsHasBeenSet = false; Aws::Vector m_elasticInferenceAccelerators; bool m_elasticInferenceAcceleratorsHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; LaunchTemplateInstanceMarketOptionsRequest m_instanceMarketOptions; bool m_instanceMarketOptionsHasBeenSet = false; CreditSpecificationRequest m_creditSpecification; bool m_creditSpecificationHasBeenSet = false; LaunchTemplateCpuOptionsRequest m_cpuOptions; bool m_cpuOptionsHasBeenSet = false; LaunchTemplateCapacityReservationSpecificationRequest m_capacityReservationSpecification; bool m_capacityReservationSpecificationHasBeenSet = false; Aws::Vector m_licenseSpecifications; bool m_licenseSpecificationsHasBeenSet = false; LaunchTemplateHibernationOptionsRequest m_hibernationOptions; bool m_hibernationOptionsHasBeenSet = false; LaunchTemplateInstanceMetadataOptionsRequest m_metadataOptions; bool m_metadataOptionsHasBeenSet = false; LaunchTemplateEnclaveOptionsRequest m_enclaveOptions; bool m_enclaveOptionsHasBeenSet = false; InstanceRequirementsRequest m_instanceRequirements; bool m_instanceRequirementsHasBeenSet = false; LaunchTemplatePrivateDnsNameOptionsRequest m_privateDnsNameOptions; bool m_privateDnsNameOptionsHasBeenSet = false; LaunchTemplateInstanceMaintenanceOptionsRequest m_maintenanceOptions; bool m_maintenanceOptionsHasBeenSet = false; bool m_disableApiStop; bool m_disableApiStopHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws