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/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/ApplicationAutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/application-autoscaling/model/ServiceNamespace.h>
11#include <aws/application-autoscaling/model/ScalableDimension.h>
12#include <aws/application-autoscaling/model/PolicyType.h>
13#include <aws/application-autoscaling/model/StepScalingPolicyConfiguration.h>
14#include <aws/application-autoscaling/model/TargetTrackingScalingPolicyConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace ApplicationAutoScaling
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_APPLICATIONAUTOSCALING_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_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override;
38
39 AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
48 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
49 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
50 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
51 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
52 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
53 inline PutScalingPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
54 inline PutScalingPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
55 inline PutScalingPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
57
59
64 inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
65 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
66 inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
67 inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
69 inline PutScalingPolicyRequest& WithServiceNamespace(ServiceNamespace&& value) { SetServiceNamespace(std::move(value)); return *this;}
71
73
134 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
135 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
136 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
137 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
138 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
139 inline PutScalingPolicyRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
140 inline PutScalingPolicyRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
141 inline PutScalingPolicyRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
143
145
195 inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
196 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
197 inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
198 inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = std::move(value); }
200 inline PutScalingPolicyRequest& WithScalableDimension(ScalableDimension&& value) { SetScalableDimension(std::move(value)); return *this;}
202
204
216 inline const PolicyType& GetPolicyType() const{ return m_policyType; }
217 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
218 inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
219 inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
220 inline PutScalingPolicyRequest& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
221 inline PutScalingPolicyRequest& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
223
225
229 inline const StepScalingPolicyConfiguration& GetStepScalingPolicyConfiguration() const{ return m_stepScalingPolicyConfiguration; }
230 inline bool StepScalingPolicyConfigurationHasBeenSet() const { return m_stepScalingPolicyConfigurationHasBeenSet; }
231 inline void SetStepScalingPolicyConfiguration(const StepScalingPolicyConfiguration& value) { m_stepScalingPolicyConfigurationHasBeenSet = true; m_stepScalingPolicyConfiguration = value; }
232 inline void SetStepScalingPolicyConfiguration(StepScalingPolicyConfiguration&& value) { m_stepScalingPolicyConfigurationHasBeenSet = true; m_stepScalingPolicyConfiguration = std::move(value); }
236
238
243 inline const TargetTrackingScalingPolicyConfiguration& GetTargetTrackingScalingPolicyConfiguration() const{ return m_targetTrackingScalingPolicyConfiguration; }
244 inline bool TargetTrackingScalingPolicyConfigurationHasBeenSet() const { return m_targetTrackingScalingPolicyConfigurationHasBeenSet; }
245 inline void SetTargetTrackingScalingPolicyConfiguration(const TargetTrackingScalingPolicyConfiguration& value) { m_targetTrackingScalingPolicyConfigurationHasBeenSet = true; m_targetTrackingScalingPolicyConfiguration = value; }
246 inline void SetTargetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfiguration&& value) { m_targetTrackingScalingPolicyConfigurationHasBeenSet = true; m_targetTrackingScalingPolicyConfiguration = std::move(value); }
250 private:
251
252 Aws::String m_policyName;
253 bool m_policyNameHasBeenSet = false;
254
255 ServiceNamespace m_serviceNamespace;
256 bool m_serviceNamespaceHasBeenSet = false;
257
258 Aws::String m_resourceId;
259 bool m_resourceIdHasBeenSet = false;
260
261 ScalableDimension m_scalableDimension;
262 bool m_scalableDimensionHasBeenSet = false;
263
264 PolicyType m_policyType;
265 bool m_policyTypeHasBeenSet = false;
266
267 StepScalingPolicyConfiguration m_stepScalingPolicyConfiguration;
268 bool m_stepScalingPolicyConfigurationHasBeenSet = false;
269
270 TargetTrackingScalingPolicyConfiguration m_targetTrackingScalingPolicyConfiguration;
271 bool m_targetTrackingScalingPolicyConfigurationHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace ApplicationAutoScaling
276} // namespace Aws
PutScalingPolicyRequest & WithResourceId(Aws::String &&value)
PutScalingPolicyRequest & WithPolicyName(const Aws::String &value)
PutScalingPolicyRequest & WithResourceId(const char *value)
PutScalingPolicyRequest & WithTargetTrackingScalingPolicyConfiguration(const TargetTrackingScalingPolicyConfiguration &value)
const StepScalingPolicyConfiguration & GetStepScalingPolicyConfiguration() const
void SetTargetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfiguration &&value)
PutScalingPolicyRequest & WithServiceNamespace(ServiceNamespace &&value)
PutScalingPolicyRequest & WithScalableDimension(const ScalableDimension &value)
PutScalingPolicyRequest & WithPolicyName(const char *value)
void SetStepScalingPolicyConfiguration(StepScalingPolicyConfiguration &&value)
void SetStepScalingPolicyConfiguration(const StepScalingPolicyConfiguration &value)
AWS_APPLICATIONAUTOSCALING_API PutScalingPolicyRequest()
AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutScalingPolicyRequest & WithPolicyName(Aws::String &&value)
PutScalingPolicyRequest & WithStepScalingPolicyConfiguration(const StepScalingPolicyConfiguration &value)
PutScalingPolicyRequest & WithStepScalingPolicyConfiguration(StepScalingPolicyConfiguration &&value)
PutScalingPolicyRequest & WithScalableDimension(ScalableDimension &&value)
PutScalingPolicyRequest & WithPolicyType(PolicyType &&value)
const TargetTrackingScalingPolicyConfiguration & GetTargetTrackingScalingPolicyConfiguration() const
void SetTargetTrackingScalingPolicyConfiguration(const TargetTrackingScalingPolicyConfiguration &value)
PutScalingPolicyRequest & WithPolicyType(const PolicyType &value)
PutScalingPolicyRequest & WithServiceNamespace(const ServiceNamespace &value)
AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override
PutScalingPolicyRequest & WithResourceId(const Aws::String &value)
PutScalingPolicyRequest & WithTargetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfiguration &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String