AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListPoliciesRequest.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/iam/model/PolicyScopeType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iam/model/PolicyUsageType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IAM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IAM_API ListPoliciesRequest() = default;
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 "ListPolicies"; }
33
34 AWS_IAM_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
50 inline PolicyScopeType GetScope() const { return m_scope; }
51 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
52 inline void SetScope(PolicyScopeType value) { m_scopeHasBeenSet = true; m_scope = value; }
53 inline ListPoliciesRequest& WithScope(PolicyScopeType value) { SetScope(value); return *this;}
55
57
64 inline bool GetOnlyAttached() const { return m_onlyAttached; }
65 inline bool OnlyAttachedHasBeenSet() const { return m_onlyAttachedHasBeenSet; }
66 inline void SetOnlyAttached(bool value) { m_onlyAttachedHasBeenSet = true; m_onlyAttached = value; }
67 inline ListPoliciesRequest& WithOnlyAttached(bool value) { SetOnlyAttached(value); return *this;}
69
71
81 inline const Aws::String& GetPathPrefix() const { return m_pathPrefix; }
82 inline bool PathPrefixHasBeenSet() const { return m_pathPrefixHasBeenSet; }
83 template<typename PathPrefixT = Aws::String>
84 void SetPathPrefix(PathPrefixT&& value) { m_pathPrefixHasBeenSet = true; m_pathPrefix = std::forward<PathPrefixT>(value); }
85 template<typename PathPrefixT = Aws::String>
86 ListPoliciesRequest& WithPathPrefix(PathPrefixT&& value) { SetPathPrefix(std::forward<PathPrefixT>(value)); return *this;}
88
90
98 inline PolicyUsageType GetPolicyUsageFilter() const { return m_policyUsageFilter; }
99 inline bool PolicyUsageFilterHasBeenSet() const { return m_policyUsageFilterHasBeenSet; }
100 inline void SetPolicyUsageFilter(PolicyUsageType value) { m_policyUsageFilterHasBeenSet = true; m_policyUsageFilter = value; }
103
105
111 inline const Aws::String& GetMarker() const { return m_marker; }
112 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
113 template<typename MarkerT = Aws::String>
114 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
115 template<typename MarkerT = Aws::String>
116 ListPoliciesRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
118
120
130 inline int GetMaxItems() const { return m_maxItems; }
131 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
132 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
133 inline ListPoliciesRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;}
135 private:
136
138 bool m_scopeHasBeenSet = false;
139
140 bool m_onlyAttached{false};
141 bool m_onlyAttachedHasBeenSet = false;
142
143 Aws::String m_pathPrefix;
144 bool m_pathPrefixHasBeenSet = false;
145
146 PolicyUsageType m_policyUsageFilter{PolicyUsageType::NOT_SET};
147 bool m_policyUsageFilterHasBeenSet = false;
148
149 Aws::String m_marker;
150 bool m_markerHasBeenSet = false;
151
152 int m_maxItems{0};
153 bool m_maxItemsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace IAM
158} // namespace Aws
void SetPolicyUsageFilter(PolicyUsageType value)
void SetScope(PolicyScopeType value)
ListPoliciesRequest & WithOnlyAttached(bool value)
virtual const char * GetServiceRequestName() const override
ListPoliciesRequest & WithScope(PolicyScopeType value)
PolicyUsageType GetPolicyUsageFilter() const
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