AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
DescribePoliciesRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScalingRequest.h>
8#include <aws/autoscaling/AutoScaling_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AutoScaling {
16namespace Model {
17
21 public:
22 AWS_AUTOSCALING_API DescribePoliciesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribePolicies"; }
29
30 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
41 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
42 template <typename AutoScalingGroupNameT = Aws::String>
43 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
44 m_autoScalingGroupNameHasBeenSet = true;
45 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
46 }
47 template <typename AutoScalingGroupNameT = Aws::String>
48 DescribePoliciesRequest& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) {
49 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::Vector<Aws::String>& GetPolicyNames() const { return m_policyNames; }
62 inline bool PolicyNamesHasBeenSet() const { return m_policyNamesHasBeenSet; }
63 template <typename PolicyNamesT = Aws::Vector<Aws::String>>
64 void SetPolicyNames(PolicyNamesT&& value) {
65 m_policyNamesHasBeenSet = true;
66 m_policyNames = std::forward<PolicyNamesT>(value);
67 }
68 template <typename PolicyNamesT = Aws::Vector<Aws::String>>
70 SetPolicyNames(std::forward<PolicyNamesT>(value));
71 return *this;
72 }
73 template <typename PolicyNamesT = Aws::String>
74 DescribePoliciesRequest& AddPolicyNames(PolicyNamesT&& value) {
75 m_policyNamesHasBeenSet = true;
76 m_policyNames.emplace_back(std::forward<PolicyNamesT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::Vector<Aws::String>& GetPolicyTypes() const { return m_policyTypes; }
88 inline bool PolicyTypesHasBeenSet() const { return m_policyTypesHasBeenSet; }
89 template <typename PolicyTypesT = Aws::Vector<Aws::String>>
90 void SetPolicyTypes(PolicyTypesT&& value) {
91 m_policyTypesHasBeenSet = true;
92 m_policyTypes = std::forward<PolicyTypesT>(value);
93 }
94 template <typename PolicyTypesT = Aws::Vector<Aws::String>>
96 SetPolicyTypes(std::forward<PolicyTypesT>(value));
97 return *this;
98 }
99 template <typename PolicyTypesT = Aws::String>
101 m_policyTypesHasBeenSet = true;
102 m_policyTypes.emplace_back(std::forward<PolicyTypesT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetNextToken() const { return m_nextToken; }
113 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
114 template <typename NextTokenT = Aws::String>
115 void SetNextToken(NextTokenT&& value) {
116 m_nextTokenHasBeenSet = true;
117 m_nextToken = std::forward<NextTokenT>(value);
118 }
119 template <typename NextTokenT = Aws::String>
121 SetNextToken(std::forward<NextTokenT>(value));
122 return *this;
123 }
125
127
131 inline int GetMaxRecords() const { return m_maxRecords; }
132 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
133 inline void SetMaxRecords(int value) {
134 m_maxRecordsHasBeenSet = true;
135 m_maxRecords = value;
136 }
138 SetMaxRecords(value);
139 return *this;
140 }
142 private:
143 Aws::String m_autoScalingGroupName;
144 bool m_autoScalingGroupNameHasBeenSet = false;
145
146 Aws::Vector<Aws::String> m_policyNames;
147 bool m_policyNamesHasBeenSet = false;
148
149 Aws::Vector<Aws::String> m_policyTypes;
150 bool m_policyTypesHasBeenSet = false;
151
152 Aws::String m_nextToken;
153 bool m_nextTokenHasBeenSet = false;
154
155 int m_maxRecords{0};
156 bool m_maxRecordsHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace AutoScaling
161} // namespace Aws
DescribePoliciesRequest & AddPolicyNames(PolicyNamesT &&value)
DescribePoliciesRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
const Aws::Vector< Aws::String > & GetPolicyNames() const
DescribePoliciesRequest & WithPolicyNames(PolicyNamesT &&value)
const Aws::Vector< Aws::String > & GetPolicyTypes() const
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
void SetAutoScalingGroupName(AutoScalingGroupNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_AUTOSCALING_API DescribePoliciesRequest()=default
DescribePoliciesRequest & WithNextToken(NextTokenT &&value)
DescribePoliciesRequest & AddPolicyTypes(PolicyTypesT &&value)
DescribePoliciesRequest & WithMaxRecords(int value)
DescribePoliciesRequest & WithPolicyTypes(PolicyTypesT &&value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector