AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DeleteScalingPolicyRequest.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScalingRequest.h>
8#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
9#include <aws/application-autoscaling/model/ScalableDimension.h>
10#include <aws/application-autoscaling/model/ServiceNamespace.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ApplicationAutoScaling {
17namespace Model {
18
22 public:
23 AWS_APPLICATIONAUTOSCALING_API DeleteScalingPolicyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DeleteScalingPolicy"; }
30
31 AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override;
32
33 AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetPolicyName() const { return m_policyName; }
40 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
41 template <typename PolicyNameT = Aws::String>
42 void SetPolicyName(PolicyNameT&& value) {
43 m_policyNameHasBeenSet = true;
44 m_policyName = std::forward<PolicyNameT>(value);
45 }
46 template <typename PolicyNameT = Aws::String>
48 SetPolicyName(std::forward<PolicyNameT>(value));
49 return *this;
50 }
52
54
59 inline ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
60 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
62 m_serviceNamespaceHasBeenSet = true;
63 m_serviceNamespace = value;
64 }
67 return *this;
68 }
70
72
136 inline const Aws::String& GetResourceId() const { return m_resourceId; }
137 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
138 template <typename ResourceIdT = Aws::String>
139 void SetResourceId(ResourceIdT&& value) {
140 m_resourceIdHasBeenSet = true;
141 m_resourceId = std::forward<ResourceIdT>(value);
142 }
143 template <typename ResourceIdT = Aws::String>
145 SetResourceId(std::forward<ResourceIdT>(value));
146 return *this;
147 }
149
151
203 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
204 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
206 m_scalableDimensionHasBeenSet = true;
207 m_scalableDimension = value;
208 }
211 return *this;
212 }
214 private:
215 Aws::String m_policyName;
216
218
219 Aws::String m_resourceId;
220
222 bool m_policyNameHasBeenSet = false;
223 bool m_serviceNamespaceHasBeenSet = false;
224 bool m_resourceIdHasBeenSet = false;
225 bool m_scalableDimensionHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace ApplicationAutoScaling
230} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API DeleteScalingPolicyRequest()=default
DeleteScalingPolicyRequest & WithPolicyName(PolicyNameT &&value)
AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteScalingPolicyRequest & WithResourceId(ResourceIdT &&value)
DeleteScalingPolicyRequest & WithServiceNamespace(ServiceNamespace value)
DeleteScalingPolicyRequest & WithScalableDimension(ScalableDimension value)
AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String