7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/ComparisonOperatorType.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/TargetConfiguration.h>
46 template <
typename NameT = Aws::String>
48 m_nameHasBeenSet =
true;
49 m_name = std::forward<NameT>(value);
51 template <
typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
66 template <
typename FleetIdT = Aws::String>
68 m_fleetIdHasBeenSet =
true;
69 m_fleetId = std::forward<FleetIdT>(value);
71 template <
typename FleetIdT = Aws::String>
85 m_scalingAdjustmentHasBeenSet =
true;
86 m_scalingAdjustment = value;
108 m_scalingAdjustmentTypeHasBeenSet =
true;
109 m_scalingAdjustmentType = value;
124 m_thresholdHasBeenSet =
true;
141 m_comparisonOperatorHasBeenSet =
true;
142 m_comparisonOperator = value;
158 m_evaluationPeriodsHasBeenSet =
true;
159 m_evaluationPeriods = value;
199 m_metricNameHasBeenSet =
true;
200 m_metricName = value;
220 m_policyTypeHasBeenSet =
true;
221 m_policyType = value;
235 template <
typename TargetConfigurationT = TargetConfiguration>
237 m_targetConfigurationHasBeenSet =
true;
238 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
240 template <
typename TargetConfigurationT = TargetConfiguration>
251 int m_scalingAdjustment{0};
255 double m_threshold{0.0};
259 int m_evaluationPeriods{0};
265 TargetConfiguration m_targetConfiguration;
266 bool m_nameHasBeenSet =
false;
267 bool m_fleetIdHasBeenSet =
false;
268 bool m_scalingAdjustmentHasBeenSet =
false;
269 bool m_scalingAdjustmentTypeHasBeenSet =
false;
270 bool m_thresholdHasBeenSet =
false;
271 bool m_comparisonOperatorHasBeenSet =
false;
272 bool m_evaluationPeriodsHasBeenSet =
false;
273 bool m_metricNameHasBeenSet =
false;
274 bool m_policyTypeHasBeenSet =
false;
275 bool m_targetConfigurationHasBeenSet =
false;
double GetThreshold() const
PolicyType GetPolicyType() const
void SetFleetId(FleetIdT &&value)
const Aws::String & GetName() const
bool ComparisonOperatorHasBeenSet() const
int GetEvaluationPeriods() const
PutScalingPolicyRequest & WithPolicyType(PolicyType value)
bool ScalingAdjustmentHasBeenSet() const
MetricName GetMetricName() const
PutScalingPolicyRequest & WithTargetConfiguration(TargetConfigurationT &&value)
void SetName(NameT &&value)
int GetScalingAdjustment() const
PutScalingPolicyRequest & WithName(NameT &&value)
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)
PutScalingPolicyRequest & WithMetricName(MetricName value)
bool TargetConfigurationHasBeenSet() const
bool EvaluationPeriodsHasBeenSet() const
PutScalingPolicyRequest & WithComparisonOperator(ComparisonOperatorType value)
PutScalingPolicyRequest & WithScalingAdjustment(int value)
PutScalingPolicyRequest & WithScalingAdjustmentType(ScalingAdjustmentType value)
ComparisonOperatorType GetComparisonOperator() const
void SetComparisonOperator(ComparisonOperatorType value)
void SetScalingAdjustment(int value)
bool MetricNameHasBeenSet() const
AWS_GAMELIFT_API Aws::String SerializePayload() const override
bool PolicyTypeHasBeenSet() const
PutScalingPolicyRequest & WithFleetId(FleetIdT &&value)
bool NameHasBeenSet() const
void SetMetricName(MetricName value)
void SetPolicyType(PolicyType value)
const Aws::String & GetFleetId() const
const TargetConfiguration & GetTargetConfiguration() const
ScalingAdjustmentType GetScalingAdjustmentType() const
bool ThresholdHasBeenSet() const
void SetThreshold(double value)
bool FleetIdHasBeenSet() const
void SetTargetConfiguration(TargetConfigurationT &&value)
AWS_GAMELIFT_API PutScalingPolicyRequest()=default
PutScalingPolicyRequest & WithEvaluationPeriods(int value)
void SetScalingAdjustmentType(ScalingAdjustmentType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String