AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ListPoliciesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/verifiedpermissions/VerifiedPermissionsRequest.h>
9#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
10#include <aws/verifiedpermissions/model/PolicyFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace VerifiedPermissions {
16namespace Model {
17
21 public:
22 AWS_VERIFIEDPERMISSIONS_API ListPoliciesRequest() = 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 "ListPolicies"; }
29
30 AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override;
31
32 AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
44 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
45 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
46 template <typename PolicyStoreIdT = Aws::String>
47 void SetPolicyStoreId(PolicyStoreIdT&& value) {
48 m_policyStoreIdHasBeenSet = true;
49 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
50 }
51 template <typename PolicyStoreIdT = Aws::String>
52 ListPoliciesRequest& WithPolicyStoreId(PolicyStoreIdT&& value) {
53 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
74 ListPoliciesRequest& WithNextToken(NextTokenT&& value) {
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
93 inline int GetMaxResults() const { return m_maxResults; }
94 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
95 inline void SetMaxResults(int value) {
96 m_maxResultsHasBeenSet = true;
97 m_maxResults = value;
98 }
100 SetMaxResults(value);
101 return *this;
102 }
104
106
111 inline const PolicyFilter& GetFilter() const { return m_filter; }
112 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
113 template <typename FilterT = PolicyFilter>
114 void SetFilter(FilterT&& value) {
115 m_filterHasBeenSet = true;
116 m_filter = std::forward<FilterT>(value);
117 }
118 template <typename FilterT = PolicyFilter>
119 ListPoliciesRequest& WithFilter(FilterT&& value) {
120 SetFilter(std::forward<FilterT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_policyStoreId;
126
127 Aws::String m_nextToken;
128
129 int m_maxResults{0};
130
131 PolicyFilter m_filter;
132 bool m_policyStoreIdHasBeenSet = false;
133 bool m_nextTokenHasBeenSet = false;
134 bool m_maxResultsHasBeenSet = false;
135 bool m_filterHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace VerifiedPermissions
140} // namespace Aws
ListPoliciesRequest & WithPolicyStoreId(PolicyStoreIdT &&value)
ListPoliciesRequest & WithFilter(FilterT &&value)
virtual const char * GetServiceRequestName() const override
ListPoliciesRequest & WithNextToken(NextTokenT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
AWS_VERIFIEDPERMISSIONS_API ListPoliciesRequest()=default
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String