AWS SDK for C++  1.8.56
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 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
PutScalingPolicyRequest & WithFleetId(const char *value)
#define AWS_GAMELIFT_API
PutScalingPolicyRequest & WithPolicyType(PolicyType &&value)
PutScalingPolicyRequest & WithFleetId(Aws::String &&value)
PutScalingPolicyRequest & WithMetricName(const MetricName &value)
PutScalingPolicyRequest & WithName(const Aws::String &value)
PutScalingPolicyRequest & WithScalingAdjustmentType(const ScalingAdjustmentType &value)
PutScalingPolicyRequest & WithFleetId(const Aws::String &value)
PutScalingPolicyRequest & WithThreshold(double value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetTargetConfiguration(TargetConfiguration &&value)
void SetComparisonOperator(const ComparisonOperatorType &value)
PutScalingPolicyRequest & WithTargetConfiguration(TargetConfiguration &&value)
const ComparisonOperatorType & GetComparisonOperator() const
virtual const char * GetServiceRequestName() const override
PutScalingPolicyRequest & WithTargetConfiguration(const TargetConfiguration &value)
PutScalingPolicyRequest & WithComparisonOperator(ComparisonOperatorType &&value)
void SetScalingAdjustmentType(ScalingAdjustmentType &&value)
PutScalingPolicyRequest & WithMetricName(MetricName &&value)
PutScalingPolicyRequest & WithScalingAdjustmentType(ScalingAdjustmentType &&value)
const TargetConfiguration & GetTargetConfiguration() const
PutScalingPolicyRequest & WithComparisonOperator(const ComparisonOperatorType &value)
const ScalingAdjustmentType & GetScalingAdjustmentType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutScalingPolicyRequest & WithScalingAdjustment(int value)
PutScalingPolicyRequest & WithPolicyType(const PolicyType &value)
PutScalingPolicyRequest & WithName(Aws::String &&value)
PutScalingPolicyRequest & WithEvaluationPeriods(int value)
PutScalingPolicyRequest & WithName(const char *value)
void SetTargetConfiguration(const TargetConfiguration &value)
void SetComparisonOperator(ComparisonOperatorType &&value)
void SetScalingAdjustmentType(const ScalingAdjustmentType &value)