/** * 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 AWS_AUTOSCALING_API CreateLaunchConfigurationRequest : public AutoScalingRequest { public: 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::String SerializePayload() const override; protected: 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 * an AMI in the Amazon EC2 User Guide for Linux Instances.

If * you do not specify InstanceId, you must specify * ImageId.

*/ 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 * an AMI in the Amazon EC2 User Guide for Linux Instances.

If * you do not specify InstanceId, you must specify * ImageId.

*/ 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 * an AMI in the Amazon EC2 User Guide for Linux Instances.

If * you do not specify InstanceId, you must specify * ImageId.

*/ 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 * an AMI in the Amazon EC2 User Guide for Linux Instances.

If * you do not specify InstanceId, you must specify * ImageId.

*/ 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 * an AMI in the Amazon EC2 User Guide for Linux Instances.

If * you do not specify InstanceId, you must specify * ImageId.

*/ 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 * an AMI in the Amazon EC2 User Guide for Linux Instances.

If * you do not specify InstanceId, you must specify * ImageId.

*/ 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 * an AMI in the Amazon EC2 User Guide for Linux Instances.

If * you do not specify InstanceId, you must specify * ImageId.

*/ 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 * an AMI in the Amazon EC2 User Guide for Linux Instances.

If * you do not specify InstanceId, you must specify * ImageId.

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

The name of the key pair. For more information, see Amazon * EC2 Key Pairs 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 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 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 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 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 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 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 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 groups to assign to the instances in the * Auto Scaling group.

[EC2-VPC] Specify the security group IDs. For more * information, see Security * Groups for Your VPC in the Amazon Virtual Private Cloud User * Guide.

[EC2-Classic] Specify either the security group names or the * security group IDs. For more information, see Amazon * EC2 Security Groups in the Amazon EC2 User Guide for Linux * Instances.

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

A list that contains the security groups to assign to the instances in the * Auto Scaling group.

[EC2-VPC] Specify the security group IDs. For more * information, see Security * Groups for Your VPC in the Amazon Virtual Private Cloud User * Guide.

[EC2-Classic] Specify either the security group names or the * security group IDs. For more information, see Amazon * EC2 Security Groups in the Amazon EC2 User Guide for Linux * Instances.

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

A list that contains the security groups to assign to the instances in the * Auto Scaling group.

[EC2-VPC] Specify the security group IDs. For more * information, see Security * Groups for Your VPC in the Amazon Virtual Private Cloud User * Guide.

[EC2-Classic] Specify either the security group names or the * security group IDs. For more information, see Amazon * EC2 Security Groups in the Amazon EC2 User Guide for Linux * Instances.

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

A list that contains the security groups to assign to the instances in the * Auto Scaling group.

[EC2-VPC] Specify the security group IDs. For more * information, see Security * Groups for Your VPC in the Amazon Virtual Private Cloud User * Guide.

[EC2-Classic] Specify either the security group names or the * security group IDs. For more information, see Amazon * EC2 Security Groups in the Amazon EC2 User Guide for Linux * Instances.

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

A list that contains the security groups to assign to the instances in the * Auto Scaling group.

[EC2-VPC] Specify the security group IDs. For more * information, see Security * Groups for Your VPC in the Amazon Virtual Private Cloud User * Guide.

[EC2-Classic] Specify either the security group names or the * security group IDs. For more information, see Amazon * EC2 Security Groups in the Amazon EC2 User Guide for Linux * Instances.

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

A list that contains the security groups to assign to the instances in the * Auto Scaling group.

[EC2-VPC] Specify the security group IDs. For more * information, see Security * Groups for Your VPC in the Amazon Virtual Private Cloud User * Guide.

[EC2-Classic] Specify either the security group names or the * security group IDs. For more information, see Amazon * EC2 Security Groups in the Amazon EC2 User Guide for Linux * Instances.

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

A list that contains the security groups to assign to the instances in the * Auto Scaling group.

[EC2-VPC] Specify the security group IDs. For more * information, see Security * Groups for Your VPC in the Amazon Virtual Private Cloud User * Guide.

[EC2-Classic] Specify either the security group names or the * security group IDs. For more information, see Amazon * EC2 Security Groups in the Amazon EC2 User Guide for Linux * Instances.

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

A list that contains the security groups to assign to the instances in the * Auto Scaling group.

[EC2-VPC] Specify the security group IDs. For more * information, see Security * Groups for Your VPC in the Amazon Virtual Private Cloud User * Guide.

[EC2-Classic] Specify either the security group names or the * security group IDs. For more information, see Amazon * EC2 Security Groups in the Amazon EC2 User Guide for Linux * Instances.

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

A list that contains the security groups to assign to the instances in the * Auto Scaling group.

[EC2-VPC] Specify the security group IDs. For more * information, see Security * Groups for Your VPC in the Amazon Virtual Private Cloud User * Guide.

[EC2-Classic] Specify either the security group names or the * security group IDs. For more information, see Amazon * EC2 Security Groups in the Amazon EC2 User Guide for Linux * Instances.

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

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. * For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

This parameter can only be used if you are launching * EC2-Classic instances.

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

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. * For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

This parameter can only be used if you are launching * EC2-Classic instances.

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

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. * For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

This parameter can only be used if you are launching * EC2-Classic instances.

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

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. * For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

This parameter can only be used if you are launching * EC2-Classic instances.

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

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. * For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

This parameter can only be used if you are launching * EC2-Classic instances.

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

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. * For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

This parameter can only be used if you are launching * EC2-Classic instances.

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

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. * For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

This parameter can only be used if you are launching * EC2-Classic instances.

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

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. * For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

This parameter can only be used if you are launching * EC2-Classic instances.

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

The IDs of one or more security groups for the specified ClassicLink-enabled * VPC. For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify the ClassicLinkVPCId parameter, * you must specify this parameter.

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

The IDs of one or more security groups for the specified ClassicLink-enabled * VPC. For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify the ClassicLinkVPCId parameter, * you must specify this parameter.

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

The IDs of one or more security groups for the specified ClassicLink-enabled * VPC. For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify the ClassicLinkVPCId parameter, * you must specify this parameter.

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

The IDs of one or more security groups for the specified ClassicLink-enabled * VPC. For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify the ClassicLinkVPCId parameter, * you must specify this parameter.

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

The IDs of one or more security groups for the specified ClassicLink-enabled * VPC. For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify the ClassicLinkVPCId parameter, * you must specify this parameter.

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

The IDs of one or more security groups for the specified ClassicLink-enabled * VPC. For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify the ClassicLinkVPCId parameter, * you must specify this parameter.

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

The IDs of one or more security groups for the specified ClassicLink-enabled * VPC. For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify the ClassicLinkVPCId parameter, * you must specify this parameter.

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

The IDs of one or more security groups for the specified ClassicLink-enabled * VPC. For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify the ClassicLinkVPCId parameter, * you must specify this parameter.

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

The IDs of one or more security groups for the specified ClassicLink-enabled * VPC. For more information, see ClassicLink * in the Amazon EC2 User Guide for Linux Instances and Linking * EC2-Classic Instances to a VPC in the Amazon EC2 Auto Scaling User * Guide.

If you specify the ClassicLinkVPCId parameter, * you must specify this parameter.

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

The Base64-encoded user data to make available to the launched EC2 instances. * For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The Base64-encoded user data to make available to the launched EC2 instances. * For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The Base64-encoded user data to make available to the launched EC2 instances. * For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The Base64-encoded user data to make available to the launched EC2 instances. * For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The Base64-encoded user data to make available to the launched EC2 instances. * For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The Base64-encoded user data to make available to the launched EC2 instances. * For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The Base64-encoded user data to make available to the launched EC2 instances. * For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The Base64-encoded user data to make available to the launched EC2 instances. * For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

*/ 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 Create * a Launch Configuration Using an EC2 Instance in the Amazon EC2 Auto * Scaling User Guide.

If you do not specify InstanceId, * you must specify both ImageId and InstanceType.

*/ 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 Create * a Launch Configuration Using an EC2 Instance in the Amazon EC2 Auto * Scaling User Guide.

If you do not specify InstanceId, * you must specify both ImageId and InstanceType.

*/ 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 Create * a Launch Configuration Using an EC2 Instance in the Amazon EC2 Auto * Scaling User Guide.

If you do not specify InstanceId, * you must specify both ImageId and InstanceType.

*/ 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 Create * a Launch Configuration Using an EC2 Instance in the Amazon EC2 Auto * Scaling User Guide.

If you do not specify InstanceId, * you must specify both ImageId and InstanceType.

*/ 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 Create * a Launch Configuration Using an EC2 Instance in the Amazon EC2 Auto * Scaling User Guide.

If you do not specify InstanceId, * you must specify both ImageId and InstanceType.

*/ 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 Create * a Launch Configuration Using an EC2 Instance in the Amazon EC2 Auto * Scaling User Guide.

If you do not specify InstanceId, * you must specify both ImageId and InstanceType.

*/ 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 Create * a Launch Configuration Using an EC2 Instance in the Amazon EC2 Auto * Scaling User Guide.

If you do not specify InstanceId, * you must specify both ImageId and InstanceType.

*/ 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 Create * a Launch Configuration Using an EC2 Instance in the Amazon EC2 Auto * Scaling User Guide.

If you do not specify InstanceId, * you must specify both ImageId and InstanceType.

*/ 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 do not specify InstanceId, you must specify * InstanceType.

*/ 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 do not specify InstanceId, you must specify * InstanceType.

*/ 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 do not specify InstanceId, you must specify * InstanceType.

*/ 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 do not specify InstanceId, you must specify * InstanceType.

*/ 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 do not specify InstanceId, you must specify * InstanceType.

*/ 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 do not specify InstanceId, you must specify * InstanceType.

*/ 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 do not specify InstanceId, you must specify * InstanceType.

*/ 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 do not specify InstanceId, you must specify * InstanceType.

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

The ID of the kernel associated with the AMI.

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

The ID of the kernel associated with the AMI.

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

The ID of the kernel associated with the AMI.

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

The ID of the kernel associated with the AMI.

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

The ID of the kernel associated with the AMI.

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

The ID of the kernel associated with the AMI.

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

The ID of the kernel associated with the AMI.

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

The ID of the kernel associated with the AMI.

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

The ID of the RAM disk to select.

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

The ID of the RAM disk to select.

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

The ID of the RAM disk to select.

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

The ID of the RAM disk to select.

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

The ID of the RAM disk to select.

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

The ID of the RAM disk to select.

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

The ID of the RAM disk to select.

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

The ID of the RAM disk to select.

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

A block device mapping, which specifies the block devices for the instance. * You can specify virtual devices and EBS volumes. For more information, see Block * Device Mapping in the Amazon EC2 User Guide for Linux Instances.

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

A block device mapping, which specifies the block devices for the instance. * You can specify virtual devices and EBS volumes. For more information, see Block * Device Mapping in the Amazon EC2 User Guide for Linux Instances.

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

A block device mapping, which specifies the block devices for the instance. * You can specify virtual devices and EBS volumes. For more information, see Block * Device Mapping in the Amazon EC2 User Guide for Linux Instances.

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

A block device mapping, which specifies the block devices for the instance. * You can specify virtual devices and EBS volumes. For more information, see Block * Device Mapping in the Amazon EC2 User Guide for Linux Instances.

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

A block device mapping, which specifies the block devices for the instance. * You can specify virtual devices and EBS volumes. For more information, see Block * Device Mapping in the Amazon EC2 User Guide for Linux Instances.

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

A block device mapping, which specifies the block devices for the instance. * You can specify virtual devices and EBS volumes. For more information, see Block * Device Mapping in the Amazon EC2 User Guide for Linux Instances.

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

A block device mapping, which specifies the block devices for the instance. * You can specify virtual devices and EBS volumes. For more information, see Block * Device Mapping 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; } /** *

A block device mapping, which specifies the block devices for the instance. * You can specify virtual devices and EBS volumes. For more information, see Block * Device Mapping 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 Launching * Spot Instances in Your Auto Scaling Group in the Amazon EC2 Auto Scaling * User Guide.

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 Launching * Spot Instances in Your Auto Scaling Group in the Amazon EC2 Auto Scaling * User Guide.

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 Launching * Spot Instances in Your Auto Scaling Group in the Amazon EC2 Auto Scaling * User Guide.

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 Launching * Spot Instances in Your Auto Scaling Group in the Amazon EC2 Auto Scaling * User Guide.

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 Launching * Spot Instances in Your Auto Scaling Group in the Amazon EC2 Auto Scaling * User Guide.

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 Launching * Spot Instances in Your Auto Scaling Group in the Amazon EC2 Auto Scaling * User Guide.

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 Launching * Spot Instances in Your Auto Scaling Group in the Amazon EC2 Auto Scaling * User Guide.

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 Launching * Spot Instances in Your Auto Scaling Group in the Amazon EC2 Auto Scaling * User Guide.

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

For Auto Scaling groups that are running in a virtual private cloud (VPC), * specifies whether to assign a public IP address to the group's instances. If you * specify true, each instance in the Auto Scaling group receives a * unique public IP address. For more information, see Launching * Auto Scaling Instances in a VPC in the Amazon EC2 Auto Scaling User * Guide.

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

*

If the instance is launched into a default subnet, the default is to assign a * public IP address, unless you disabled the option to assign a public IP address * on the subnet. If the instance is launched into a nondefault subnet, the default * is not to assign a public IP address, unless you enabled the option to assign a * public IP address on the subnet.

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

For Auto Scaling groups that are running in a virtual private cloud (VPC), * specifies whether to assign a public IP address to the group's instances. If you * specify true, each instance in the Auto Scaling group receives a * unique public IP address. For more information, see Launching * Auto Scaling Instances in a VPC in the Amazon EC2 Auto Scaling User * Guide.

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

*

If the instance is launched into a default subnet, the default is to assign a * public IP address, unless you disabled the option to assign a public IP address * on the subnet. If the instance is launched into a nondefault subnet, the default * is not to assign a public IP address, unless you enabled the option to assign a * public IP address on the subnet.

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

For Auto Scaling groups that are running in a virtual private cloud (VPC), * specifies whether to assign a public IP address to the group's instances. If you * specify true, each instance in the Auto Scaling group receives a * unique public IP address. For more information, see Launching * Auto Scaling Instances in a VPC in the Amazon EC2 Auto Scaling User * Guide.

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

*

If the instance is launched into a default subnet, the default is to assign a * public IP address, unless you disabled the option to assign a public IP address * on the subnet. If the instance is launched into a nondefault subnet, the default * is not to assign a public IP address, unless you enabled the option to assign a * public IP address on the subnet.

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

For Auto Scaling groups that are running in a virtual private cloud (VPC), * specifies whether to assign a public IP address to the group's instances. If you * specify true, each instance in the Auto Scaling group receives a * unique public IP address. For more information, see Launching * Auto Scaling Instances in a VPC in the Amazon EC2 Auto Scaling User * Guide.

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

*

If the instance is launched into a default subnet, the default is to assign a * public IP address, unless you disabled the option to assign a public IP address * on the subnet. If the instance is launched into a nondefault subnet, the default * is not to assign a public IP address, unless you enabled the option to assign a * public IP address on the subnet.

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

The tenancy of the instance. 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 parameter to dedicated.

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

For more * information, see Instance * Placement Tenancy in the Amazon EC2 Auto Scaling User Guide.

*

Valid Values: default | dedicated

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

The tenancy of the instance. 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 parameter to dedicated.

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

For more * information, see Instance * Placement Tenancy in the Amazon EC2 Auto Scaling User Guide.

*

Valid Values: default | dedicated

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

The tenancy of the instance. 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 parameter to dedicated.

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

For more * information, see Instance * Placement Tenancy in the Amazon EC2 Auto Scaling User Guide.

*

Valid Values: default | dedicated

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

The tenancy of the instance. 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 parameter to dedicated.

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

For more * information, see Instance * Placement Tenancy in the Amazon EC2 Auto Scaling User Guide.

*

Valid Values: default | dedicated

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

The tenancy of the instance. 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 parameter to dedicated.

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

For more * information, see Instance * Placement Tenancy in the Amazon EC2 Auto Scaling User Guide.

*

Valid Values: default | dedicated

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

The tenancy of the instance. 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 parameter to dedicated.

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

For more * information, see Instance * Placement Tenancy in the Amazon EC2 Auto Scaling User Guide.

*

Valid Values: default | dedicated

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

The tenancy of the instance. 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 parameter to dedicated.

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

For more * information, see Instance * Placement Tenancy in the Amazon EC2 Auto Scaling User Guide.

*

Valid Values: default | dedicated

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

The tenancy of the instance. 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 parameter to dedicated.

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

For more * information, see Instance * Placement Tenancy in the Amazon EC2 Auto Scaling User Guide.

*

Valid Values: default | dedicated

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

The metadata options for the instances. For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The metadata options for the instances. For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The metadata options for the instances. For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The metadata options for the instances. For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The metadata options for the instances. For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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

The metadata options for the instances. For more information, see Instance * Metadata and User Data in the Amazon EC2 User Guide for Linux * Instances.

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