AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteScalingPolicyRequest.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 <utility>
13
14namespace Aws
15{
16namespace ApplicationAutoScaling
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_APPLICATIONAUTOSCALING_API DeleteScalingPolicyRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DeleteScalingPolicy"; }
33
34 AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override;
35
36 AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
44 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
45 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
46 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
47 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
48 inline DeleteScalingPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
49 inline DeleteScalingPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
50 inline DeleteScalingPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
52
54
59 inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
60 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
61 inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
62 inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
64 inline DeleteScalingPolicyRequest& WithServiceNamespace(ServiceNamespace&& value) { SetServiceNamespace(std::move(value)); return *this;}
66
68
129 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
130 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
131 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
132 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
133 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
134 inline DeleteScalingPolicyRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
135 inline DeleteScalingPolicyRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
136 inline DeleteScalingPolicyRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
138
140
190 inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
191 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
192 inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
193 inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = std::move(value); }
197 private:
198
199 Aws::String m_policyName;
200 bool m_policyNameHasBeenSet = false;
201
202 ServiceNamespace m_serviceNamespace;
203 bool m_serviceNamespaceHasBeenSet = false;
204
205 Aws::String m_resourceId;
206 bool m_resourceIdHasBeenSet = false;
207
208 ScalableDimension m_scalableDimension;
209 bool m_scalableDimensionHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace ApplicationAutoScaling
214} // namespace Aws
DeleteScalingPolicyRequest & WithServiceNamespace(const ServiceNamespace &value)
DeleteScalingPolicyRequest & WithScalableDimension(const ScalableDimension &value)
AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteScalingPolicyRequest & WithPolicyName(const Aws::String &value)
DeleteScalingPolicyRequest & WithResourceId(Aws::String &&value)
DeleteScalingPolicyRequest & WithServiceNamespace(ServiceNamespace &&value)
DeleteScalingPolicyRequest & WithScalableDimension(ScalableDimension &&value)
DeleteScalingPolicyRequest & WithPolicyName(const char *value)
AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override
DeleteScalingPolicyRequest & WithResourceId(const Aws::String &value)
DeleteScalingPolicyRequest & WithPolicyName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String