AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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
38 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
39 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
40 template <typename PolicyStoreIdT = Aws::String>
41 void SetPolicyStoreId(PolicyStoreIdT&& value) {
42 m_policyStoreIdHasBeenSet = true;
43 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
44 }
45 template <typename PolicyStoreIdT = Aws::String>
46 ListPoliciesRequest& WithPolicyStoreId(PolicyStoreIdT&& value) {
47 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetNextToken() const { return m_nextToken; }
61 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
62 template <typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) {
64 m_nextTokenHasBeenSet = true;
65 m_nextToken = std::forward<NextTokenT>(value);
66 }
67 template <typename NextTokenT = Aws::String>
68 ListPoliciesRequest& WithNextToken(NextTokenT&& value) {
69 SetNextToken(std::forward<NextTokenT>(value));
70 return *this;
71 }
73
75
87 inline int GetMaxResults() const { return m_maxResults; }
88 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 inline void SetMaxResults(int value) {
90 m_maxResultsHasBeenSet = true;
91 m_maxResults = value;
92 }
94 SetMaxResults(value);
95 return *this;
96 }
98
100
105 inline const PolicyFilter& GetFilter() const { return m_filter; }
106 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
107 template <typename FilterT = PolicyFilter>
108 void SetFilter(FilterT&& value) {
109 m_filterHasBeenSet = true;
110 m_filter = std::forward<FilterT>(value);
111 }
112 template <typename FilterT = PolicyFilter>
113 ListPoliciesRequest& WithFilter(FilterT&& value) {
114 SetFilter(std::forward<FilterT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_policyStoreId;
120
121 Aws::String m_nextToken;
122
123 int m_maxResults{0};
124
125 PolicyFilter m_filter;
126 bool m_policyStoreIdHasBeenSet = false;
127 bool m_nextTokenHasBeenSet = false;
128 bool m_maxResultsHasBeenSet = false;
129 bool m_filterHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace VerifiedPermissions
134} // 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