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/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/autoscaling/model/TargetTrackingConfiguration.h>
12#include <aws/autoscaling/model/PredictiveScalingConfiguration.h>
13#include <aws/autoscaling/model/StepAdjustment.h>
14#include <utility>
15
16namespace Aws
17{
18namespace AutoScaling
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_AUTOSCALING_API PutScalingPolicyRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "PutScalingPolicy"; }
35
36 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
48 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
49 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
50 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
51 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
53 inline PutScalingPolicyRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
54 inline PutScalingPolicyRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
56
58
61 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
62 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
63 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
64 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
65 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
66 inline PutScalingPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
67 inline PutScalingPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
68 inline PutScalingPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
70
72
78 inline const Aws::String& GetPolicyType() const{ return m_policyType; }
79 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
80 inline void SetPolicyType(const Aws::String& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
81 inline void SetPolicyType(Aws::String&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
82 inline void SetPolicyType(const char* value) { m_policyTypeHasBeenSet = true; m_policyType.assign(value); }
83 inline PutScalingPolicyRequest& WithPolicyType(const Aws::String& value) { SetPolicyType(value); return *this;}
84 inline PutScalingPolicyRequest& WithPolicyType(Aws::String&& value) { SetPolicyType(std::move(value)); return *this;}
85 inline PutScalingPolicyRequest& WithPolicyType(const char* value) { SetPolicyType(value); return *this;}
87
89
98 inline const Aws::String& GetAdjustmentType() const{ return m_adjustmentType; }
99 inline bool AdjustmentTypeHasBeenSet() const { return m_adjustmentTypeHasBeenSet; }
100 inline void SetAdjustmentType(const Aws::String& value) { m_adjustmentTypeHasBeenSet = true; m_adjustmentType = value; }
101 inline void SetAdjustmentType(Aws::String&& value) { m_adjustmentTypeHasBeenSet = true; m_adjustmentType = std::move(value); }
102 inline void SetAdjustmentType(const char* value) { m_adjustmentTypeHasBeenSet = true; m_adjustmentType.assign(value); }
103 inline PutScalingPolicyRequest& WithAdjustmentType(const Aws::String& value) { SetAdjustmentType(value); return *this;}
104 inline PutScalingPolicyRequest& WithAdjustmentType(Aws::String&& value) { SetAdjustmentType(std::move(value)); return *this;}
105 inline PutScalingPolicyRequest& WithAdjustmentType(const char* value) { SetAdjustmentType(value); return *this;}
107
109
113 inline int GetMinAdjustmentStep() const{ return m_minAdjustmentStep; }
114 inline bool MinAdjustmentStepHasBeenSet() const { return m_minAdjustmentStepHasBeenSet; }
115 inline void SetMinAdjustmentStep(int value) { m_minAdjustmentStepHasBeenSet = true; m_minAdjustmentStep = value; }
116 inline PutScalingPolicyRequest& WithMinAdjustmentStep(int value) { SetMinAdjustmentStep(value); return *this;}
118
120
136 inline int GetMinAdjustmentMagnitude() const{ return m_minAdjustmentMagnitude; }
137 inline bool MinAdjustmentMagnitudeHasBeenSet() const { return m_minAdjustmentMagnitudeHasBeenSet; }
138 inline void SetMinAdjustmentMagnitude(int value) { m_minAdjustmentMagnitudeHasBeenSet = true; m_minAdjustmentMagnitude = value; }
141
143
150 inline int GetScalingAdjustment() const{ return m_scalingAdjustment; }
151 inline bool ScalingAdjustmentHasBeenSet() const { return m_scalingAdjustmentHasBeenSet; }
152 inline void SetScalingAdjustment(int value) { m_scalingAdjustmentHasBeenSet = true; m_scalingAdjustment = value; }
153 inline PutScalingPolicyRequest& WithScalingAdjustment(int value) { SetScalingAdjustment(value); return *this;}
155
157
166 inline int GetCooldown() const{ return m_cooldown; }
167 inline bool CooldownHasBeenSet() const { return m_cooldownHasBeenSet; }
168 inline void SetCooldown(int value) { m_cooldownHasBeenSet = true; m_cooldown = value; }
169 inline PutScalingPolicyRequest& WithCooldown(int value) { SetCooldown(value); return *this;}
171
173
179 inline const Aws::String& GetMetricAggregationType() const{ return m_metricAggregationType; }
180 inline bool MetricAggregationTypeHasBeenSet() const { return m_metricAggregationTypeHasBeenSet; }
181 inline void SetMetricAggregationType(const Aws::String& value) { m_metricAggregationTypeHasBeenSet = true; m_metricAggregationType = value; }
182 inline void SetMetricAggregationType(Aws::String&& value) { m_metricAggregationTypeHasBeenSet = true; m_metricAggregationType = std::move(value); }
183 inline void SetMetricAggregationType(const char* value) { m_metricAggregationTypeHasBeenSet = true; m_metricAggregationType.assign(value); }
186 inline PutScalingPolicyRequest& WithMetricAggregationType(const char* value) { SetMetricAggregationType(value); return *this;}
188
190
195 inline const Aws::Vector<StepAdjustment>& GetStepAdjustments() const{ return m_stepAdjustments; }
196 inline bool StepAdjustmentsHasBeenSet() const { return m_stepAdjustmentsHasBeenSet; }
197 inline void SetStepAdjustments(const Aws::Vector<StepAdjustment>& value) { m_stepAdjustmentsHasBeenSet = true; m_stepAdjustments = value; }
198 inline void SetStepAdjustments(Aws::Vector<StepAdjustment>&& value) { m_stepAdjustmentsHasBeenSet = true; m_stepAdjustments = std::move(value); }
201 inline PutScalingPolicyRequest& AddStepAdjustments(const StepAdjustment& value) { m_stepAdjustmentsHasBeenSet = true; m_stepAdjustments.push_back(value); return *this; }
202 inline PutScalingPolicyRequest& AddStepAdjustments(StepAdjustment&& value) { m_stepAdjustmentsHasBeenSet = true; m_stepAdjustments.push_back(std::move(value)); return *this; }
204
206
218 inline int GetEstimatedInstanceWarmup() const{ return m_estimatedInstanceWarmup; }
219 inline bool EstimatedInstanceWarmupHasBeenSet() const { return m_estimatedInstanceWarmupHasBeenSet; }
220 inline void SetEstimatedInstanceWarmup(int value) { m_estimatedInstanceWarmupHasBeenSet = true; m_estimatedInstanceWarmup = value; }
223
225
239 inline const TargetTrackingConfiguration& GetTargetTrackingConfiguration() const{ return m_targetTrackingConfiguration; }
240 inline bool TargetTrackingConfigurationHasBeenSet() const { return m_targetTrackingConfigurationHasBeenSet; }
241 inline void SetTargetTrackingConfiguration(const TargetTrackingConfiguration& value) { m_targetTrackingConfigurationHasBeenSet = true; m_targetTrackingConfiguration = value; }
242 inline void SetTargetTrackingConfiguration(TargetTrackingConfiguration&& value) { m_targetTrackingConfigurationHasBeenSet = true; m_targetTrackingConfiguration = std::move(value); }
246
248
255 inline bool GetEnabled() const{ return m_enabled; }
256 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
257 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
258 inline PutScalingPolicyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
260
262
270 inline const PredictiveScalingConfiguration& GetPredictiveScalingConfiguration() const{ return m_predictiveScalingConfiguration; }
271 inline bool PredictiveScalingConfigurationHasBeenSet() const { return m_predictiveScalingConfigurationHasBeenSet; }
272 inline void SetPredictiveScalingConfiguration(const PredictiveScalingConfiguration& value) { m_predictiveScalingConfigurationHasBeenSet = true; m_predictiveScalingConfiguration = value; }
273 inline void SetPredictiveScalingConfiguration(PredictiveScalingConfiguration&& value) { m_predictiveScalingConfigurationHasBeenSet = true; m_predictiveScalingConfiguration = std::move(value); }
277 private:
278
279 Aws::String m_autoScalingGroupName;
280 bool m_autoScalingGroupNameHasBeenSet = false;
281
282 Aws::String m_policyName;
283 bool m_policyNameHasBeenSet = false;
284
285 Aws::String m_policyType;
286 bool m_policyTypeHasBeenSet = false;
287
288 Aws::String m_adjustmentType;
289 bool m_adjustmentTypeHasBeenSet = false;
290
291 int m_minAdjustmentStep;
292 bool m_minAdjustmentStepHasBeenSet = false;
293
294 int m_minAdjustmentMagnitude;
295 bool m_minAdjustmentMagnitudeHasBeenSet = false;
296
297 int m_scalingAdjustment;
298 bool m_scalingAdjustmentHasBeenSet = false;
299
300 int m_cooldown;
301 bool m_cooldownHasBeenSet = false;
302
303 Aws::String m_metricAggregationType;
304 bool m_metricAggregationTypeHasBeenSet = false;
305
306 Aws::Vector<StepAdjustment> m_stepAdjustments;
307 bool m_stepAdjustmentsHasBeenSet = false;
308
309 int m_estimatedInstanceWarmup;
310 bool m_estimatedInstanceWarmupHasBeenSet = false;
311
312 TargetTrackingConfiguration m_targetTrackingConfiguration;
313 bool m_targetTrackingConfigurationHasBeenSet = false;
314
315 bool m_enabled;
316 bool m_enabledHasBeenSet = false;
317
318 PredictiveScalingConfiguration m_predictiveScalingConfiguration;
319 bool m_predictiveScalingConfigurationHasBeenSet = false;
320 };
321
322} // namespace Model
323} // namespace AutoScaling
324} // namespace Aws
const Aws::Vector< StepAdjustment > & GetStepAdjustments() const
PutScalingPolicyRequest & WithAdjustmentType(Aws::String &&value)
PutScalingPolicyRequest & WithPolicyType(Aws::String &&value)
PutScalingPolicyRequest & WithPredictiveScalingConfiguration(PredictiveScalingConfiguration &&value)
PutScalingPolicyRequest & WithMetricAggregationType(const char *value)
PutScalingPolicyRequest & AddStepAdjustments(const StepAdjustment &value)
virtual const char * GetServiceRequestName() const override
PutScalingPolicyRequest & WithPolicyName(const Aws::String &value)
PutScalingPolicyRequest & WithTargetTrackingConfiguration(TargetTrackingConfiguration &&value)
void SetStepAdjustments(Aws::Vector< StepAdjustment > &&value)
PutScalingPolicyRequest & AddStepAdjustments(StepAdjustment &&value)
void SetStepAdjustments(const Aws::Vector< StepAdjustment > &value)
PutScalingPolicyRequest & WithMinAdjustmentMagnitude(int value)
PutScalingPolicyRequest & WithMinAdjustmentStep(int value)
void SetPredictiveScalingConfiguration(PredictiveScalingConfiguration &&value)
PutScalingPolicyRequest & WithPredictiveScalingConfiguration(const PredictiveScalingConfiguration &value)
void SetTargetTrackingConfiguration(const TargetTrackingConfiguration &value)
PutScalingPolicyRequest & WithAdjustmentType(const Aws::String &value)
void SetTargetTrackingConfiguration(TargetTrackingConfiguration &&value)
PutScalingPolicyRequest & WithTargetTrackingConfiguration(const TargetTrackingConfiguration &value)
PutScalingPolicyRequest & WithScalingAdjustment(int value)
PutScalingPolicyRequest & WithAutoScalingGroupName(const char *value)
PutScalingPolicyRequest & WithAutoScalingGroupName(const Aws::String &value)
const PredictiveScalingConfiguration & GetPredictiveScalingConfiguration() const
PutScalingPolicyRequest & WithPolicyName(Aws::String &&value)
void SetPredictiveScalingConfiguration(const PredictiveScalingConfiguration &value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
PutScalingPolicyRequest & WithEstimatedInstanceWarmup(int value)
PutScalingPolicyRequest & WithEnabled(bool value)
const TargetTrackingConfiguration & GetTargetTrackingConfiguration() const
PutScalingPolicyRequest & WithPolicyType(const char *value)
PutScalingPolicyRequest & WithPolicyType(const Aws::String &value)
PutScalingPolicyRequest & WithMetricAggregationType(const Aws::String &value)
PutScalingPolicyRequest & WithStepAdjustments(const Aws::Vector< StepAdjustment > &value)
PutScalingPolicyRequest & WithAdjustmentType(const char *value)
PutScalingPolicyRequest & WithAutoScalingGroupName(Aws::String &&value)
PutScalingPolicyRequest & WithMetricAggregationType(Aws::String &&value)
PutScalingPolicyRequest & WithStepAdjustments(Aws::Vector< StepAdjustment > &&value)
PutScalingPolicyRequest & WithPolicyName(const char *value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector