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

The information to include in the launch template.

See Also:

* AWS * API Reference

*/ class AWS_EC2_API RequestLaunchTemplateData { public: RequestLaunchTemplateData(); RequestLaunchTemplateData(const Aws::Utils::Xml::XmlNode& xmlNode); RequestLaunchTemplateData& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; 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 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::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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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& value) { SetSecurityGroups(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& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(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 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).

*/ 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;} private: Aws::String m_kernelId; bool m_kernelIdHasBeenSet; bool m_ebsOptimized; bool m_ebsOptimizedHasBeenSet; LaunchTemplateIamInstanceProfileSpecificationRequest m_iamInstanceProfile; bool m_iamInstanceProfileHasBeenSet; Aws::Vector m_blockDeviceMappings; bool m_blockDeviceMappingsHasBeenSet; Aws::Vector m_networkInterfaces; bool m_networkInterfacesHasBeenSet; Aws::String m_imageId; bool m_imageIdHasBeenSet; InstanceType m_instanceType; bool m_instanceTypeHasBeenSet; Aws::String m_keyName; bool m_keyNameHasBeenSet; LaunchTemplatesMonitoringRequest m_monitoring; bool m_monitoringHasBeenSet; LaunchTemplatePlacementRequest m_placement; bool m_placementHasBeenSet; Aws::String m_ramDiskId; bool m_ramDiskIdHasBeenSet; bool m_disableApiTermination; bool m_disableApiTerminationHasBeenSet; ShutdownBehavior m_instanceInitiatedShutdownBehavior; bool m_instanceInitiatedShutdownBehaviorHasBeenSet; Aws::String m_userData; bool m_userDataHasBeenSet; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet; Aws::Vector m_elasticGpuSpecifications; bool m_elasticGpuSpecificationsHasBeenSet; Aws::Vector m_elasticInferenceAccelerators; bool m_elasticInferenceAcceleratorsHasBeenSet; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet; LaunchTemplateInstanceMarketOptionsRequest m_instanceMarketOptions; bool m_instanceMarketOptionsHasBeenSet; CreditSpecificationRequest m_creditSpecification; bool m_creditSpecificationHasBeenSet; LaunchTemplateCpuOptionsRequest m_cpuOptions; bool m_cpuOptionsHasBeenSet; LaunchTemplateCapacityReservationSpecificationRequest m_capacityReservationSpecification; bool m_capacityReservationSpecificationHasBeenSet; Aws::Vector m_licenseSpecifications; bool m_licenseSpecificationsHasBeenSet; LaunchTemplateHibernationOptionsRequest m_hibernationOptions; bool m_hibernationOptionsHasBeenSet; LaunchTemplateInstanceMetadataOptionsRequest m_metadataOptions; bool m_metadataOptionsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws