AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ListUsersRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CognitoIdentityProvider {
16namespace Model {
17
24 public:
25 AWS_COGNITOIDENTITYPROVIDER_API ListUsersRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListUsers"; }
32
33 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
34
35 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
42 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
43 template <typename UserPoolIdT = Aws::String>
44 void SetUserPoolId(UserPoolIdT&& value) {
45 m_userPoolIdHasBeenSet = true;
46 m_userPoolId = std::forward<UserPoolIdT>(value);
47 }
48 template <typename UserPoolIdT = Aws::String>
49 ListUsersRequest& WithUserPoolId(UserPoolIdT&& value) {
50 SetUserPoolId(std::forward<UserPoolIdT>(value));
51 return *this;
52 }
54
56
68 inline const Aws::Vector<Aws::String>& GetAttributesToGet() const { return m_attributesToGet; }
69 inline bool AttributesToGetHasBeenSet() const { return m_attributesToGetHasBeenSet; }
70 template <typename AttributesToGetT = Aws::Vector<Aws::String>>
71 void SetAttributesToGet(AttributesToGetT&& value) {
72 m_attributesToGetHasBeenSet = true;
73 m_attributesToGet = std::forward<AttributesToGetT>(value);
74 }
75 template <typename AttributesToGetT = Aws::Vector<Aws::String>>
76 ListUsersRequest& WithAttributesToGet(AttributesToGetT&& value) {
77 SetAttributesToGet(std::forward<AttributesToGetT>(value));
78 return *this;
79 }
80 template <typename AttributesToGetT = Aws::String>
81 ListUsersRequest& AddAttributesToGet(AttributesToGetT&& value) {
82 m_attributesToGetHasBeenSet = true;
83 m_attributesToGet.emplace_back(std::forward<AttributesToGetT>(value));
84 return *this;
85 }
87
89
93 inline int GetLimit() const { return m_limit; }
94 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
95 inline void SetLimit(int value) {
96 m_limitHasBeenSet = true;
97 m_limit = value;
98 }
99 inline ListUsersRequest& WithLimit(int value) {
100 SetLimit(value);
101 return *this;
102 }
104
106
114 inline const Aws::String& GetPaginationToken() const { return m_paginationToken; }
115 inline bool PaginationTokenHasBeenSet() const { return m_paginationTokenHasBeenSet; }
116 template <typename PaginationTokenT = Aws::String>
117 void SetPaginationToken(PaginationTokenT&& value) {
118 m_paginationTokenHasBeenSet = true;
119 m_paginationToken = std::forward<PaginationTokenT>(value);
120 }
121 template <typename PaginationTokenT = Aws::String>
122 ListUsersRequest& WithPaginationToken(PaginationTokenT&& value) {
123 SetPaginationToken(std::forward<PaginationTokenT>(value));
124 return *this;
125 }
127
129
168 inline const Aws::String& GetFilter() const { return m_filter; }
169 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
170 template <typename FilterT = Aws::String>
171 void SetFilter(FilterT&& value) {
172 m_filterHasBeenSet = true;
173 m_filter = std::forward<FilterT>(value);
174 }
175 template <typename FilterT = Aws::String>
176 ListUsersRequest& WithFilter(FilterT&& value) {
177 SetFilter(std::forward<FilterT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_userPoolId;
183
184 Aws::Vector<Aws::String> m_attributesToGet;
185
186 int m_limit{0};
187
188 Aws::String m_paginationToken;
189
190 Aws::String m_filter;
191 bool m_userPoolIdHasBeenSet = false;
192 bool m_attributesToGetHasBeenSet = false;
193 bool m_limitHasBeenSet = false;
194 bool m_paginationTokenHasBeenSet = false;
195 bool m_filterHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace CognitoIdentityProvider
200} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API ListUsersRequest()=default
ListUsersRequest & WithAttributesToGet(AttributesToGetT &&value)
virtual const char * GetServiceRequestName() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListUsersRequest & AddAttributesToGet(AttributesToGetT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
ListUsersRequest & WithUserPoolId(UserPoolIdT &&value)
const Aws::Vector< Aws::String > & GetAttributesToGet() const
ListUsersRequest & WithPaginationToken(PaginationTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector