This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-gamelift/include/aws/gamelift/model/TargetConfiguration.h

95 lines
3.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/gamelift/GameLift_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace GameLift
{
namespace Model
{
/**
* <p>Settings for a target-based scaling policy (see <a>ScalingPolicy</a>. A
* target-based policy tracks a particular fleet metric specifies a target value
* for the metric. As player usage changes, the policy triggers Amazon GameLift to
* adjust capacity so that the metric returns to the target value. The target
* configuration specifies settings as needed for the target based policy,
* including the target value. </p> <ul> <li> <p> <a>DescribeFleetCapacity</a> </p>
* </li> <li> <p> <a>UpdateFleetCapacity</a> </p> </li> <li> <p>
* <a>DescribeEC2InstanceLimits</a> </p> </li> <li> <p>Manage scaling policies:</p>
* <ul> <li> <p> <a>PutScalingPolicy</a> (auto-scaling)</p> </li> <li> <p>
* <a>DescribeScalingPolicies</a> (auto-scaling)</p> </li> <li> <p>
* <a>DeleteScalingPolicy</a> (auto-scaling)</p> </li> </ul> </li> <li> <p>Manage
* fleet actions:</p> <ul> <li> <p> <a>StartFleetActions</a> </p> </li> <li> <p>
* <a>StopFleetActions</a> </p> </li> </ul> </li> </ul><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetConfiguration">AWS
* API Reference</a></p>
*/
class AWS_GAMELIFT_API TargetConfiguration
{
public:
TargetConfiguration();
TargetConfiguration(Aws::Utils::Json::JsonView jsonValue);
TargetConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Desired value to use with a target-based scaling policy. The value must be
* relevant for whatever metric the scaling policy is using. For example, in a
* policy using the metric PercentAvailableGameSessions, the target value should be
* the preferred size of the fleet's buffer (the percent of capacity that should be
* idle and ready for new game sessions).</p>
*/
inline double GetTargetValue() const{ return m_targetValue; }
/**
* <p>Desired value to use with a target-based scaling policy. The value must be
* relevant for whatever metric the scaling policy is using. For example, in a
* policy using the metric PercentAvailableGameSessions, the target value should be
* the preferred size of the fleet's buffer (the percent of capacity that should be
* idle and ready for new game sessions).</p>
*/
inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
/**
* <p>Desired value to use with a target-based scaling policy. The value must be
* relevant for whatever metric the scaling policy is using. For example, in a
* policy using the metric PercentAvailableGameSessions, the target value should be
* the preferred size of the fleet's buffer (the percent of capacity that should be
* idle and ready for new game sessions).</p>
*/
inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }
/**
* <p>Desired value to use with a target-based scaling policy. The value must be
* relevant for whatever metric the scaling policy is using. For example, in a
* policy using the metric PercentAvailableGameSessions, the target value should be
* the preferred size of the fleet's buffer (the percent of capacity that should be
* idle and ready for new game sessions).</p>
*/
inline TargetConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}
private:
double m_targetValue;
bool m_targetValueHasBeenSet;
};
} // namespace Model
} // namespace GameLift
} // namespace Aws