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

This data type is used with the Amazon GameLift FleetIQ and game server * groups.

Settings for a target-based scaling policy as part of a GameServerGroupAutoScalingPolicy * . These settings are used to create a target-based policy that tracks the Amazon * GameLift FleetIQ metric "PercentUtilizedGameServers" and specifies * a target value for the metric. As player usage changes, the policy triggers to * adjust the game server group capacity so that the metric returns to the target * value.

See Also:

AWS * API Reference

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

Desired value to use with a game server group target-based scaling policy. *

*/ inline double GetTargetValue() const{ return m_targetValue; } /** *

Desired value to use with a game server group target-based scaling policy. *

*/ inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; } /** *

Desired value to use with a game server group target-based scaling policy. *

*/ inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; } /** *

Desired value to use with a game server group target-based scaling policy. *

*/ inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;} private: double m_targetValue; bool m_targetValueHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws