AWS SDK for C++

AWS SDK for C++ Version 1.11.789

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
96 inline int GetLimit() const { return m_limit; }
97 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
98 inline void SetLimit(int value) {
99 m_limitHasBeenSet = true;
100 m_limit = value;
101 }
102 inline ListUsersRequest& WithLimit(int value) {
103 SetLimit(value);
104 return *this;
105 }
107
109
117 inline const Aws::String& GetPaginationToken() const { return m_paginationToken; }
118 inline bool PaginationTokenHasBeenSet() const { return m_paginationTokenHasBeenSet; }
119 template <typename PaginationTokenT = Aws::String>
120 void SetPaginationToken(PaginationTokenT&& value) {
121 m_paginationTokenHasBeenSet = true;
122 m_paginationToken = std::forward<PaginationTokenT>(value);
123 }
124 template <typename PaginationTokenT = Aws::String>
125 ListUsersRequest& WithPaginationToken(PaginationTokenT&& value) {
126 SetPaginationToken(std::forward<PaginationTokenT>(value));
127 return *this;
128 }
130
132
171 inline const Aws::String& GetFilter() const { return m_filter; }
172 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
173 template <typename FilterT = Aws::String>
174 void SetFilter(FilterT&& value) {
175 m_filterHasBeenSet = true;
176 m_filter = std::forward<FilterT>(value);
177 }
178 template <typename FilterT = Aws::String>
179 ListUsersRequest& WithFilter(FilterT&& value) {
180 SetFilter(std::forward<FilterT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_userPoolId;
186
187 Aws::Vector<Aws::String> m_attributesToGet;
188
189 int m_limit{0};
190
191 Aws::String m_paginationToken;
192
193 Aws::String m_filter;
194 bool m_userPoolIdHasBeenSet = false;
195 bool m_attributesToGetHasBeenSet = false;
196 bool m_limitHasBeenSet = false;
197 bool m_paginationTokenHasBeenSet = false;
198 bool m_filterHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace CognitoIdentityProvider
203} // 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