AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeScalingPoliciesRequest.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/AWSVector.h>
10#include <aws/application-autoscaling/model/ServiceNamespace.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/application-autoscaling/model/ScalableDimension.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ApplicationAutoScaling
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPLICATIONAUTOSCALING_API DescribeScalingPoliciesRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeScalingPolicies"; }
34
35 AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override;
36
37 AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::Vector<Aws::String>& GetPolicyNames() const{ return m_policyNames; }
45 inline bool PolicyNamesHasBeenSet() const { return m_policyNamesHasBeenSet; }
46 inline void SetPolicyNames(const Aws::Vector<Aws::String>& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
47 inline void SetPolicyNames(Aws::Vector<Aws::String>&& value) { m_policyNamesHasBeenSet = true; m_policyNames = std::move(value); }
50 inline DescribeScalingPoliciesRequest& AddPolicyNames(const Aws::String& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
51 inline DescribeScalingPoliciesRequest& AddPolicyNames(Aws::String&& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(std::move(value)); return *this; }
52 inline DescribeScalingPoliciesRequest& AddPolicyNames(const char* value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
54
56
61 inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
62 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
63 inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
64 inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
68
70
131 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
132 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
133 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
134 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
135 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
136 inline DescribeScalingPoliciesRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
137 inline DescribeScalingPoliciesRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
138 inline DescribeScalingPoliciesRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
140
142
193 inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
194 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
195 inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
196 inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = std::move(value); }
200
202
211 inline int GetMaxResults() const{ return m_maxResults; }
212 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
213 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
214 inline DescribeScalingPoliciesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
216
218
221 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
222 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
223 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
224 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
225 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
226 inline DescribeScalingPoliciesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
227 inline DescribeScalingPoliciesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
228 inline DescribeScalingPoliciesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
230 private:
231
232 Aws::Vector<Aws::String> m_policyNames;
233 bool m_policyNamesHasBeenSet = false;
234
235 ServiceNamespace m_serviceNamespace;
236 bool m_serviceNamespaceHasBeenSet = false;
237
238 Aws::String m_resourceId;
239 bool m_resourceIdHasBeenSet = false;
240
241 ScalableDimension m_scalableDimension;
242 bool m_scalableDimensionHasBeenSet = false;
243
244 int m_maxResults;
245 bool m_maxResultsHasBeenSet = false;
246
247 Aws::String m_nextToken;
248 bool m_nextTokenHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace ApplicationAutoScaling
253} // namespace Aws
DescribeScalingPoliciesRequest & WithResourceId(Aws::String &&value)
DescribeScalingPoliciesRequest & WithScalableDimension(const ScalableDimension &value)
DescribeScalingPoliciesRequest & WithServiceNamespace(const ServiceNamespace &value)
DescribeScalingPoliciesRequest & AddPolicyNames(const Aws::String &value)
AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override
DescribeScalingPoliciesRequest & WithNextToken(const Aws::String &value)
DescribeScalingPoliciesRequest & WithNextToken(Aws::String &&value)
DescribeScalingPoliciesRequest & WithPolicyNames(const Aws::Vector< Aws::String > &value)
DescribeScalingPoliciesRequest & WithResourceId(const Aws::String &value)
AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeScalingPoliciesRequest & AddPolicyNames(Aws::String &&value)
DescribeScalingPoliciesRequest & WithPolicyNames(Aws::Vector< Aws::String > &&value)
DescribeScalingPoliciesRequest & WithScalableDimension(ScalableDimension &&value)
DescribeScalingPoliciesRequest & WithServiceNamespace(ServiceNamespace &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector