/** * 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 namespace Aws { namespace AutoScaling { namespace Model { /** */ class CreateLaunchConfigurationRequest : public AutoScalingRequest { public: AWS_AUTOSCALING_API CreateLaunchConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateLaunchConfiguration"; } AWS_AUTOSCALING_API Aws::String SerializePayload() const override; protected: AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the launch configuration. This name must be unique per Region per * account.

*/ inline const Aws::String& GetLaunchConfigurationName() const{ return m_launchConfigurationName; } /** *

The name of the launch configuration. This name must be unique per Region per * account.

*/ inline bool LaunchConfigurationNameHasBeenSet() const { return m_launchConfigurationNameHasBeenSet; } /** *

The name of the launch configuration. This name must be unique per Region per * account.

*/ inline void SetLaunchConfigurationName(const Aws::String& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = value; } /** *

The name of the launch configuration. This name must be unique per Region per * account.

*/ inline void SetLaunchConfigurationName(Aws::String&& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = std::move(value); } /** *

The name of the launch configuration. This name must be unique per Region per * account.

*/ inline void SetLaunchConfigurationName(const char* value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName.assign(value); } /** *

The name of the launch configuration. This name must be unique per Region per * account.

*/ inline CreateLaunchConfigurationRequest& WithLaunchConfigurationName(const Aws::String& value) { SetLaunchConfigurationName(value); return *this;} /** *

The name of the launch configuration. This name must be unique per Region per * account.

*/ inline CreateLaunchConfigurationRequest& WithLaunchConfigurationName(Aws::String&& value) { SetLaunchConfigurationName(std::move(value)); return *this;} /** *

The name of the launch configuration. This name must be unique per Region per * account.

*/ inline CreateLaunchConfigurationRequest& WithLaunchConfigurationName(const char* value) { SetLaunchConfigurationName(value); return *this;} /** *

The ID of the Amazon Machine Image (AMI) that was assigned during * registration. For more information, see Finding * a Linux AMI in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an ImageId is not * required.

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

The ID of the Amazon Machine Image (AMI) that was assigned during * registration. For more information, see Finding * a Linux AMI in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an ImageId is not * required.

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

The ID of the Amazon Machine Image (AMI) that was assigned during * registration. For more information, see Finding * a Linux AMI in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an ImageId is not * required.

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

The ID of the Amazon Machine Image (AMI) that was assigned during * registration. For more information, see Finding * a Linux AMI in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an ImageId is not * required.

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

The ID of the Amazon Machine Image (AMI) that was assigned during * registration. For more information, see Finding * a Linux AMI in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an ImageId is not * required.

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

The ID of the Amazon Machine Image (AMI) that was assigned during * registration. For more information, see Finding * a Linux AMI in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an ImageId is not * required.

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

The ID of the Amazon Machine Image (AMI) that was assigned during * registration. For more information, see Finding * a Linux AMI in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an ImageId is not * required.

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

The ID of the Amazon Machine Image (AMI) that was assigned during * registration. For more information, see Finding * a Linux AMI in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an ImageId is not * required.

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

The name of the key pair. For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon EC2 User Guide for Linux * Instances.

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

The name of the key pair. For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon EC2 User Guide for Linux * Instances.

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

The name of the key pair. For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon EC2 User Guide for Linux * Instances.

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

The name of the key pair. For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon EC2 User Guide for Linux * Instances.

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

The name of the key pair. For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon EC2 User Guide for Linux * Instances.

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

The name of the key pair. For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon EC2 User Guide for Linux * Instances.

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

The name of the key pair. For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon EC2 User Guide for Linux * Instances.

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

The name of the key pair. For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon EC2 User Guide for Linux * Instances.

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

A list that contains the security group IDs to assign to the instances in the * Auto Scaling group. For more information, see Control * traffic to resources using security groups in the Amazon Virtual Private * Cloud User Guide.

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

A list that contains the security group IDs to assign to the instances in the * Auto Scaling group. For more information, see Control * traffic to resources using security groups in the Amazon Virtual Private * Cloud User Guide.

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

A list that contains the security group IDs to assign to the instances in the * Auto Scaling group. For more information, see Control * traffic to resources using security groups in the Amazon Virtual Private * Cloud User Guide.

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

A list that contains the security group IDs to assign to the instances in the * Auto Scaling group. For more information, see Control * traffic to resources using security groups in the Amazon Virtual Private * Cloud User Guide.

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

A list that contains the security group IDs to assign to the instances in the * Auto Scaling group. For more information, see Control * traffic to resources using security groups in the Amazon Virtual Private * Cloud User Guide.

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

A list that contains the security group IDs to assign to the instances in the * Auto Scaling group. For more information, see Control * traffic to resources using security groups in the Amazon Virtual Private * Cloud User Guide.

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

A list that contains the security group IDs to assign to the instances in the * Auto Scaling group. For more information, see Control * traffic to resources using security groups in the Amazon Virtual Private * Cloud User Guide.

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

A list that contains the security group IDs to assign to the instances in the * Auto Scaling group. For more information, see Control * traffic to resources using security groups in the Amazon Virtual Private * Cloud User Guide.

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

A list that contains the security group IDs to assign to the instances in the * Auto Scaling group. For more information, see Control * traffic to resources using security groups in the Amazon Virtual Private * Cloud User Guide.

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

Available for backward compatibility.

*/ inline const Aws::String& GetClassicLinkVPCId() const{ return m_classicLinkVPCId; } /** *

Available for backward compatibility.

*/ inline bool ClassicLinkVPCIdHasBeenSet() const { return m_classicLinkVPCIdHasBeenSet; } /** *

Available for backward compatibility.

*/ inline void SetClassicLinkVPCId(const Aws::String& value) { m_classicLinkVPCIdHasBeenSet = true; m_classicLinkVPCId = value; } /** *

Available for backward compatibility.

*/ inline void SetClassicLinkVPCId(Aws::String&& value) { m_classicLinkVPCIdHasBeenSet = true; m_classicLinkVPCId = std::move(value); } /** *

Available for backward compatibility.

*/ inline void SetClassicLinkVPCId(const char* value) { m_classicLinkVPCIdHasBeenSet = true; m_classicLinkVPCId.assign(value); } /** *

Available for backward compatibility.

*/ inline CreateLaunchConfigurationRequest& WithClassicLinkVPCId(const Aws::String& value) { SetClassicLinkVPCId(value); return *this;} /** *

Available for backward compatibility.

*/ inline CreateLaunchConfigurationRequest& WithClassicLinkVPCId(Aws::String&& value) { SetClassicLinkVPCId(std::move(value)); return *this;} /** *

Available for backward compatibility.

*/ inline CreateLaunchConfigurationRequest& WithClassicLinkVPCId(const char* value) { SetClassicLinkVPCId(value); return *this;} /** *

Available for backward compatibility.

*/ inline const Aws::Vector& GetClassicLinkVPCSecurityGroups() const{ return m_classicLinkVPCSecurityGroups; } /** *

Available for backward compatibility.

*/ inline bool ClassicLinkVPCSecurityGroupsHasBeenSet() const { return m_classicLinkVPCSecurityGroupsHasBeenSet; } /** *

Available for backward compatibility.

*/ inline void SetClassicLinkVPCSecurityGroups(const Aws::Vector& value) { m_classicLinkVPCSecurityGroupsHasBeenSet = true; m_classicLinkVPCSecurityGroups = value; } /** *

Available for backward compatibility.

*/ inline void SetClassicLinkVPCSecurityGroups(Aws::Vector&& value) { m_classicLinkVPCSecurityGroupsHasBeenSet = true; m_classicLinkVPCSecurityGroups = std::move(value); } /** *

Available for backward compatibility.

*/ inline CreateLaunchConfigurationRequest& WithClassicLinkVPCSecurityGroups(const Aws::Vector& value) { SetClassicLinkVPCSecurityGroups(value); return *this;} /** *

Available for backward compatibility.

*/ inline CreateLaunchConfigurationRequest& WithClassicLinkVPCSecurityGroups(Aws::Vector&& value) { SetClassicLinkVPCSecurityGroups(std::move(value)); return *this;} /** *

Available for backward compatibility.

*/ inline CreateLaunchConfigurationRequest& AddClassicLinkVPCSecurityGroups(const Aws::String& value) { m_classicLinkVPCSecurityGroupsHasBeenSet = true; m_classicLinkVPCSecurityGroups.push_back(value); return *this; } /** *

Available for backward compatibility.

*/ inline CreateLaunchConfigurationRequest& AddClassicLinkVPCSecurityGroups(Aws::String&& value) { m_classicLinkVPCSecurityGroupsHasBeenSet = true; m_classicLinkVPCSecurityGroups.push_back(std::move(value)); return *this; } /** *

Available for backward compatibility.

*/ inline CreateLaunchConfigurationRequest& AddClassicLinkVPCSecurityGroups(const char* value) { m_classicLinkVPCSecurityGroupsHasBeenSet = true; m_classicLinkVPCSecurityGroups.push_back(value); return *this; } /** *

The user data to make available to the launched EC2 instances. For more * information, see Instance * metadata and user data (Linux) and Instance * metadata and user data (Windows). If you are using a command line tool, * base64-encoding is performed for you, and you can load the text from a file. * Otherwise, you must provide base64-encoded text. User data is limited to 16 * KB.

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

The user data to make available to the launched EC2 instances. For more * information, see Instance * metadata and user data (Linux) and Instance * metadata and user data (Windows). If you are using a command line tool, * base64-encoding is performed for you, and you can load the text from a file. * Otherwise, you must provide base64-encoded text. User data is limited to 16 * KB.

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

The user data to make available to the launched EC2 instances. For more * information, see Instance * metadata and user data (Linux) and Instance * metadata and user data (Windows). If you are using a command line tool, * base64-encoding is performed for you, and you can load the text from a file. * Otherwise, you must provide base64-encoded text. User data is limited to 16 * KB.

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

The user data to make available to the launched EC2 instances. For more * information, see Instance * metadata and user data (Linux) and Instance * metadata and user data (Windows). If you are using a command line tool, * base64-encoding is performed for you, and you can load the text from a file. * Otherwise, you must provide base64-encoded text. User data is limited to 16 * KB.

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

The user data to make available to the launched EC2 instances. For more * information, see Instance * metadata and user data (Linux) and Instance * metadata and user data (Windows). If you are using a command line tool, * base64-encoding is performed for you, and you can load the text from a file. * Otherwise, you must provide base64-encoded text. User data is limited to 16 * KB.

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

The user data to make available to the launched EC2 instances. For more * information, see Instance * metadata and user data (Linux) and Instance * metadata and user data (Windows). If you are using a command line tool, * base64-encoding is performed for you, and you can load the text from a file. * Otherwise, you must provide base64-encoded text. User data is limited to 16 * KB.

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

The user data to make available to the launched EC2 instances. For more * information, see Instance * metadata and user data (Linux) and Instance * metadata and user data (Windows). If you are using a command line tool, * base64-encoding is performed for you, and you can load the text from a file. * Otherwise, you must provide base64-encoded text. User data is limited to 16 * KB.

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

The user data to make available to the launched EC2 instances. For more * information, see Instance * metadata and user data (Linux) and Instance * metadata and user data (Windows). If you are using a command line tool, * base64-encoding is performed for you, and you can load the text from a file. * Otherwise, you must provide base64-encoded text. User data is limited to 16 * KB.

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

The ID of the instance to use to create the launch configuration. The new * launch configuration derives attributes from the instance, except for the block * device mapping.

To create a launch configuration with a block device * mapping or override any other instance attributes, specify them as part of the * same request.

For more information, see Creating * a launch configuration using an EC2 instance in the Amazon EC2 Auto * Scaling User Guide.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The ID of the instance to use to create the launch configuration. The new * launch configuration derives attributes from the instance, except for the block * device mapping.

To create a launch configuration with a block device * mapping or override any other instance attributes, specify them as part of the * same request.

For more information, see Creating * a launch configuration using an EC2 instance in the Amazon EC2 Auto * Scaling User Guide.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The ID of the instance to use to create the launch configuration. The new * launch configuration derives attributes from the instance, except for the block * device mapping.

To create a launch configuration with a block device * mapping or override any other instance attributes, specify them as part of the * same request.

For more information, see Creating * a launch configuration using an EC2 instance in the Amazon EC2 Auto * Scaling User Guide.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The ID of the instance to use to create the launch configuration. The new * launch configuration derives attributes from the instance, except for the block * device mapping.

To create a launch configuration with a block device * mapping or override any other instance attributes, specify them as part of the * same request.

For more information, see Creating * a launch configuration using an EC2 instance in the Amazon EC2 Auto * Scaling User Guide.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The ID of the instance to use to create the launch configuration. The new * launch configuration derives attributes from the instance, except for the block * device mapping.

To create a launch configuration with a block device * mapping or override any other instance attributes, specify them as part of the * same request.

For more information, see Creating * a launch configuration using an EC2 instance in the Amazon EC2 Auto * Scaling User Guide.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The ID of the instance to use to create the launch configuration. The new * launch configuration derives attributes from the instance, except for the block * device mapping.

To create a launch configuration with a block device * mapping or override any other instance attributes, specify them as part of the * same request.

For more information, see Creating * a launch configuration using an EC2 instance in the Amazon EC2 Auto * Scaling User Guide.

*/ inline CreateLaunchConfigurationRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The ID of the instance to use to create the launch configuration. The new * launch configuration derives attributes from the instance, except for the block * device mapping.

To create a launch configuration with a block device * mapping or override any other instance attributes, specify them as part of the * same request.

For more information, see Creating * a launch configuration using an EC2 instance in the Amazon EC2 Auto * Scaling User Guide.

*/ inline CreateLaunchConfigurationRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The ID of the instance to use to create the launch configuration. The new * launch configuration derives attributes from the instance, except for the block * device mapping.

To create a launch configuration with a block device * mapping or override any other instance attributes, specify them as part of the * same request.

For more information, see Creating * a launch configuration using an EC2 instance in the Amazon EC2 Auto * Scaling User Guide.

*/ inline CreateLaunchConfigurationRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

Specifies the instance type of the EC2 instance. For information about * available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an InstanceType is not * required.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

Specifies the instance type of the EC2 instance. For information about * available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an InstanceType is not * required.

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

Specifies the instance type of the EC2 instance. For information about * available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an InstanceType is not * required.

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

Specifies the instance type of the EC2 instance. For information about * available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an InstanceType is not * required.

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

Specifies the instance type of the EC2 instance. For information about * available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an InstanceType is not * required.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

Specifies the instance type of the EC2 instance. For information about * available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an InstanceType is not * required.

*/ inline CreateLaunchConfigurationRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

Specifies the instance type of the EC2 instance. For information about * available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an InstanceType is not * required.

*/ inline CreateLaunchConfigurationRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

Specifies the instance type of the EC2 instance. For information about * available instance types, see Available * instance types in the Amazon EC2 User Guide for Linux Instances.

*

If you specify InstanceId, an InstanceType is not * required.

*/ inline CreateLaunchConfigurationRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

The ID of the kernel associated with the AMI.

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

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

The ID of the kernel associated with the AMI.

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

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

The ID of the kernel associated with the AMI.

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

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

The ID of the kernel associated with the AMI.

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

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

The ID of the kernel associated with the AMI.

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

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

The ID of the kernel associated with the AMI.

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

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

The ID of the kernel associated with the AMI.

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

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

The ID of the kernel associated with the AMI.

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

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

The ID of the RAM disk to select.

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

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

The ID of the RAM disk to select.

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

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

The ID of the RAM disk to select.

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

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

The ID of the RAM disk to select.

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

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

The ID of the RAM disk to select.

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

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

The ID of the RAM disk to select.

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

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

The ID of the RAM disk to select.

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

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

The ID of the RAM disk to select.

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

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

The block device mapping entries that define the block devices to attach to * the instances at launch. By default, the block devices specified in the block * device mapping for the AMI are used. For more information, see Block * device mappings in the Amazon EC2 User Guide for Linux Instances.

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

The block device mapping entries that define the block devices to attach to * the instances at launch. By default, the block devices specified in the block * device mapping for the AMI are used. For more information, see Block * device mappings in the Amazon EC2 User Guide for Linux Instances.

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

The block device mapping entries that define the block devices to attach to * the instances at launch. By default, the block devices specified in the block * device mapping for the AMI are used. For more information, see Block * device mappings in the Amazon EC2 User Guide for Linux Instances.

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

The block device mapping entries that define the block devices to attach to * the instances at launch. By default, the block devices specified in the block * device mapping for the AMI are used. For more information, see Block * device mappings in the Amazon EC2 User Guide for Linux Instances.

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

The block device mapping entries that define the block devices to attach to * the instances at launch. By default, the block devices specified in the block * device mapping for the AMI are used. For more information, see Block * device mappings in the Amazon EC2 User Guide for Linux Instances.

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

The block device mapping entries that define the block devices to attach to * the instances at launch. By default, the block devices specified in the block * device mapping for the AMI are used. For more information, see Block * device mappings in the Amazon EC2 User Guide for Linux Instances.

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

The block device mapping entries that define the block devices to attach to * the instances at launch. By default, the block devices specified in the block * device mapping for the AMI are used. For more information, see Block * device mappings in the Amazon EC2 User Guide for Linux Instances.

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

The block device mapping entries that define the block devices to attach to * the instances at launch. By default, the block devices specified in the block * device mapping for the AMI are used. For more information, see Block * device mappings in the Amazon EC2 User Guide for Linux Instances.

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

Controls whether instances in this group are launched with detailed * (true) or basic (false) monitoring.

The default * value is true (enabled).

When detailed * monitoring is enabled, Amazon CloudWatch generates metrics every minute and your * account is charged a fee. When you disable detailed monitoring, CloudWatch * generates metrics every 5 minutes. For more information, see Configure * Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User * Guide.

*/ inline const InstanceMonitoring& GetInstanceMonitoring() const{ return m_instanceMonitoring; } /** *

Controls whether instances in this group are launched with detailed * (true) or basic (false) monitoring.

The default * value is true (enabled).

When detailed * monitoring is enabled, Amazon CloudWatch generates metrics every minute and your * account is charged a fee. When you disable detailed monitoring, CloudWatch * generates metrics every 5 minutes. For more information, see Configure * Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User * Guide.

*/ inline bool InstanceMonitoringHasBeenSet() const { return m_instanceMonitoringHasBeenSet; } /** *

Controls whether instances in this group are launched with detailed * (true) or basic (false) monitoring.

The default * value is true (enabled).

When detailed * monitoring is enabled, Amazon CloudWatch generates metrics every minute and your * account is charged a fee. When you disable detailed monitoring, CloudWatch * generates metrics every 5 minutes. For more information, see Configure * Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User * Guide.

*/ inline void SetInstanceMonitoring(const InstanceMonitoring& value) { m_instanceMonitoringHasBeenSet = true; m_instanceMonitoring = value; } /** *

Controls whether instances in this group are launched with detailed * (true) or basic (false) monitoring.

The default * value is true (enabled).

When detailed * monitoring is enabled, Amazon CloudWatch generates metrics every minute and your * account is charged a fee. When you disable detailed monitoring, CloudWatch * generates metrics every 5 minutes. For more information, see Configure * Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User * Guide.

*/ inline void SetInstanceMonitoring(InstanceMonitoring&& value) { m_instanceMonitoringHasBeenSet = true; m_instanceMonitoring = std::move(value); } /** *

Controls whether instances in this group are launched with detailed * (true) or basic (false) monitoring.

The default * value is true (enabled).

When detailed * monitoring is enabled, Amazon CloudWatch generates metrics every minute and your * account is charged a fee. When you disable detailed monitoring, CloudWatch * generates metrics every 5 minutes. For more information, see Configure * Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User * Guide.

*/ inline CreateLaunchConfigurationRequest& WithInstanceMonitoring(const InstanceMonitoring& value) { SetInstanceMonitoring(value); return *this;} /** *

Controls whether instances in this group are launched with detailed * (true) or basic (false) monitoring.

The default * value is true (enabled).

When detailed * monitoring is enabled, Amazon CloudWatch generates metrics every minute and your * account is charged a fee. When you disable detailed monitoring, CloudWatch * generates metrics every 5 minutes. For more information, see Configure * Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User * Guide.

*/ inline CreateLaunchConfigurationRequest& WithInstanceMonitoring(InstanceMonitoring&& value) { SetInstanceMonitoring(std::move(value)); return *this;} /** *

The maximum hourly price to be paid for any Spot Instance launched to fulfill * the request. Spot Instances are launched when the price you specify exceeds the * current Spot price. For more information, see Request * Spot Instances for fault-tolerant and flexible applications in the Amazon * EC2 Auto Scaling User Guide.

Valid Range: Minimum value of 0.001

*

When you change your maximum price by creating a new launch * configuration, running instances will continue to run as long as the maximum * price for those running instances is higher than the current Spot price.

* */ inline const Aws::String& GetSpotPrice() const{ return m_spotPrice; } /** *

The maximum hourly price to be paid for any Spot Instance launched to fulfill * the request. Spot Instances are launched when the price you specify exceeds the * current Spot price. For more information, see Request * Spot Instances for fault-tolerant and flexible applications in the Amazon * EC2 Auto Scaling User Guide.

Valid Range: Minimum value of 0.001

*

When you change your maximum price by creating a new launch * configuration, running instances will continue to run as long as the maximum * price for those running instances is higher than the current Spot price.

* */ inline bool SpotPriceHasBeenSet() const { return m_spotPriceHasBeenSet; } /** *

The maximum hourly price to be paid for any Spot Instance launched to fulfill * the request. Spot Instances are launched when the price you specify exceeds the * current Spot price. For more information, see Request * Spot Instances for fault-tolerant and flexible applications in the Amazon * EC2 Auto Scaling User Guide.

Valid Range: Minimum value of 0.001

*

When you change your maximum price by creating a new launch * configuration, running instances will continue to run as long as the maximum * price for those running instances is higher than the current Spot price.

* */ inline void SetSpotPrice(const Aws::String& value) { m_spotPriceHasBeenSet = true; m_spotPrice = value; } /** *

The maximum hourly price to be paid for any Spot Instance launched to fulfill * the request. Spot Instances are launched when the price you specify exceeds the * current Spot price. For more information, see Request * Spot Instances for fault-tolerant and flexible applications in the Amazon * EC2 Auto Scaling User Guide.

Valid Range: Minimum value of 0.001

*

When you change your maximum price by creating a new launch * configuration, running instances will continue to run as long as the maximum * price for those running instances is higher than the current Spot price.

* */ inline void SetSpotPrice(Aws::String&& value) { m_spotPriceHasBeenSet = true; m_spotPrice = std::move(value); } /** *

The maximum hourly price to be paid for any Spot Instance launched to fulfill * the request. Spot Instances are launched when the price you specify exceeds the * current Spot price. For more information, see Request * Spot Instances for fault-tolerant and flexible applications in the Amazon * EC2 Auto Scaling User Guide.

Valid Range: Minimum value of 0.001

*

When you change your maximum price by creating a new launch * configuration, running instances will continue to run as long as the maximum * price for those running instances is higher than the current Spot price.

* */ inline void SetSpotPrice(const char* value) { m_spotPriceHasBeenSet = true; m_spotPrice.assign(value); } /** *

The maximum hourly price to be paid for any Spot Instance launched to fulfill * the request. Spot Instances are launched when the price you specify exceeds the * current Spot price. For more information, see Request * Spot Instances for fault-tolerant and flexible applications in the Amazon * EC2 Auto Scaling User Guide.

Valid Range: Minimum value of 0.001

*

When you change your maximum price by creating a new launch * configuration, running instances will continue to run as long as the maximum * price for those running instances is higher than the current Spot price.

* */ inline CreateLaunchConfigurationRequest& WithSpotPrice(const Aws::String& value) { SetSpotPrice(value); return *this;} /** *

The maximum hourly price to be paid for any Spot Instance launched to fulfill * the request. Spot Instances are launched when the price you specify exceeds the * current Spot price. For more information, see Request * Spot Instances for fault-tolerant and flexible applications in the Amazon * EC2 Auto Scaling User Guide.

Valid Range: Minimum value of 0.001

*

When you change your maximum price by creating a new launch * configuration, running instances will continue to run as long as the maximum * price for those running instances is higher than the current Spot price.

* */ inline CreateLaunchConfigurationRequest& WithSpotPrice(Aws::String&& value) { SetSpotPrice(std::move(value)); return *this;} /** *

The maximum hourly price to be paid for any Spot Instance launched to fulfill * the request. Spot Instances are launched when the price you specify exceeds the * current Spot price. For more information, see Request * Spot Instances for fault-tolerant and flexible applications in the Amazon * EC2 Auto Scaling User Guide.

Valid Range: Minimum value of 0.001

*

When you change your maximum price by creating a new launch * configuration, running instances will continue to run as long as the maximum * price for those running instances is higher than the current Spot price.

* */ inline CreateLaunchConfigurationRequest& WithSpotPrice(const char* value) { SetSpotPrice(value); return *this;} /** *

The name or the Amazon Resource Name (ARN) of the instance profile associated * with the IAM role for the instance. The instance profile contains the IAM role. * For more information, see IAM * role for applications that run on Amazon EC2 instances in the Amazon EC2 * Auto Scaling User Guide.

*/ inline const Aws::String& GetIamInstanceProfile() const{ return m_iamInstanceProfile; } /** *

The name or the Amazon Resource Name (ARN) of the instance profile associated * with the IAM role for the instance. The instance profile contains the IAM role. * For more information, see IAM * role for applications that run on Amazon EC2 instances in the Amazon EC2 * Auto Scaling User Guide.

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

The name or the Amazon Resource Name (ARN) of the instance profile associated * with the IAM role for the instance. The instance profile contains the IAM role. * For more information, see IAM * role for applications that run on Amazon EC2 instances in the Amazon EC2 * Auto Scaling User Guide.

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

The name or the Amazon Resource Name (ARN) of the instance profile associated * with the IAM role for the instance. The instance profile contains the IAM role. * For more information, see IAM * role for applications that run on Amazon EC2 instances in the Amazon EC2 * Auto Scaling User Guide.

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

The name or the Amazon Resource Name (ARN) of the instance profile associated * with the IAM role for the instance. The instance profile contains the IAM role. * For more information, see IAM * role for applications that run on Amazon EC2 instances in the Amazon EC2 * Auto Scaling User Guide.

*/ inline void SetIamInstanceProfile(const char* value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile.assign(value); } /** *

The name or the Amazon Resource Name (ARN) of the instance profile associated * with the IAM role for the instance. The instance profile contains the IAM role. * For more information, see IAM * role for applications that run on Amazon EC2 instances in the Amazon EC2 * Auto Scaling User Guide.

*/ inline CreateLaunchConfigurationRequest& WithIamInstanceProfile(const Aws::String& value) { SetIamInstanceProfile(value); return *this;} /** *

The name or the Amazon Resource Name (ARN) of the instance profile associated * with the IAM role for the instance. The instance profile contains the IAM role. * For more information, see IAM * role for applications that run on Amazon EC2 instances in the Amazon EC2 * Auto Scaling User Guide.

*/ inline CreateLaunchConfigurationRequest& WithIamInstanceProfile(Aws::String&& value) { SetIamInstanceProfile(std::move(value)); return *this;} /** *

The name or the Amazon Resource Name (ARN) of the instance profile associated * with the IAM role for the instance. The instance profile contains the IAM role. * For more information, see IAM * role for applications that run on Amazon EC2 instances in the Amazon EC2 * Auto Scaling User Guide.

*/ inline CreateLaunchConfigurationRequest& WithIamInstanceProfile(const char* value) { SetIamInstanceProfile(value); return *this;} /** *

Specifies whether the launch configuration is optimized for EBS I/O * (true) or not (false). The optimization provides * dedicated throughput to Amazon EBS and an optimized configuration stack to * provide optimal I/O performance. This optimization is not available with all * instance types. Additional fees are incurred when you enable EBS optimization * for an instance type that is not EBS-optimized by default. For more information, * see Amazon * EBS-optimized instances in the Amazon EC2 User Guide for Linux * Instances.

The default value is false.

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

Specifies whether the launch configuration is optimized for EBS I/O * (true) or not (false). The optimization provides * dedicated throughput to Amazon EBS and an optimized configuration stack to * provide optimal I/O performance. This optimization is not available with all * instance types. Additional fees are incurred when you enable EBS optimization * for an instance type that is not EBS-optimized by default. For more information, * see Amazon * EBS-optimized instances in the Amazon EC2 User Guide for Linux * Instances.

The default value is false.

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

Specifies whether the launch configuration is optimized for EBS I/O * (true) or not (false). The optimization provides * dedicated throughput to Amazon EBS and an optimized configuration stack to * provide optimal I/O performance. This optimization is not available with all * instance types. Additional fees are incurred when you enable EBS optimization * for an instance type that is not EBS-optimized by default. For more information, * see Amazon * EBS-optimized instances in the Amazon EC2 User Guide for Linux * Instances.

The default value is false.

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

Specifies whether the launch configuration is optimized for EBS I/O * (true) or not (false). The optimization provides * dedicated throughput to Amazon EBS and an optimized configuration stack to * provide optimal I/O performance. This optimization is not available with all * instance types. Additional fees are incurred when you enable EBS optimization * for an instance type that is not EBS-optimized by default. For more information, * see Amazon * EBS-optimized instances in the Amazon EC2 User Guide for Linux * Instances.

The default value is false.

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

Specifies whether to assign a public IPv4 address to the group's instances. * If the instance is launched into a default subnet, the default is to assign a * public IPv4 address, unless you disabled the option to assign a public IPv4 * address on the subnet. If the instance is launched into a nondefault subnet, the * default is not to assign a public IPv4 address, unless you enabled the option to * assign a public IPv4 address on the subnet.

If you specify * true, each instance in the Auto Scaling group receives a unique * public IPv4 address. For more information, see Launching * Auto Scaling instances in a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify this property, you must specify at least one * subnet for VPCZoneIdentifier when you create your group.

*/ inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; } /** *

Specifies whether to assign a public IPv4 address to the group's instances. * If the instance is launched into a default subnet, the default is to assign a * public IPv4 address, unless you disabled the option to assign a public IPv4 * address on the subnet. If the instance is launched into a nondefault subnet, the * default is not to assign a public IPv4 address, unless you enabled the option to * assign a public IPv4 address on the subnet.

If you specify * true, each instance in the Auto Scaling group receives a unique * public IPv4 address. For more information, see Launching * Auto Scaling instances in a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify this property, you must specify at least one * subnet for VPCZoneIdentifier when you create your group.

*/ inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; } /** *

Specifies whether to assign a public IPv4 address to the group's instances. * If the instance is launched into a default subnet, the default is to assign a * public IPv4 address, unless you disabled the option to assign a public IPv4 * address on the subnet. If the instance is launched into a nondefault subnet, the * default is not to assign a public IPv4 address, unless you enabled the option to * assign a public IPv4 address on the subnet.

If you specify * true, each instance in the Auto Scaling group receives a unique * public IPv4 address. For more information, see Launching * Auto Scaling instances in a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify this property, you must specify at least one * subnet for VPCZoneIdentifier when you create your group.

*/ inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; } /** *

Specifies whether to assign a public IPv4 address to the group's instances. * If the instance is launched into a default subnet, the default is to assign a * public IPv4 address, unless you disabled the option to assign a public IPv4 * address on the subnet. If the instance is launched into a nondefault subnet, the * default is not to assign a public IPv4 address, unless you enabled the option to * assign a public IPv4 address on the subnet.

If you specify * true, each instance in the Auto Scaling group receives a unique * public IPv4 address. For more information, see Launching * Auto Scaling instances in a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify this property, you must specify at least one * subnet for VPCZoneIdentifier when you create your group.

*/ inline CreateLaunchConfigurationRequest& WithAssociatePublicIpAddress(bool value) { SetAssociatePublicIpAddress(value); return *this;} /** *

The tenancy of the instance, either default or * dedicated. An instance with dedicated tenancy runs on * isolated, single-tenant hardware and can only be launched into a VPC. To launch * dedicated instances into a shared tenancy VPC (a VPC with the instance placement * tenancy attribute set to default), you must set the value of this * property to dedicated. For more information, see Configuring * instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto * Scaling User Guide.

If you specify PlacementTenancy, you * must specify at least one subnet for VPCZoneIdentifier when you * create your group.

Valid values: default | * dedicated

*/ inline const Aws::String& GetPlacementTenancy() const{ return m_placementTenancy; } /** *

The tenancy of the instance, either default or * dedicated. An instance with dedicated tenancy runs on * isolated, single-tenant hardware and can only be launched into a VPC. To launch * dedicated instances into a shared tenancy VPC (a VPC with the instance placement * tenancy attribute set to default), you must set the value of this * property to dedicated. For more information, see Configuring * instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto * Scaling User Guide.

If you specify PlacementTenancy, you * must specify at least one subnet for VPCZoneIdentifier when you * create your group.

Valid values: default | * dedicated

*/ inline bool PlacementTenancyHasBeenSet() const { return m_placementTenancyHasBeenSet; } /** *

The tenancy of the instance, either default or * dedicated. An instance with dedicated tenancy runs on * isolated, single-tenant hardware and can only be launched into a VPC. To launch * dedicated instances into a shared tenancy VPC (a VPC with the instance placement * tenancy attribute set to default), you must set the value of this * property to dedicated. For more information, see Configuring * instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto * Scaling User Guide.

If you specify PlacementTenancy, you * must specify at least one subnet for VPCZoneIdentifier when you * create your group.

Valid values: default | * dedicated

*/ inline void SetPlacementTenancy(const Aws::String& value) { m_placementTenancyHasBeenSet = true; m_placementTenancy = value; } /** *

The tenancy of the instance, either default or * dedicated. An instance with dedicated tenancy runs on * isolated, single-tenant hardware and can only be launched into a VPC. To launch * dedicated instances into a shared tenancy VPC (a VPC with the instance placement * tenancy attribute set to default), you must set the value of this * property to dedicated. For more information, see Configuring * instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto * Scaling User Guide.

If you specify PlacementTenancy, you * must specify at least one subnet for VPCZoneIdentifier when you * create your group.

Valid values: default | * dedicated

*/ inline void SetPlacementTenancy(Aws::String&& value) { m_placementTenancyHasBeenSet = true; m_placementTenancy = std::move(value); } /** *

The tenancy of the instance, either default or * dedicated. An instance with dedicated tenancy runs on * isolated, single-tenant hardware and can only be launched into a VPC. To launch * dedicated instances into a shared tenancy VPC (a VPC with the instance placement * tenancy attribute set to default), you must set the value of this * property to dedicated. For more information, see Configuring * instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto * Scaling User Guide.

If you specify PlacementTenancy, you * must specify at least one subnet for VPCZoneIdentifier when you * create your group.

Valid values: default | * dedicated

*/ inline void SetPlacementTenancy(const char* value) { m_placementTenancyHasBeenSet = true; m_placementTenancy.assign(value); } /** *

The tenancy of the instance, either default or * dedicated. An instance with dedicated tenancy runs on * isolated, single-tenant hardware and can only be launched into a VPC. To launch * dedicated instances into a shared tenancy VPC (a VPC with the instance placement * tenancy attribute set to default), you must set the value of this * property to dedicated. For more information, see Configuring * instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto * Scaling User Guide.

If you specify PlacementTenancy, you * must specify at least one subnet for VPCZoneIdentifier when you * create your group.

Valid values: default | * dedicated

*/ inline CreateLaunchConfigurationRequest& WithPlacementTenancy(const Aws::String& value) { SetPlacementTenancy(value); return *this;} /** *

The tenancy of the instance, either default or * dedicated. An instance with dedicated tenancy runs on * isolated, single-tenant hardware and can only be launched into a VPC. To launch * dedicated instances into a shared tenancy VPC (a VPC with the instance placement * tenancy attribute set to default), you must set the value of this * property to dedicated. For more information, see Configuring * instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto * Scaling User Guide.

If you specify PlacementTenancy, you * must specify at least one subnet for VPCZoneIdentifier when you * create your group.

Valid values: default | * dedicated

*/ inline CreateLaunchConfigurationRequest& WithPlacementTenancy(Aws::String&& value) { SetPlacementTenancy(std::move(value)); return *this;} /** *

The tenancy of the instance, either default or * dedicated. An instance with dedicated tenancy runs on * isolated, single-tenant hardware and can only be launched into a VPC. To launch * dedicated instances into a shared tenancy VPC (a VPC with the instance placement * tenancy attribute set to default), you must set the value of this * property to dedicated. For more information, see Configuring * instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto * Scaling User Guide.

If you specify PlacementTenancy, you * must specify at least one subnet for VPCZoneIdentifier when you * create your group.

Valid values: default | * dedicated

*/ inline CreateLaunchConfigurationRequest& WithPlacementTenancy(const char* value) { SetPlacementTenancy(value); return *this;} /** *

The metadata options for the instances. For more information, see Configuring * the Instance Metadata Options in the Amazon EC2 Auto Scaling User * Guide.

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

The metadata options for the instances. For more information, see Configuring * the Instance Metadata Options in the Amazon EC2 Auto Scaling User * Guide.

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

The metadata options for the instances. For more information, see Configuring * the Instance Metadata Options in the Amazon EC2 Auto Scaling User * Guide.

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

The metadata options for the instances. For more information, see Configuring * the Instance Metadata Options in the Amazon EC2 Auto Scaling User * Guide.

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

The metadata options for the instances. For more information, see Configuring * the Instance Metadata Options in the Amazon EC2 Auto Scaling User * Guide.

*/ inline CreateLaunchConfigurationRequest& WithMetadataOptions(const InstanceMetadataOptions& value) { SetMetadataOptions(value); return *this;} /** *

The metadata options for the instances. For more information, see Configuring * the Instance Metadata Options in the Amazon EC2 Auto Scaling User * Guide.

*/ inline CreateLaunchConfigurationRequest& WithMetadataOptions(InstanceMetadataOptions&& value) { SetMetadataOptions(std::move(value)); return *this;} private: Aws::String m_launchConfigurationName; bool m_launchConfigurationNameHasBeenSet = false; Aws::String m_imageId; bool m_imageIdHasBeenSet = false; Aws::String m_keyName; bool m_keyNameHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; Aws::String m_classicLinkVPCId; bool m_classicLinkVPCIdHasBeenSet = false; Aws::Vector m_classicLinkVPCSecurityGroups; bool m_classicLinkVPCSecurityGroupsHasBeenSet = false; Aws::String m_userData; bool m_userDataHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_kernelId; bool m_kernelIdHasBeenSet = false; Aws::String m_ramdiskId; bool m_ramdiskIdHasBeenSet = false; Aws::Vector m_blockDeviceMappings; bool m_blockDeviceMappingsHasBeenSet = false; InstanceMonitoring m_instanceMonitoring; bool m_instanceMonitoringHasBeenSet = false; Aws::String m_spotPrice; bool m_spotPriceHasBeenSet = false; Aws::String m_iamInstanceProfile; bool m_iamInstanceProfileHasBeenSet = false; bool m_ebsOptimized; bool m_ebsOptimizedHasBeenSet = false; bool m_associatePublicIpAddress; bool m_associatePublicIpAddressHasBeenSet = false; Aws::String m_placementTenancy; bool m_placementTenancyHasBeenSet = false; InstanceMetadataOptions m_metadataOptions; bool m_metadataOptionsHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws