AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutScalingPolicyRequest.h
1
6#pragma once
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>
15#include <utility>
16
17namespace Aws
18{
19namespace GameLift
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_GAMELIFT_API PutScalingPolicyRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutScalingPolicy"; }
36
37 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
38
40
41
43
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline PutScalingPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline PutScalingPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline PutScalingPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
57
59
64 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
65 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
66 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
67 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
68 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
69 inline PutScalingPolicyRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
70 inline PutScalingPolicyRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
71 inline PutScalingPolicyRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
73
75
78 inline int GetScalingAdjustment() const{ return m_scalingAdjustment; }
79 inline bool ScalingAdjustmentHasBeenSet() const { return m_scalingAdjustmentHasBeenSet; }
80 inline void SetScalingAdjustment(int value) { m_scalingAdjustmentHasBeenSet = true; m_scalingAdjustment = value; }
81 inline PutScalingPolicyRequest& WithScalingAdjustment(int value) { SetScalingAdjustment(value); return *this;}
83
85
95 inline const ScalingAdjustmentType& GetScalingAdjustmentType() const{ return m_scalingAdjustmentType; }
96 inline bool ScalingAdjustmentTypeHasBeenSet() const { return m_scalingAdjustmentTypeHasBeenSet; }
97 inline void SetScalingAdjustmentType(const ScalingAdjustmentType& value) { m_scalingAdjustmentTypeHasBeenSet = true; m_scalingAdjustmentType = value; }
98 inline void SetScalingAdjustmentType(ScalingAdjustmentType&& value) { m_scalingAdjustmentTypeHasBeenSet = true; m_scalingAdjustmentType = std::move(value); }
102
104
107 inline double GetThreshold() const{ return m_threshold; }
108 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
109 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
110 inline PutScalingPolicyRequest& WithThreshold(double value) { SetThreshold(value); return *this;}
112
114
118 inline const ComparisonOperatorType& GetComparisonOperator() const{ return m_comparisonOperator; }
119 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
120 inline void SetComparisonOperator(const ComparisonOperatorType& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
121 inline void SetComparisonOperator(ComparisonOperatorType&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
125
127
131 inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
132 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
133 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
134 inline PutScalingPolicyRequest& WithEvaluationPeriods(int value) { SetEvaluationPeriods(value); return *this;}
136
138
166 inline const MetricName& GetMetricName() const{ return m_metricName; }
167 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
168 inline void SetMetricName(const MetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
169 inline void SetMetricName(MetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
170 inline PutScalingPolicyRequest& WithMetricName(const MetricName& value) { SetMetricName(value); return *this;}
171 inline PutScalingPolicyRequest& WithMetricName(MetricName&& value) { SetMetricName(std::move(value)); return *this;}
173
175
183 inline const PolicyType& GetPolicyType() const{ return m_policyType; }
184 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
185 inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
186 inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
187 inline PutScalingPolicyRequest& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
188 inline PutScalingPolicyRequest& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
190
192
195 inline const TargetConfiguration& GetTargetConfiguration() const{ return m_targetConfiguration; }
196 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
197 inline void SetTargetConfiguration(const TargetConfiguration& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = value; }
198 inline void SetTargetConfiguration(TargetConfiguration&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = std::move(value); }
202 private:
203
204 Aws::String m_name;
205 bool m_nameHasBeenSet = false;
206
207 Aws::String m_fleetId;
208 bool m_fleetIdHasBeenSet = false;
209
210 int m_scalingAdjustment;
211 bool m_scalingAdjustmentHasBeenSet = false;
212
213 ScalingAdjustmentType m_scalingAdjustmentType;
214 bool m_scalingAdjustmentTypeHasBeenSet = false;
215
216 double m_threshold;
217 bool m_thresholdHasBeenSet = false;
218
219 ComparisonOperatorType m_comparisonOperator;
220 bool m_comparisonOperatorHasBeenSet = false;
221
222 int m_evaluationPeriods;
223 bool m_evaluationPeriodsHasBeenSet = false;
224
225 MetricName m_metricName;
226 bool m_metricNameHasBeenSet = false;
227
228 PolicyType m_policyType;
229 bool m_policyTypeHasBeenSet = false;
230
231 TargetConfiguration m_targetConfiguration;
232 bool m_targetConfigurationHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace GameLift
237} // namespace Aws
PutScalingPolicyRequest & WithName(const Aws::String &value)
PutScalingPolicyRequest & WithFleetId(Aws::String &&value)
PutScalingPolicyRequest & WithScalingAdjustmentType(const ScalingAdjustmentType &value)
PutScalingPolicyRequest & WithFleetId(const char *value)
PutScalingPolicyRequest & WithMetricName(MetricName &&value)
PutScalingPolicyRequest & WithName(const char *value)
const ScalingAdjustmentType & GetScalingAdjustmentType() const
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutScalingPolicyRequest & WithThreshold(double value)
PutScalingPolicyRequest & WithScalingAdjustmentType(ScalingAdjustmentType &&value)
PutScalingPolicyRequest & WithComparisonOperator(ComparisonOperatorType &&value)
void SetTargetConfiguration(const TargetConfiguration &value)
PutScalingPolicyRequest & WithScalingAdjustment(int value)
PutScalingPolicyRequest & WithTargetConfiguration(const TargetConfiguration &value)
void SetScalingAdjustmentType(const ScalingAdjustmentType &value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
void SetComparisonOperator(ComparisonOperatorType &&value)
PutScalingPolicyRequest & WithComparisonOperator(const ComparisonOperatorType &value)
PutScalingPolicyRequest & WithPolicyType(const PolicyType &value)
PutScalingPolicyRequest & WithFleetId(const Aws::String &value)
void SetScalingAdjustmentType(ScalingAdjustmentType &&value)
void SetTargetConfiguration(TargetConfiguration &&value)
const TargetConfiguration & GetTargetConfiguration() const
PutScalingPolicyRequest & WithPolicyType(PolicyType &&value)
const ComparisonOperatorType & GetComparisonOperator() const
PutScalingPolicyRequest & WithTargetConfiguration(TargetConfiguration &&value)
PutScalingPolicyRequest & WithMetricName(const MetricName &value)
PutScalingPolicyRequest & WithName(Aws::String &&value)
PutScalingPolicyRequest & WithEvaluationPeriods(int value)
void SetComparisonOperator(const ComparisonOperatorType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String