AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename PolicyNamesT = Aws::Vector<Aws::String>>
47 void SetPolicyNames(PolicyNamesT&& value) { m_policyNamesHasBeenSet = true; m_policyNames = std::forward<PolicyNamesT>(value); }
48 template<typename PolicyNamesT = Aws::Vector<Aws::String>>
49 DescribeScalingPoliciesRequest& WithPolicyNames(PolicyNamesT&& value) { SetPolicyNames(std::forward<PolicyNamesT>(value)); return *this;}
50 template<typename PolicyNamesT = Aws::String>
51 DescribeScalingPoliciesRequest& AddPolicyNames(PolicyNamesT&& value) { m_policyNamesHasBeenSet = true; m_policyNames.emplace_back(std::forward<PolicyNamesT>(value)); return *this; }
53
55
60 inline ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
61 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
62 inline void SetServiceNamespace(ServiceNamespace value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
65
67
131 inline const Aws::String& GetResourceId() const { return m_resourceId; }
132 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
133 template<typename ResourceIdT = Aws::String>
134 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
135 template<typename ResourceIdT = Aws::String>
136 DescribeScalingPoliciesRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
138
140
193 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
194 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
195 inline void SetScalableDimension(ScalableDimension value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
198
200
209 inline int GetMaxResults() const { return m_maxResults; }
210 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
211 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
212 inline DescribeScalingPoliciesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
214
216
219 inline const Aws::String& GetNextToken() const { return m_nextToken; }
220 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
221 template<typename NextTokenT = Aws::String>
222 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
223 template<typename NextTokenT = Aws::String>
224 DescribeScalingPoliciesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
226 private:
227
228 Aws::Vector<Aws::String> m_policyNames;
229 bool m_policyNamesHasBeenSet = false;
230
232 bool m_serviceNamespaceHasBeenSet = false;
233
234 Aws::String m_resourceId;
235 bool m_resourceIdHasBeenSet = false;
236
238 bool m_scalableDimensionHasBeenSet = false;
239
240 int m_maxResults{0};
241 bool m_maxResultsHasBeenSet = false;
242
243 Aws::String m_nextToken;
244 bool m_nextTokenHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace ApplicationAutoScaling
249} // namespace Aws
DescribeScalingPoliciesRequest & WithServiceNamespace(ServiceNamespace value)
DescribeScalingPoliciesRequest & WithPolicyNames(PolicyNamesT &&value)
DescribeScalingPoliciesRequest & WithResourceId(ResourceIdT &&value)
AWS_APPLICATIONAUTOSCALING_API DescribeScalingPoliciesRequest()=default
AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override
AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeScalingPoliciesRequest & WithScalableDimension(ScalableDimension value)
DescribeScalingPoliciesRequest & AddPolicyNames(PolicyNamesT &&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