7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/model/ScalingStatusType.h>
10#include <aws/gamelift/model/ScalingAdjustmentType.h>
11#include <aws/gamelift/model/ComparisonOperatorType.h>
12#include <aws/gamelift/model/MetricName.h>
13#include <aws/gamelift/model/PolicyType.h>
14#include <aws/gamelift/model/TargetConfiguration.h>
15#include <aws/gamelift/model/LocationUpdateStatus.h>
56 template<
typename FleetIdT = Aws::String>
57 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet =
true; m_fleetId = std::forward<FleetIdT>(value); }
58 template<
typename FleetIdT = Aws::String>
72 template<
typename FleetArnT = Aws::String>
73 void SetFleetArn(FleetArnT&& value) { m_fleetArnHasBeenSet =
true; m_fleetArn = std::forward<FleetArnT>(value); }
74 template<
typename FleetArnT = Aws::String>
85 template<
typename NameT = Aws::String>
86 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
87 template<
typename NameT = Aws::String>
118 inline void SetScalingAdjustment(
int value) { m_scalingAdjustmentHasBeenSet =
true; m_scalingAdjustment = value; }
156 inline void SetThreshold(
double value) { m_thresholdHasBeenSet =
true; m_threshold = value; }
167 inline void SetEvaluationPeriods(
int value) { m_evaluationPeriodsHasBeenSet =
true; m_evaluationPeriods = value; }
227 template<
typename TargetConfigurationT = TargetConfiguration>
228 void SetTargetConfiguration(TargetConfigurationT&& value) { m_targetConfigurationHasBeenSet =
true; m_targetConfiguration = std::forward<TargetConfigurationT>(value); }
229 template<
typename TargetConfigurationT = TargetConfiguration>
251 template<
typename LocationT = Aws::String>
252 void SetLocation(LocationT&& value) { m_locationHasBeenSet =
true; m_location = std::forward<LocationT>(value); }
253 template<
typename LocationT = Aws::String>
259 bool m_fleetIdHasBeenSet =
false;
262 bool m_fleetArnHasBeenSet =
false;
265 bool m_nameHasBeenSet =
false;
268 bool m_statusHasBeenSet =
false;
270 int m_scalingAdjustment{0};
271 bool m_scalingAdjustmentHasBeenSet =
false;
274 bool m_scalingAdjustmentTypeHasBeenSet =
false;
277 bool m_comparisonOperatorHasBeenSet =
false;
279 double m_threshold{0.0};
280 bool m_thresholdHasBeenSet =
false;
282 int m_evaluationPeriods{0};
283 bool m_evaluationPeriodsHasBeenSet =
false;
286 bool m_metricNameHasBeenSet =
false;
289 bool m_policyTypeHasBeenSet =
false;
291 TargetConfiguration m_targetConfiguration;
292 bool m_targetConfigurationHasBeenSet =
false;
295 bool m_updateStatusHasBeenSet =
false;
298 bool m_locationHasBeenSet =
false;
ScalingAdjustmentType GetScalingAdjustmentType() const
void SetLocation(LocationT &&value)
int GetEvaluationPeriods() const
void SetEvaluationPeriods(int value)
bool TargetConfigurationHasBeenSet() const
void SetComparisonOperator(ComparisonOperatorType value)
ScalingPolicy & WithUpdateStatus(LocationUpdateStatus value)
AWS_GAMELIFT_API ScalingPolicy()=default
double GetThreshold() const
ScalingPolicy & WithTargetConfiguration(TargetConfigurationT &&value)
ScalingPolicy & WithComparisonOperator(ComparisonOperatorType value)
ComparisonOperatorType GetComparisonOperator() const
ScalingStatusType GetStatus() const
void SetUpdateStatus(LocationUpdateStatus value)
void SetName(NameT &&value)
void SetScalingAdjustment(int value)
ScalingPolicy & WithLocation(LocationT &&value)
MetricName GetMetricName() const
bool ThresholdHasBeenSet() const
void SetFleetId(FleetIdT &&value)
bool FleetIdHasBeenSet() const
ScalingPolicy & WithFleetArn(FleetArnT &&value)
bool ScalingAdjustmentHasBeenSet() const
bool LocationHasBeenSet() const
LocationUpdateStatus GetUpdateStatus() const
bool StatusHasBeenSet() const
bool EvaluationPeriodsHasBeenSet() const
bool FleetArnHasBeenSet() const
bool UpdateStatusHasBeenSet() const
ScalingPolicy & WithFleetId(FleetIdT &&value)
void SetScalingAdjustmentType(ScalingAdjustmentType value)
void SetPolicyType(PolicyType value)
const Aws::String & GetName() const
ScalingPolicy & WithScalingAdjustmentType(ScalingAdjustmentType value)
AWS_GAMELIFT_API ScalingPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
ScalingPolicy & WithName(NameT &&value)
const TargetConfiguration & GetTargetConfiguration() const
ScalingPolicy & WithScalingAdjustment(int value)
void SetThreshold(double value)
ScalingPolicy & WithThreshold(double value)
ScalingPolicy & WithEvaluationPeriods(int value)
bool NameHasBeenSet() const
bool ComparisonOperatorHasBeenSet() const
AWS_GAMELIFT_API ScalingPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetConfiguration(TargetConfigurationT &&value)
ScalingPolicy & WithPolicyType(PolicyType value)
bool ScalingAdjustmentTypeHasBeenSet() const
void SetMetricName(MetricName value)
const Aws::String & GetFleetArn() const
int GetScalingAdjustment() const
bool MetricNameHasBeenSet() const
const Aws::String & GetFleetId() const
void SetFleetArn(FleetArnT &&value)
PolicyType GetPolicyType() const
void SetStatus(ScalingStatusType value)
const Aws::String & GetLocation() const
bool PolicyTypeHasBeenSet() const
ScalingPolicy & WithMetricName(MetricName value)
ScalingPolicy & WithStatus(ScalingStatusType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue