7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/ComparisonOperatorType.h>
10#include <aws/gamelift/model/LocationUpdateStatus.h>
11#include <aws/gamelift/model/MetricName.h>
12#include <aws/gamelift/model/PolicyType.h>
13#include <aws/gamelift/model/ScalingAdjustmentType.h>
14#include <aws/gamelift/model/ScalingStatusType.h>
15#include <aws/gamelift/model/TargetConfiguration.h>
50 template <
typename FleetIdT = Aws::String>
52 m_fleetIdHasBeenSet =
true;
53 m_fleetId = std::forward<FleetIdT>(value);
55 template <
typename FleetIdT = Aws::String>
72 template <
typename FleetArnT = Aws::String>
74 m_fleetArnHasBeenSet =
true;
75 m_fleetArn = std::forward<FleetArnT>(value);
77 template <
typename FleetArnT = Aws::String>
91 template <
typename NameT = Aws::String>
93 m_nameHasBeenSet =
true;
94 m_name = std::forward<NameT>(value);
96 template <
typename NameT = Aws::String>
98 SetName(std::forward<NameT>(value));
121 m_statusHasBeenSet =
true;
137 m_scalingAdjustmentHasBeenSet =
true;
138 m_scalingAdjustment = value;
160 m_scalingAdjustmentTypeHasBeenSet =
true;
161 m_scalingAdjustmentType = value;
177 m_comparisonOperatorHasBeenSet =
true;
178 m_comparisonOperator = value;
193 m_thresholdHasBeenSet =
true;
210 m_evaluationPeriodsHasBeenSet =
true;
211 m_evaluationPeriods = value;
251 m_metricNameHasBeenSet =
true;
252 m_metricName = value;
272 m_policyTypeHasBeenSet =
true;
273 m_policyType = value;
287 template <
typename TargetConfigurationT = TargetConfiguration>
289 m_targetConfigurationHasBeenSet =
true;
290 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
292 template <
typename TargetConfigurationT = TargetConfiguration>
308 m_updateStatusHasBeenSet =
true;
309 m_updateStatus = value;
323 template <
typename LocationT = Aws::String>
325 m_locationHasBeenSet =
true;
326 m_location = std::forward<LocationT>(value);
328 template <
typename LocationT = Aws::String>
343 int m_scalingAdjustment{0};
349 double m_threshold{0.0};
351 int m_evaluationPeriods{0};
357 TargetConfiguration m_targetConfiguration;
362 bool m_fleetIdHasBeenSet =
false;
363 bool m_fleetArnHasBeenSet =
false;
364 bool m_nameHasBeenSet =
false;
365 bool m_statusHasBeenSet =
false;
366 bool m_scalingAdjustmentHasBeenSet =
false;
367 bool m_scalingAdjustmentTypeHasBeenSet =
false;
368 bool m_comparisonOperatorHasBeenSet =
false;
369 bool m_thresholdHasBeenSet =
false;
370 bool m_evaluationPeriodsHasBeenSet =
false;
371 bool m_metricNameHasBeenSet =
false;
372 bool m_policyTypeHasBeenSet =
false;
373 bool m_targetConfigurationHasBeenSet =
false;
374 bool m_updateStatusHasBeenSet =
false;
375 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