/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECS { namespace Model { /** *

A floating-point percentage of the desired number of tasks to place and keep * running in the task set.

See Also:

AWS API * Reference

*/ class Scale { public: AWS_ECS_API Scale(); AWS_ECS_API Scale(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API Scale& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The value, specified as a percent total of a service's * desiredCount, to scale the task set. Accepted values are numbers * between 0 and 100.

*/ inline double GetValue() const{ return m_value; } /** *

The value, specified as a percent total of a service's * desiredCount, to scale the task set. Accepted values are numbers * between 0 and 100.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value, specified as a percent total of a service's * desiredCount, to scale the task set. Accepted values are numbers * between 0 and 100.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value, specified as a percent total of a service's * desiredCount, to scale the task set. Accepted values are numbers * between 0 and 100.

*/ inline Scale& WithValue(double value) { SetValue(value); return *this;} /** *

The unit of measure for the scale value.

*/ inline const ScaleUnit& GetUnit() const{ return m_unit; } /** *

The unit of measure for the scale value.

*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *

The unit of measure for the scale value.

*/ inline void SetUnit(const ScaleUnit& value) { m_unitHasBeenSet = true; m_unit = value; } /** *

The unit of measure for the scale value.

*/ inline void SetUnit(ScaleUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *

The unit of measure for the scale value.

*/ inline Scale& WithUnit(const ScaleUnit& value) { SetUnit(value); return *this;} /** *

The unit of measure for the scale value.

*/ inline Scale& WithUnit(ScaleUnit&& value) { SetUnit(std::move(value)); return *this;} private: double m_value; bool m_valueHasBeenSet = false; ScaleUnit m_unit; bool m_unitHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws