AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const PolicyScopeType& GetScope() const{ return m_scope; }
51 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
52 inline void SetScope(const PolicyScopeType& value) { m_scopeHasBeenSet = true; m_scope = value; }
53 inline void SetScope(PolicyScopeType&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
54 inline ListPoliciesRequest& WithScope(const PolicyScopeType& value) { SetScope(value); return *this;}
55 inline ListPoliciesRequest& WithScope(PolicyScopeType&& value) { SetScope(std::move(value)); return *this;}
57
59
66 inline bool GetOnlyAttached() const{ return m_onlyAttached; }
67 inline bool OnlyAttachedHasBeenSet() const { return m_onlyAttachedHasBeenSet; }
68 inline void SetOnlyAttached(bool value) { m_onlyAttachedHasBeenSet = true; m_onlyAttached = value; }
69 inline ListPoliciesRequest& WithOnlyAttached(bool value) { SetOnlyAttached(value); return *this;}
71
73
83 inline const Aws::String& GetPathPrefix() const{ return m_pathPrefix; }
84 inline bool PathPrefixHasBeenSet() const { return m_pathPrefixHasBeenSet; }
85 inline void SetPathPrefix(const Aws::String& value) { m_pathPrefixHasBeenSet = true; m_pathPrefix = value; }
86 inline void SetPathPrefix(Aws::String&& value) { m_pathPrefixHasBeenSet = true; m_pathPrefix = std::move(value); }
87 inline void SetPathPrefix(const char* value) { m_pathPrefixHasBeenSet = true; m_pathPrefix.assign(value); }
88 inline ListPoliciesRequest& WithPathPrefix(const Aws::String& value) { SetPathPrefix(value); return *this;}
89 inline ListPoliciesRequest& WithPathPrefix(Aws::String&& value) { SetPathPrefix(std::move(value)); return *this;}
90 inline ListPoliciesRequest& WithPathPrefix(const char* value) { SetPathPrefix(value); return *this;}
92
94
102 inline const PolicyUsageType& GetPolicyUsageFilter() const{ return m_policyUsageFilter; }
103 inline bool PolicyUsageFilterHasBeenSet() const { return m_policyUsageFilterHasBeenSet; }
104 inline void SetPolicyUsageFilter(const PolicyUsageType& value) { m_policyUsageFilterHasBeenSet = true; m_policyUsageFilter = value; }
105 inline void SetPolicyUsageFilter(PolicyUsageType&& value) { m_policyUsageFilterHasBeenSet = true; m_policyUsageFilter = std::move(value); }
107 inline ListPoliciesRequest& WithPolicyUsageFilter(PolicyUsageType&& value) { SetPolicyUsageFilter(std::move(value)); return *this;}
109
111
117 inline const Aws::String& GetMarker() const{ return m_marker; }
118 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
119 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
120 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
121 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
122 inline ListPoliciesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
123 inline ListPoliciesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
124 inline ListPoliciesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
126
128
138 inline int GetMaxItems() const{ return m_maxItems; }
139 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
140 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
141 inline ListPoliciesRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;}
143 private:
144
145 PolicyScopeType m_scope;
146 bool m_scopeHasBeenSet = false;
147
148 bool m_onlyAttached;
149 bool m_onlyAttachedHasBeenSet = false;
150
151 Aws::String m_pathPrefix;
152 bool m_pathPrefixHasBeenSet = false;
153
154 PolicyUsageType m_policyUsageFilter;
155 bool m_policyUsageFilterHasBeenSet = false;
156
157 Aws::String m_marker;
158 bool m_markerHasBeenSet = false;
159
160 int m_maxItems;
161 bool m_maxItemsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace IAM
166} // namespace Aws
ListPoliciesRequest & WithScope(const PolicyScopeType &value)
void SetScope(const PolicyScopeType &value)
ListPoliciesRequest & WithOnlyAttached(bool value)
void SetPolicyUsageFilter(PolicyUsageType &&value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API Aws::String SerializePayload() const override
ListPoliciesRequest & WithPathPrefix(Aws::String &&value)
void SetMarker(const Aws::String &value)
const Aws::String & GetPathPrefix() const
ListPoliciesRequest & WithMarker(const Aws::String &value)
void SetPathPrefix(Aws::String &&value)
ListPoliciesRequest & WithPolicyUsageFilter(PolicyUsageType &&value)
ListPoliciesRequest & WithPolicyUsageFilter(const PolicyUsageType &value)
void SetScope(PolicyScopeType &&value)
ListPoliciesRequest & WithMaxItems(int value)
const PolicyUsageType & GetPolicyUsageFilter() const
ListPoliciesRequest & WithPathPrefix(const char *value)
ListPoliciesRequest & WithScope(PolicyScopeType &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetPolicyUsageFilter(const PolicyUsageType &value)
ListPoliciesRequest & WithPathPrefix(const Aws::String &value)
void SetPathPrefix(const Aws::String &value)
const PolicyScopeType & GetScope() const
ListPoliciesRequest & WithMarker(const char *value)
ListPoliciesRequest & WithMarker(Aws::String &&value)
const Aws::String & GetMarker() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String