AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ListPoliciesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/iam/IAM_EXPORTS.h>
10#include <aws/iam/model/PolicyScopeType.h>
11#include <aws/iam/model/PolicyUsageType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IAM {
17namespace Model {
18
22 public:
23 AWS_IAM_API ListPoliciesRequest() = 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 "ListPolicies"; }
30
31 AWS_IAM_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
46 inline PolicyScopeType GetScope() const { return m_scope; }
47 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
48 inline void SetScope(PolicyScopeType value) {
49 m_scopeHasBeenSet = true;
50 m_scope = value;
51 }
53 SetScope(value);
54 return *this;
55 }
57
59
66 inline bool GetOnlyAttached() const { return m_onlyAttached; }
67 inline bool OnlyAttachedHasBeenSet() const { return m_onlyAttachedHasBeenSet; }
68 inline void SetOnlyAttached(bool value) {
69 m_onlyAttachedHasBeenSet = true;
70 m_onlyAttached = value;
71 }
73 SetOnlyAttached(value);
74 return *this;
75 }
77
79
89 inline const Aws::String& GetPathPrefix() const { return m_pathPrefix; }
90 inline bool PathPrefixHasBeenSet() const { return m_pathPrefixHasBeenSet; }
91 template <typename PathPrefixT = Aws::String>
92 void SetPathPrefix(PathPrefixT&& value) {
93 m_pathPrefixHasBeenSet = true;
94 m_pathPrefix = std::forward<PathPrefixT>(value);
95 }
96 template <typename PathPrefixT = Aws::String>
97 ListPoliciesRequest& WithPathPrefix(PathPrefixT&& value) {
98 SetPathPrefix(std::forward<PathPrefixT>(value));
99 return *this;
100 }
102
104
112 inline PolicyUsageType GetPolicyUsageFilter() const { return m_policyUsageFilter; }
113 inline bool PolicyUsageFilterHasBeenSet() const { return m_policyUsageFilterHasBeenSet; }
115 m_policyUsageFilterHasBeenSet = true;
116 m_policyUsageFilter = value;
117 }
120 return *this;
121 }
123
125
131 inline const Aws::String& GetMarker() const { return m_marker; }
132 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
133 template <typename MarkerT = Aws::String>
134 void SetMarker(MarkerT&& value) {
135 m_markerHasBeenSet = true;
136 m_marker = std::forward<MarkerT>(value);
137 }
138 template <typename MarkerT = Aws::String>
139 ListPoliciesRequest& WithMarker(MarkerT&& value) {
140 SetMarker(std::forward<MarkerT>(value));
141 return *this;
142 }
144
146
156 inline int GetMaxItems() const { return m_maxItems; }
157 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
158 inline void SetMaxItems(int value) {
159 m_maxItemsHasBeenSet = true;
160 m_maxItems = value;
161 }
163 SetMaxItems(value);
164 return *this;
165 }
167 private:
169
170 bool m_onlyAttached{false};
171
172 Aws::String m_pathPrefix;
173
174 PolicyUsageType m_policyUsageFilter{PolicyUsageType::NOT_SET};
175
176 Aws::String m_marker;
177
178 int m_maxItems{0};
179 bool m_scopeHasBeenSet = false;
180 bool m_onlyAttachedHasBeenSet = false;
181 bool m_pathPrefixHasBeenSet = false;
182 bool m_policyUsageFilterHasBeenSet = false;
183 bool m_markerHasBeenSet = false;
184 bool m_maxItemsHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace IAM
189} // namespace Aws
void SetPolicyUsageFilter(PolicyUsageType value)
void SetScope(PolicyScopeType value)
ListPoliciesRequest & WithOnlyAttached(bool value)
virtual const char * GetServiceRequestName() const override
ListPoliciesRequest & WithScope(PolicyScopeType value)
AWS_IAM_API ListPoliciesRequest()=default
AWS_IAM_API Aws::String SerializePayload() const override
const Aws::String & GetPathPrefix() const
ListPoliciesRequest & WithMaxItems(int value)
ListPoliciesRequest & WithPolicyUsageFilter(PolicyUsageType value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ListPoliciesRequest & WithMarker(MarkerT &&value)
void SetPathPrefix(PathPrefixT &&value)
ListPoliciesRequest & WithPathPrefix(PathPrefixT &&value)
const Aws::String & GetMarker() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String