AWS SDK for C++  1.9.108
AWS SDK for C++
PutScalingPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace GameLift
20 {
21 namespace Model
22 {
23 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "PutScalingPolicy"; }
39 
40  Aws::String SerializePayload() const override;
41 
43 
44 
50  inline const Aws::String& GetName() const{ return m_name; }
51 
57  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 
64  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 
71  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
72 
78  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
79 
85  inline PutScalingPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
86 
92  inline PutScalingPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 
99  inline PutScalingPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
100 
101 
107  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
108 
114  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
115 
121  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
122 
128  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
129 
135  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
136 
142  inline PutScalingPolicyRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
143 
149  inline PutScalingPolicyRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
150 
156  inline PutScalingPolicyRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
157 
158 
162  inline int GetScalingAdjustment() const{ return m_scalingAdjustment; }
163 
167  inline bool ScalingAdjustmentHasBeenSet() const { return m_scalingAdjustmentHasBeenSet; }
168 
172  inline void SetScalingAdjustment(int value) { m_scalingAdjustmentHasBeenSet = true; m_scalingAdjustment = value; }
173 
177  inline PutScalingPolicyRequest& WithScalingAdjustment(int value) { SetScalingAdjustment(value); return *this;}
178 
179 
191  inline const ScalingAdjustmentType& GetScalingAdjustmentType() const{ return m_scalingAdjustmentType; }
192 
204  inline bool ScalingAdjustmentTypeHasBeenSet() const { return m_scalingAdjustmentTypeHasBeenSet; }
205 
217  inline void SetScalingAdjustmentType(const ScalingAdjustmentType& value) { m_scalingAdjustmentTypeHasBeenSet = true; m_scalingAdjustmentType = value; }
218 
230  inline void SetScalingAdjustmentType(ScalingAdjustmentType&& value) { m_scalingAdjustmentTypeHasBeenSet = true; m_scalingAdjustmentType = std::move(value); }
231 
243  inline PutScalingPolicyRequest& WithScalingAdjustmentType(const ScalingAdjustmentType& value) { SetScalingAdjustmentType(value); return *this;}
244 
256  inline PutScalingPolicyRequest& WithScalingAdjustmentType(ScalingAdjustmentType&& value) { SetScalingAdjustmentType(std::move(value)); return *this;}
257 
258 
262  inline double GetThreshold() const{ return m_threshold; }
263 
267  inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
268 
272  inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
273 
277  inline PutScalingPolicyRequest& WithThreshold(double value) { SetThreshold(value); return *this;}
278 
279 
284  inline const ComparisonOperatorType& GetComparisonOperator() const{ return m_comparisonOperator; }
285 
290  inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
291 
296  inline void SetComparisonOperator(const ComparisonOperatorType& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
297 
302  inline void SetComparisonOperator(ComparisonOperatorType&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
303 
308  inline PutScalingPolicyRequest& WithComparisonOperator(const ComparisonOperatorType& value) { SetComparisonOperator(value); return *this;}
309 
314  inline PutScalingPolicyRequest& WithComparisonOperator(ComparisonOperatorType&& value) { SetComparisonOperator(std::move(value)); return *this;}
315 
316 
321  inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
322 
327  inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
328 
333  inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
334 
339  inline PutScalingPolicyRequest& WithEvaluationPeriods(int value) { SetEvaluationPeriods(value); return *this;}
340 
341 
370  inline const MetricName& GetMetricName() const{ return m_metricName; }
371 
400  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
401 
430  inline void SetMetricName(const MetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
431 
460  inline void SetMetricName(MetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
461 
490  inline PutScalingPolicyRequest& WithMetricName(const MetricName& value) { SetMetricName(value); return *this;}
491 
520  inline PutScalingPolicyRequest& WithMetricName(MetricName&& value) { SetMetricName(std::move(value)); return *this;}
521 
522 
531  inline const PolicyType& GetPolicyType() const{ return m_policyType; }
532 
541  inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
542 
551  inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
552 
561  inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
562 
571  inline PutScalingPolicyRequest& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
572 
581  inline PutScalingPolicyRequest& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
582 
583 
587  inline const TargetConfiguration& GetTargetConfiguration() const{ return m_targetConfiguration; }
588 
592  inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
593 
597  inline void SetTargetConfiguration(const TargetConfiguration& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = value; }
598 
602  inline void SetTargetConfiguration(TargetConfiguration&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = std::move(value); }
603 
607  inline PutScalingPolicyRequest& WithTargetConfiguration(const TargetConfiguration& value) { SetTargetConfiguration(value); return *this;}
608 
612  inline PutScalingPolicyRequest& WithTargetConfiguration(TargetConfiguration&& value) { SetTargetConfiguration(std::move(value)); return *this;}
613 
614  private:
615 
616  Aws::String m_name;
617  bool m_nameHasBeenSet;
618 
619  Aws::String m_fleetId;
620  bool m_fleetIdHasBeenSet;
621 
622  int m_scalingAdjustment;
623  bool m_scalingAdjustmentHasBeenSet;
624 
625  ScalingAdjustmentType m_scalingAdjustmentType;
626  bool m_scalingAdjustmentTypeHasBeenSet;
627 
628  double m_threshold;
629  bool m_thresholdHasBeenSet;
630 
631  ComparisonOperatorType m_comparisonOperator;
632  bool m_comparisonOperatorHasBeenSet;
633 
634  int m_evaluationPeriods;
635  bool m_evaluationPeriodsHasBeenSet;
636 
637  MetricName m_metricName;
638  bool m_metricNameHasBeenSet;
639 
640  PolicyType m_policyType;
641  bool m_policyTypeHasBeenSet;
642 
643  TargetConfiguration m_targetConfiguration;
644  bool m_targetConfigurationHasBeenSet;
645  };
646 
647 } // namespace Model
648 } // namespace GameLift
649 } // namespace Aws
Aws::GameLift::Model::MetricName
MetricName
Definition: MetricName.h:17
Aws::GameLift::Model::PutScalingPolicyRequest::SetName
void SetName(Aws::String &&value)
Definition: PutScalingPolicyRequest.h:71
Aws::GameLift::Model::PutScalingPolicyRequest::WithTargetConfiguration
PutScalingPolicyRequest & WithTargetConfiguration(const TargetConfiguration &value)
Definition: PutScalingPolicyRequest.h:607
Aws::GameLift::Model::PutScalingPolicyRequest::WithPolicyType
PutScalingPolicyRequest & WithPolicyType(PolicyType &&value)
Definition: PutScalingPolicyRequest.h:581
TargetConfiguration.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::PutScalingPolicyRequest::SetPolicyType
void SetPolicyType(const PolicyType &value)
Definition: PutScalingPolicyRequest.h:551
Aws::GameLift::Model::PutScalingPolicyRequest::WithFleetId
PutScalingPolicyRequest & WithFleetId(const Aws::String &value)
Definition: PutScalingPolicyRequest.h:142
Aws::GameLift::Model::PutScalingPolicyRequest::SetComparisonOperator
void SetComparisonOperator(ComparisonOperatorType &&value)
Definition: PutScalingPolicyRequest.h:302
Aws::GameLift::Model::PutScalingPolicyRequest::GetFleetId
const Aws::String & GetFleetId() const
Definition: PutScalingPolicyRequest.h:107
Aws::GameLift::Model::PutScalingPolicyRequest::SetEvaluationPeriods
void SetEvaluationPeriods(int value)
Definition: PutScalingPolicyRequest.h:333
Aws::GameLift::Model::PutScalingPolicyRequest::EvaluationPeriodsHasBeenSet
bool EvaluationPeriodsHasBeenSet() const
Definition: PutScalingPolicyRequest.h:327
MetricName.h
Aws::GameLift::Model::PutScalingPolicyRequest::ScalingAdjustmentTypeHasBeenSet
bool ScalingAdjustmentTypeHasBeenSet() const
Definition: PutScalingPolicyRequest.h:204
Aws::GameLift::Model::PutScalingPolicyRequest::WithFleetId
PutScalingPolicyRequest & WithFleetId(const char *value)
Definition: PutScalingPolicyRequest.h:156
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::PutScalingPolicyRequest::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: PutScalingPolicyRequest.h:400
Aws::GameLift::Model::PutScalingPolicyRequest::WithName
PutScalingPolicyRequest & WithName(Aws::String &&value)
Definition: PutScalingPolicyRequest.h:92
Aws::GameLift::Model::PutScalingPolicyRequest::GetScalingAdjustmentType
const ScalingAdjustmentType & GetScalingAdjustmentType() const
Definition: PutScalingPolicyRequest.h:191
Aws::GameLift::Model::PutScalingPolicyRequest::GetTargetConfiguration
const TargetConfiguration & GetTargetConfiguration() const
Definition: PutScalingPolicyRequest.h:587
Aws::GameLift::Model::PutScalingPolicyRequest::GetThreshold
double GetThreshold() const
Definition: PutScalingPolicyRequest.h:262
Aws::GameLift::Model::ScalingAdjustmentType
ScalingAdjustmentType
Definition: ScalingAdjustmentType.h:17
Aws::GameLift::Model::PutScalingPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::PutScalingPolicyRequest::PutScalingPolicyRequest
PutScalingPolicyRequest()
Aws::GameLift::Model::PutScalingPolicyRequest::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: PutScalingPolicyRequest.h:121
Aws::GameLift::Model::PutScalingPolicyRequest::WithPolicyType
PutScalingPolicyRequest & WithPolicyType(const PolicyType &value)
Definition: PutScalingPolicyRequest.h:571
Aws::GameLift::Model::PutScalingPolicyRequest::WithScalingAdjustment
PutScalingPolicyRequest & WithScalingAdjustment(int value)
Definition: PutScalingPolicyRequest.h:177
Aws::GameLift::Model::PutScalingPolicyRequest::GetEvaluationPeriods
int GetEvaluationPeriods() const
Definition: PutScalingPolicyRequest.h:321
Aws::GameLift::Model::PutScalingPolicyRequest::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: PutScalingPolicyRequest.h:114
Aws::GameLift::Model::PutScalingPolicyRequest::PolicyTypeHasBeenSet
bool PolicyTypeHasBeenSet() const
Definition: PutScalingPolicyRequest.h:541
Aws::GameLift::Model::PutScalingPolicyRequest::GetMetricName
const MetricName & GetMetricName() const
Definition: PutScalingPolicyRequest.h:370
Aws::GameLift::Model::PutScalingPolicyRequest::WithComparisonOperator
PutScalingPolicyRequest & WithComparisonOperator(ComparisonOperatorType &&value)
Definition: PutScalingPolicyRequest.h:314
Aws::GameLift::Model::PutScalingPolicyRequest::WithTargetConfiguration
PutScalingPolicyRequest & WithTargetConfiguration(TargetConfiguration &&value)
Definition: PutScalingPolicyRequest.h:612
Aws::GameLift::Model::PutScalingPolicyRequest::SetName
void SetName(const char *value)
Definition: PutScalingPolicyRequest.h:78
Aws::GameLift::Model::PutScalingPolicyRequest::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: PutScalingPolicyRequest.h:128
GameLift_EXPORTS.h
Aws::GameLift::Model::PutScalingPolicyRequest::ThresholdHasBeenSet
bool ThresholdHasBeenSet() const
Definition: PutScalingPolicyRequest.h:267
GameLiftRequest.h
Aws::GameLift::Model::PutScalingPolicyRequest::ComparisonOperatorHasBeenSet
bool ComparisonOperatorHasBeenSet() const
Definition: PutScalingPolicyRequest.h:290
Aws::GameLift::Model::PutScalingPolicyRequest::SetMetricName
void SetMetricName(const MetricName &value)
Definition: PutScalingPolicyRequest.h:430
Aws::GameLift::Model::PutScalingPolicyRequest::SetTargetConfiguration
void SetTargetConfiguration(TargetConfiguration &&value)
Definition: PutScalingPolicyRequest.h:602
Aws::GameLift::Model::PutScalingPolicyRequest::WithName
PutScalingPolicyRequest & WithName(const char *value)
Definition: PutScalingPolicyRequest.h:99
Aws::GameLift::Model::PutScalingPolicyRequest::SetPolicyType
void SetPolicyType(PolicyType &&value)
Definition: PutScalingPolicyRequest.h:561
Aws::GameLift::Model::PutScalingPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutScalingPolicyRequest.h:38
Aws::GameLift::Model::PutScalingPolicyRequest::SetScalingAdjustmentType
void SetScalingAdjustmentType(ScalingAdjustmentType &&value)
Definition: PutScalingPolicyRequest.h:230
Aws::GameLift::Model::PutScalingPolicyRequest::SetMetricName
void SetMetricName(MetricName &&value)
Definition: PutScalingPolicyRequest.h:460
Aws::GameLift::Model::PutScalingPolicyRequest::WithScalingAdjustmentType
PutScalingPolicyRequest & WithScalingAdjustmentType(const ScalingAdjustmentType &value)
Definition: PutScalingPolicyRequest.h:243
Aws::GameLift::Model::PutScalingPolicyRequest::WithEvaluationPeriods
PutScalingPolicyRequest & WithEvaluationPeriods(int value)
Definition: PutScalingPolicyRequest.h:339
Aws::GameLift::Model::PolicyType
PolicyType
Definition: PolicyType.h:17
Aws::GameLift::Model::PutScalingPolicyRequest::WithThreshold
PutScalingPolicyRequest & WithThreshold(double value)
Definition: PutScalingPolicyRequest.h:277
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
Aws::GameLift::Model::PutScalingPolicyRequest::ScalingAdjustmentHasBeenSet
bool ScalingAdjustmentHasBeenSet() const
Definition: PutScalingPolicyRequest.h:167
AWSString.h
ComparisonOperatorType.h
Aws::GameLift::Model::PutScalingPolicyRequest::GetScalingAdjustment
int GetScalingAdjustment() const
Definition: PutScalingPolicyRequest.h:162
Aws::GameLift::Model::PutScalingPolicyRequest::SetComparisonOperator
void SetComparisonOperator(const ComparisonOperatorType &value)
Definition: PutScalingPolicyRequest.h:296
Aws::GameLift::Model::PutScalingPolicyRequest::WithFleetId
PutScalingPolicyRequest & WithFleetId(Aws::String &&value)
Definition: PutScalingPolicyRequest.h:149
Aws::GameLift::Model::PutScalingPolicyRequest::TargetConfigurationHasBeenSet
bool TargetConfigurationHasBeenSet() const
Definition: PutScalingPolicyRequest.h:592
Aws::GameLift::Model::PutScalingPolicyRequest::WithComparisonOperator
PutScalingPolicyRequest & WithComparisonOperator(const ComparisonOperatorType &value)
Definition: PutScalingPolicyRequest.h:308
Aws::GameLift::Model::PutScalingPolicyRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PutScalingPolicyRequest.h:57
Aws::GameLift::Model::TargetConfiguration
Definition: TargetConfiguration.h:41
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::PutScalingPolicyRequest::SetTargetConfiguration
void SetTargetConfiguration(const TargetConfiguration &value)
Definition: PutScalingPolicyRequest.h:597
Aws::GameLift::Model::PutScalingPolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::PutScalingPolicyRequest::SetScalingAdjustment
void SetScalingAdjustment(int value)
Definition: PutScalingPolicyRequest.h:172
Aws::GameLift::Model::PutScalingPolicyRequest::GetComparisonOperator
const ComparisonOperatorType & GetComparisonOperator() const
Definition: PutScalingPolicyRequest.h:284
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::PutScalingPolicyRequest::WithMetricName
PutScalingPolicyRequest & WithMetricName(const MetricName &value)
Definition: PutScalingPolicyRequest.h:490
Aws::GameLift::Model::PutScalingPolicyRequest
Definition: PutScalingPolicyRequest.h:30
Aws::GameLift::Model::PutScalingPolicyRequest::WithScalingAdjustmentType
PutScalingPolicyRequest & WithScalingAdjustmentType(ScalingAdjustmentType &&value)
Definition: PutScalingPolicyRequest.h:256
Aws::GameLift::Model::PutScalingPolicyRequest::SetScalingAdjustmentType
void SetScalingAdjustmentType(const ScalingAdjustmentType &value)
Definition: PutScalingPolicyRequest.h:217
Aws::GameLift::Model::PutScalingPolicyRequest::GetPolicyType
const PolicyType & GetPolicyType() const
Definition: PutScalingPolicyRequest.h:531
ScalingAdjustmentType.h
Aws::GameLift::Model::PutScalingPolicyRequest::WithMetricName
PutScalingPolicyRequest & WithMetricName(MetricName &&value)
Definition: PutScalingPolicyRequest.h:520
PolicyType.h
Aws::GameLift::Model::PutScalingPolicyRequest::SetFleetId
void SetFleetId(const char *value)
Definition: PutScalingPolicyRequest.h:135
Aws::GameLift::Model::PutScalingPolicyRequest::WithName
PutScalingPolicyRequest & WithName(const Aws::String &value)
Definition: PutScalingPolicyRequest.h:85
Aws::GameLift::Model::PutScalingPolicyRequest::GetName
const Aws::String & GetName() const
Definition: PutScalingPolicyRequest.h:50
Aws::GameLift::Model::ComparisonOperatorType
ComparisonOperatorType
Definition: ComparisonOperatorType.h:17
Aws::GameLift::Model::PutScalingPolicyRequest::SetName
void SetName(const Aws::String &value)
Definition: PutScalingPolicyRequest.h:64
Aws::GameLift::Model::PutScalingPolicyRequest::SetThreshold
void SetThreshold(double value)
Definition: PutScalingPolicyRequest.h:272