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>
58 inline void SetFleetId(
const char* value) { m_fleetIdHasBeenSet =
true; m_fleetId.assign(value); }
76 inline void SetFleetArn(
const char* value) { m_fleetArnHasBeenSet =
true; m_fleetArn.assign(value); }
91 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
126 inline void SetScalingAdjustment(
int value) { m_scalingAdjustmentHasBeenSet =
true; m_scalingAdjustment = value; }
168 inline void SetThreshold(
double value) { m_thresholdHasBeenSet =
true; m_threshold = value; }
179 inline void SetEvaluationPeriods(
int value) { m_evaluationPeriodsHasBeenSet =
true; m_evaluationPeriods = value; }
271 inline void SetLocation(
const char* value) { m_locationHasBeenSet =
true; m_location.assign(value); }
279 bool m_fleetIdHasBeenSet =
false;
282 bool m_fleetArnHasBeenSet =
false;
285 bool m_nameHasBeenSet =
false;
288 bool m_statusHasBeenSet =
false;
290 int m_scalingAdjustment;
291 bool m_scalingAdjustmentHasBeenSet =
false;
294 bool m_scalingAdjustmentTypeHasBeenSet =
false;
297 bool m_comparisonOperatorHasBeenSet =
false;
300 bool m_thresholdHasBeenSet =
false;
302 int m_evaluationPeriods;
303 bool m_evaluationPeriodsHasBeenSet =
false;
306 bool m_metricNameHasBeenSet =
false;
309 bool m_policyTypeHasBeenSet =
false;
312 bool m_targetConfigurationHasBeenSet =
false;
315 bool m_updateStatusHasBeenSet =
false;
318 bool m_locationHasBeenSet =
false;
ScalingPolicy & WithStatus(ScalingStatusType &&value)
ScalingPolicy & WithScalingAdjustmentType(ScalingAdjustmentType &&value)
AWS_GAMELIFT_API ScalingPolicy()
void SetStatus(ScalingStatusType &&value)
const ScalingStatusType & GetStatus() const
void SetScalingAdjustmentType(ScalingAdjustmentType &&value)
int GetEvaluationPeriods() const
void SetEvaluationPeriods(int value)
void SetComparisonOperator(ComparisonOperatorType &&value)
void SetTargetConfiguration(const TargetConfiguration &value)
bool TargetConfigurationHasBeenSet() const
void SetUpdateStatus(const LocationUpdateStatus &value)
double GetThreshold() const
ScalingPolicy & WithLocation(const char *value)
ScalingPolicy & WithName(const Aws::String &value)
ScalingPolicy & WithLocation(Aws::String &&value)
void SetLocation(const Aws::String &value)
void SetFleetId(const Aws::String &value)
void SetScalingAdjustment(int value)
void SetComparisonOperator(const ComparisonOperatorType &value)
ScalingPolicy & WithFleetId(Aws::String &&value)
const ComparisonOperatorType & GetComparisonOperator() const
void SetStatus(const ScalingStatusType &value)
bool ThresholdHasBeenSet() const
void SetFleetArn(Aws::String &&value)
ScalingPolicy & WithFleetArn(const char *value)
void SetMetricName(MetricName &&value)
bool FleetIdHasBeenSet() const
bool ScalingAdjustmentHasBeenSet() const
ScalingPolicy & WithUpdateStatus(LocationUpdateStatus &&value)
ScalingPolicy & WithMetricName(const MetricName &value)
bool LocationHasBeenSet() const
void SetFleetArn(const char *value)
ScalingPolicy & WithTargetConfiguration(TargetConfiguration &&value)
ScalingPolicy & WithMetricName(MetricName &&value)
bool StatusHasBeenSet() const
ScalingPolicy & WithFleetId(const Aws::String &value)
bool EvaluationPeriodsHasBeenSet() const
bool FleetArnHasBeenSet() const
bool UpdateStatusHasBeenSet() const
ScalingPolicy & WithComparisonOperator(const ComparisonOperatorType &value)
const MetricName & GetMetricName() const
ScalingPolicy & WithFleetArn(Aws::String &&value)
const Aws::String & GetName() const
void SetFleetId(const char *value)
ScalingPolicy & WithTargetConfiguration(const TargetConfiguration &value)
void SetPolicyType(PolicyType &&value)
void SetName(Aws::String &&value)
AWS_GAMELIFT_API ScalingPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const TargetConfiguration & GetTargetConfiguration() const
ScalingPolicy & WithScalingAdjustment(int value)
ScalingPolicy & WithComparisonOperator(ComparisonOperatorType &&value)
ScalingPolicy & WithStatus(const ScalingStatusType &value)
void SetThreshold(double value)
const ScalingAdjustmentType & GetScalingAdjustmentType() const
ScalingPolicy & WithThreshold(double value)
ScalingPolicy & WithPolicyType(PolicyType &&value)
const LocationUpdateStatus & GetUpdateStatus() const
ScalingPolicy & WithEvaluationPeriods(int value)
bool NameHasBeenSet() const
bool ComparisonOperatorHasBeenSet() const
void SetUpdateStatus(LocationUpdateStatus &&value)
AWS_GAMELIFT_API ScalingPolicy(Aws::Utils::Json::JsonView jsonValue)
ScalingPolicy & WithName(const char *value)
void SetName(const char *value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLocation(const char *value)
void SetName(const Aws::String &value)
bool ScalingAdjustmentTypeHasBeenSet() const
ScalingPolicy & WithFleetId(const char *value)
void SetPolicyType(const PolicyType &value)
ScalingPolicy & WithScalingAdjustmentType(const ScalingAdjustmentType &value)
void SetFleetArn(const Aws::String &value)
const Aws::String & GetFleetArn() const
ScalingPolicy & WithUpdateStatus(const LocationUpdateStatus &value)
int GetScalingAdjustment() const
void SetScalingAdjustmentType(const ScalingAdjustmentType &value)
bool MetricNameHasBeenSet() const
void SetFleetId(Aws::String &&value)
const Aws::String & GetFleetId() const
ScalingPolicy & WithPolicyType(const PolicyType &value)
ScalingPolicy & WithLocation(const Aws::String &value)
const Aws::String & GetLocation() const
void SetTargetConfiguration(TargetConfiguration &&value)
bool PolicyTypeHasBeenSet() const
void SetMetricName(const MetricName &value)
const PolicyType & GetPolicyType() const
ScalingPolicy & WithName(Aws::String &&value)
void SetLocation(Aws::String &&value)
ScalingPolicy & WithFleetArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue