7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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>
52 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
68 inline void SetFleetId(
const char* value) { m_fleetIdHasBeenSet =
true; m_fleetId.assign(value); }
80 inline void SetScalingAdjustment(
int value) { m_scalingAdjustmentHasBeenSet =
true; m_scalingAdjustment = value; }
109 inline void SetThreshold(
double value) { m_thresholdHasBeenSet =
true; m_threshold = value; }
133 inline void SetEvaluationPeriods(
int value) { m_evaluationPeriodsHasBeenSet =
true; m_evaluationPeriods = value; }
205 bool m_nameHasBeenSet =
false;
208 bool m_fleetIdHasBeenSet =
false;
210 int m_scalingAdjustment;
211 bool m_scalingAdjustmentHasBeenSet =
false;
214 bool m_scalingAdjustmentTypeHasBeenSet =
false;
217 bool m_thresholdHasBeenSet =
false;
220 bool m_comparisonOperatorHasBeenSet =
false;
222 int m_evaluationPeriods;
223 bool m_evaluationPeriodsHasBeenSet =
false;
226 bool m_metricNameHasBeenSet =
false;
229 bool m_policyTypeHasBeenSet =
false;
232 bool m_targetConfigurationHasBeenSet =
false;
PutScalingPolicyRequest & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
double GetThreshold() const
PutScalingPolicyRequest & WithFleetId(Aws::String &&value)
PutScalingPolicyRequest & WithScalingAdjustmentType(const ScalingAdjustmentType &value)
const Aws::String & GetName() const
bool ComparisonOperatorHasBeenSet() const
int GetEvaluationPeriods() const
PutScalingPolicyRequest & WithFleetId(const char *value)
bool ScalingAdjustmentHasBeenSet() const
PutScalingPolicyRequest & WithMetricName(MetricName &&value)
PutScalingPolicyRequest & WithName(const char *value)
int GetScalingAdjustment() const
void SetFleetId(const Aws::String &value)
void SetFleetId(Aws::String &&value)
const ScalingAdjustmentType & GetScalingAdjustmentType() const
virtual const char * GetServiceRequestName() const override
bool ScalingAdjustmentTypeHasBeenSet() const
void SetEvaluationPeriods(int value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutScalingPolicyRequest & WithThreshold(double value)
bool TargetConfigurationHasBeenSet() const
AWS_GAMELIFT_API PutScalingPolicyRequest()
bool EvaluationPeriodsHasBeenSet() const
PutScalingPolicyRequest & WithScalingAdjustmentType(ScalingAdjustmentType &&value)
PutScalingPolicyRequest & WithComparisonOperator(ComparisonOperatorType &&value)
void SetTargetConfiguration(const TargetConfiguration &value)
PutScalingPolicyRequest & WithScalingAdjustment(int value)
void SetName(Aws::String &&value)
PutScalingPolicyRequest & WithTargetConfiguration(const TargetConfiguration &value)
const PolicyType & GetPolicyType() const
void SetScalingAdjustmentType(const ScalingAdjustmentType &value)
void SetPolicyType(PolicyType &&value)
void SetScalingAdjustment(int value)
bool MetricNameHasBeenSet() const
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const MetricName & GetMetricName() const
void SetComparisonOperator(ComparisonOperatorType &&value)
PutScalingPolicyRequest & WithComparisonOperator(const ComparisonOperatorType &value)
bool PolicyTypeHasBeenSet() const
PutScalingPolicyRequest & WithPolicyType(const PolicyType &value)
void SetName(const char *value)
void SetMetricName(MetricName &&value)
void SetMetricName(const MetricName &value)
PutScalingPolicyRequest & WithFleetId(const Aws::String &value)
bool NameHasBeenSet() const
void SetFleetId(const char *value)
void SetScalingAdjustmentType(ScalingAdjustmentType &&value)
void SetTargetConfiguration(TargetConfiguration &&value)
const Aws::String & GetFleetId() const
const TargetConfiguration & GetTargetConfiguration() const
PutScalingPolicyRequest & WithPolicyType(PolicyType &&value)
bool ThresholdHasBeenSet() const
const ComparisonOperatorType & GetComparisonOperator() const
PutScalingPolicyRequest & WithTargetConfiguration(TargetConfiguration &&value)
void SetThreshold(double value)
PutScalingPolicyRequest & WithMetricName(const MetricName &value)
bool FleetIdHasBeenSet() const
PutScalingPolicyRequest & WithName(Aws::String &&value)
PutScalingPolicyRequest & WithEvaluationPeriods(int value)
void SetComparisonOperator(const ComparisonOperatorType &value)
void SetPolicyType(const PolicyType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String