/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an override for a launch template. Currently, the only supported
* override is instance type. The maximum number of instance type overrides
* that can be associated with an Auto Scaling group is 20.See
* Also:
AWS
* API Reference
The instance type. You must use an instance type that is supported in your * requested Region and Availability Zones.
For information about available * instance types, see Available * Instance Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *The instance type. You must use an instance type that is supported in your * requested Region and Availability Zones.
For information about available * instance types, see Available * Instance Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *The instance type. You must use an instance type that is supported in your * requested Region and Availability Zones.
For information about available * instance types, see Available * Instance Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *The instance type. You must use an instance type that is supported in your * requested Region and Availability Zones.
For information about available * instance types, see Available * Instance Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *The instance type. You must use an instance type that is supported in your * requested Region and Availability Zones.
For information about available * instance types, see Available * Instance Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *The instance type. You must use an instance type that is supported in your * requested Region and Availability Zones.
For information about available * instance types, see Available * Instance Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline LaunchTemplateOverrides& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *The instance type. You must use an instance type that is supported in your * requested Region and Availability Zones.
For information about available * instance types, see Available * Instance Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline LaunchTemplateOverrides& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *The instance type. You must use an instance type that is supported in your * requested Region and Availability Zones.
For information about available * instance types, see Available * Instance Types in the Amazon Elastic Compute Cloud User Guide.
*/ inline LaunchTemplateOverrides& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *The number of capacity units, which gives the instance type a proportional * weight to other instance types. For example, larger instance types are generally * weighted more than smaller instance types. These are the same units that you * chose to set the desired capacity in terms of instances, or a performance * attribute such as vCPUs, memory, or I/O.
For more information, see Instance * Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
*/ inline const Aws::String& GetWeightedCapacity() const{ return m_weightedCapacity; } /** *The number of capacity units, which gives the instance type a proportional * weight to other instance types. For example, larger instance types are generally * weighted more than smaller instance types. These are the same units that you * chose to set the desired capacity in terms of instances, or a performance * attribute such as vCPUs, memory, or I/O.
For more information, see Instance * Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
*/ inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; } /** *The number of capacity units, which gives the instance type a proportional * weight to other instance types. For example, larger instance types are generally * weighted more than smaller instance types. These are the same units that you * chose to set the desired capacity in terms of instances, or a performance * attribute such as vCPUs, memory, or I/O.
For more information, see Instance * Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
*/ inline void SetWeightedCapacity(const Aws::String& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; } /** *The number of capacity units, which gives the instance type a proportional * weight to other instance types. For example, larger instance types are generally * weighted more than smaller instance types. These are the same units that you * chose to set the desired capacity in terms of instances, or a performance * attribute such as vCPUs, memory, or I/O.
For more information, see Instance * Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
*/ inline void SetWeightedCapacity(Aws::String&& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = std::move(value); } /** *The number of capacity units, which gives the instance type a proportional * weight to other instance types. For example, larger instance types are generally * weighted more than smaller instance types. These are the same units that you * chose to set the desired capacity in terms of instances, or a performance * attribute such as vCPUs, memory, or I/O.
For more information, see Instance * Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
*/ inline void SetWeightedCapacity(const char* value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity.assign(value); } /** *The number of capacity units, which gives the instance type a proportional * weight to other instance types. For example, larger instance types are generally * weighted more than smaller instance types. These are the same units that you * chose to set the desired capacity in terms of instances, or a performance * attribute such as vCPUs, memory, or I/O.
For more information, see Instance * Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
*/ inline LaunchTemplateOverrides& WithWeightedCapacity(const Aws::String& value) { SetWeightedCapacity(value); return *this;} /** *The number of capacity units, which gives the instance type a proportional * weight to other instance types. For example, larger instance types are generally * weighted more than smaller instance types. These are the same units that you * chose to set the desired capacity in terms of instances, or a performance * attribute such as vCPUs, memory, or I/O.
For more information, see Instance * Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
*/ inline LaunchTemplateOverrides& WithWeightedCapacity(Aws::String&& value) { SetWeightedCapacity(std::move(value)); return *this;} /** *The number of capacity units, which gives the instance type a proportional * weight to other instance types. For example, larger instance types are generally * weighted more than smaller instance types. These are the same units that you * chose to set the desired capacity in terms of instances, or a performance * attribute such as vCPUs, memory, or I/O.
For more information, see Instance * Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
*/ inline LaunchTemplateOverrides& WithWeightedCapacity(const char* value) { SetWeightedCapacity(value); return *this;} private: Aws::String m_instanceType; bool m_instanceTypeHasBeenSet; Aws::String m_weightedCapacity; bool m_weightedCapacityHasBeenSet; }; } // namespace Model } // namespace AutoScaling } // namespace Aws