text:
const cluster = require('cluster')
const chalk = require('chalk')
const UglifyJS = require('uglify-es')
const Path = require('path')
const fs = require('fs')

function minifyBundle(path, mode) {
    console.log(chalk.blue('Minify '+mode+' bundle..'))

    const result = UglifyJS.minify(fs.readFileSync(path).toString())

    if (result.error) {
        console.error(chalk.red('['+mode+' Minify]'), chalk.red(result.error))
        console.error(result.error)
        process.exit(1)
    }

    if (!result.code) {
        console.error(chalk.red('['+mode+' Minify]'), chalk.red(result))
        process.exit(1)
    }

    fs.writeFile(path, result.code, function() {
        console.log(chalk.green(mode + ' minify done..'))
        process.exit(0)
    })
}

function workerCompile(value) {
    const bundle = require('./bundle.js')

    bundle(value, function() {
        minifyBundle(Path.join(process.cwd(), 'dist', 'bundle-' + value + '.js'), value)
    })

}

module.exports = function(value) {

    if(cluster.isWorker || value !== null) {
        workerCompile(value)
    } else {
        cluster.on('exit', (worker, code, signal) => {
            if (code !== 0)
                process.exit(code)
        })

        cluster.fork({ cli: JSON.stringify({ build: 'client', production: true }) })
        cluster.fork({ cli: JSON.stringify({ build: 'server', production: true }) })
    }

    return false
}


text:
#pragma once
#include <aws/autoscaling/AutoScaling_EXPORTS.h>
#include <aws/autoscaling/AutoScalingRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/autoscaling/model/InstanceMonitoring.h>
#include <aws/autoscaling/model/InstanceMetadataOptions.h>
#include <aws/autoscaling/model/BlockDeviceMapping.h>
#include <utility>

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<Aws::String>& 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<Aws::String>& 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<Aws::String>&& 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<Aws::String>& 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<Aws::String>&& 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; }

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

    /**
     *
 EC2-Classic retires on August 15, 2022. This parameter is not supported
     * after that date.

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.

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

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 Creating
     * 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 Creating
     * 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 Creating
     * 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 Creating
     * 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 Creating
     * 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 Creating
     * 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 Creating
     * 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<BlockDeviceMapping>& 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<BlockDeviceMapping>& 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<BlockDeviceMapping>&& 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<BlockDeviceMapping>& 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<BlockDeviceMapping>&& 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 Requesting
     * Spot Instances 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 Requesting
     * Spot Instances 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 Requesting
     * Spot Instances 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 Requesting
     * Spot Instances 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 Requesting
     * Spot Instances 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 Requesting
     * Spot Instances 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 Requesting
     * Spot Instances 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 Requesting
     * Spot Instances 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 Configuring
     * instance tenancy with Amazon EC2 Auto Scaling 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 Configuring
     * instance tenancy with Amazon EC2 Auto Scaling 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 Configuring
     * instance tenancy with Amazon EC2 Auto Scaling 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 Configuring
     * instance tenancy with Amazon EC2 Auto Scaling 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 Configuring
     * instance tenancy with Amazon EC2 Auto Scaling 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 Configuring
     * instance tenancy with Amazon EC2 Auto Scaling 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 Configuring
     * instance tenancy with Amazon EC2 Auto Scaling 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 Configuring
     * instance tenancy with Amazon EC2 Auto Scaling 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 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;

    Aws::String m_imageId;
    bool m_imageIdHasBeenSet;

    Aws::String m_keyName;
    bool m_keyNameHasBeenSet;

    Aws::Vector<Aws::String> m_securityGroups;
    bool m_securityGroupsHasBeenSet;

    Aws::String m_classicLinkVPCId;
    bool m_classicLinkVPCIdHasBeenSet;

    Aws::Vector<Aws::String> 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<BlockDeviceMapping> 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

redpajama_set_name: RedPajamaGithub


text:
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookLibrary
{
    class AuthorInfo
    {
        public string Author { get; set; }
        public decimal Sales { get; set; }
    }

    class Book
    {
        public string Title { get; set; }
        public string Author { get; set; }
        public string Publisher { get; set; }
        public DateTime ReleaseDate { get; set; }
        public string Isbn { get; set; }
        public decimal Price { get; set; }
    }

    class Library
    {
        public string Name { get; set; }
        public List<Book> Books { get; set; }
    }

    class BookLibrary
    {
        static void Main(string[] args)
        {
            int booksCnt = int.Parse(Console.ReadLine());
            Library myLibrary = new Library()
            {
                Name = "myBooks",
                Books = new List<Book>()
            };

            for (int i = 0; i < booksCnt; i++)
            {
                string bookInfo = Console.ReadLine();
                Book currentBook = ReadBook(bookInfo);
                myLibrary.Books.Add(currentBook);
            }

            string[] authors = myLibrary.Books.Select(b => b.Author).Distinct().ToArray();

            List<AuthorInfo> authorSales = new List<AuthorInfo>();

            foreach (string author in authors)
            {
                decimal sales = myLibrary.Books.Where(b => b.Author == author).Sum(b => b.Price);

                AuthorInfo authorInfo = new AuthorInfo
                {
                    Author = author,
                    Sales = sales
                };

                authorSales.Add(authorInfo);
            }
            authorSales = authorSales.OrderByDescending(a => a.Sales).ThenBy(a => a.Author).ToList();

            foreach (var authorSale in authorSales)
            {
                Console.WriteLine($"{authorSale.Author} -> {authorSale.Sales:F2}");
            }
        }

        static Book ReadBook(string input)
        {
            string[] tokens = input.Split(' ');
            string title = tokens[0];
            string author = tokens[1];
            string publisher = tokens[2];
            DateTime releaseDate = DateTime.ParseExact(tokens[3], "dd.MM.yyyy", CultureInfo.InvariantCulture);
            string isbn = tokens[4];
            decimal price = decimal.Parse(tokens[5]);

            Book currentBook = new Book()
            {
                Title = title,
                Author = author,
                Publisher = publisher,
                ReleaseDate = releaseDate,
                Isbn = isbn,
                Price = price
            };

            return currentBook;
        }
    }
}


text:
<ion-view>
    <ion-nav-title>
        {{profileData.firstName}} {{profileData.lastName}}
    </ion-nav-title>
    <ion-content class="profile" scroll="false">
        <form ng-submit="doUpdateProfile()">

                            Upload Avatar

                <input type="text" placeholder="First Name" ng-model="profileData.firstName" required />
                <input type="text" placeholder="Last Name" ng-model="profileData.lastName" required />
                <input type="email" placeholder="Email" ng-model="profileData.email" required />
                <input type="password" placeholder="Password" ng-model="profileData.password" />
                <input type="password" placeholder="Confirm Password" ng-model="profileData.confirm" />

            <button class="hide-on-keyboard-open profile-save button" type="submit" ng-show="currentProfile">Save</button>
            <button class="hide-on-keyboard-open profile-save button" type="submit" ng-hide="currentProfile">Create</button>
        </form>

{{successMessage}}

{{errorMessage}}

    </ion-content>
</ion-view>


text:
<?php

/**
 * @file
 * Contains \Drupal\user\Plugin\views\row\UserRow.
 */

namespace Drupal\user\Plugin\views\row;

use Drupal\views\Plugin\views\row\EntityRow;

/**
 * A row plugin which renders a user.
 *
 * @ingroup views_row_plugins
 */
class UserRow extends EntityRow {

  /**
   * {@inheritdoc}
   */
  protected function defineOptions() {
    $options = parent::defineOptions();
    $options['view_mode']['default'] = 'full';

    return $options;
  }

}


text:
import angular from 'angular';
import addresses from './lib/addresses/component';
import founders from './lib/founders/component';
import inputmask from './lib/directives/inputmask';
import parsedate from './lib/directives/parse_date';
import completeaddress from './lib/directives/complete-address';
import completename from './lib/directives/complete-name';
import completecompany from './lib/directives/complete-company';
import suggestionsconverter from './lib/services/suggestions_converter';
import '@iamadamjowett/angular-click-outside/clickoutside.directive.js'
import './lib/styles.scss';

angular.module('ext.components.forms_components', [])
  .directive('addressesComponent', addresses)
  .directive('foundersComponent', founders)
  .directive('inputMask', inputmask)
  .directive('completeAddress', completeaddress)
  .directive('completeName', completename)
  .directive('completeCompany', completecompany)
  .service('suggestionsConverter', suggestionsconverter);
export default 'ext.components.forms_components';