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>
50 template<
typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
52 template<
typename NameT = Aws::String>
64 template<
typename FleetIdT = Aws::String>
65 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet =
true; m_fleetId = std::forward<FleetIdT>(value); }
66 template<
typename FleetIdT = Aws::String>
76 inline void SetScalingAdjustment(
int value) { m_scalingAdjustmentHasBeenSet =
true; m_scalingAdjustment = value; }
103 inline void SetThreshold(
double value) { m_thresholdHasBeenSet =
true; m_threshold = value; }
125 inline void SetEvaluationPeriods(
int value) { m_evaluationPeriodsHasBeenSet =
true; m_evaluationPeriods = value; }
185 template<
typename TargetConfigurationT = TargetConfiguration>
186 void SetTargetConfiguration(TargetConfigurationT&& value) { m_targetConfigurationHasBeenSet =
true; m_targetConfiguration = std::forward<TargetConfigurationT>(value); }
187 template<
typename TargetConfigurationT = TargetConfiguration>
193 bool m_nameHasBeenSet =
false;
196 bool m_fleetIdHasBeenSet =
false;
198 int m_scalingAdjustment{0};
199 bool m_scalingAdjustmentHasBeenSet =
false;
202 bool m_scalingAdjustmentTypeHasBeenSet =
false;
204 double m_threshold{0.0};
205 bool m_thresholdHasBeenSet =
false;
208 bool m_comparisonOperatorHasBeenSet =
false;
210 int m_evaluationPeriods{0};
211 bool m_evaluationPeriodsHasBeenSet =
false;
214 bool m_metricNameHasBeenSet =
false;
217 bool m_policyTypeHasBeenSet =
false;
219 TargetConfiguration m_targetConfiguration;
220 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