/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the configuration of an Auto Scaling group.See
* Also:
AWS
* API Reference
The desired capacity, or number of instances, for the Auto Scaling group.
*/ inline int GetDesiredCapacity() const{ return m_desiredCapacity; } /** *The desired capacity, or number of instances, for the Auto Scaling group.
*/ inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; } /** *The desired capacity, or number of instances, for the Auto Scaling group.
*/ inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; } /** *The desired capacity, or number of instances, for the Auto Scaling group.
*/ inline AutoScalingGroupConfiguration& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;} /** *The minimum size, or minimum number of instances, for the Auto Scaling * group.
*/ inline int GetMinSize() const{ return m_minSize; } /** *The minimum size, or minimum number of instances, for the Auto Scaling * group.
*/ inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; } /** *The minimum size, or minimum number of instances, for the Auto Scaling * group.
*/ inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; } /** *The minimum size, or minimum number of instances, for the Auto Scaling * group.
*/ inline AutoScalingGroupConfiguration& WithMinSize(int value) { SetMinSize(value); return *this;} /** *The maximum size, or maximum number of instances, for the Auto Scaling * group.
*/ inline int GetMaxSize() const{ return m_maxSize; } /** *The maximum size, or maximum number of instances, for the Auto Scaling * group.
*/ inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; } /** *The maximum size, or maximum number of instances, for the Auto Scaling * group.
*/ inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; } /** *The maximum size, or maximum number of instances, for the Auto Scaling * group.
*/ inline AutoScalingGroupConfiguration& WithMaxSize(int value) { SetMaxSize(value); return *this;} /** *The instance type for the Auto Scaling group.
*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *The instance type for the Auto Scaling group.
*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *The instance type for the Auto Scaling group.
*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *The instance type for the Auto Scaling group.
*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *The instance type for the Auto Scaling group.
*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *The instance type for the Auto Scaling group.
*/ inline AutoScalingGroupConfiguration& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *The instance type for the Auto Scaling group.
*/ inline AutoScalingGroupConfiguration& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *The instance type for the Auto Scaling group.
*/ inline AutoScalingGroupConfiguration& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} private: int m_desiredCapacity; bool m_desiredCapacityHasBeenSet = false; int m_minSize; bool m_minSizeHasBeenSet = false; int m_maxSize; bool m_maxSizeHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws