AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListUsersRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CognitoIdentityProvider
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_COGNITOIDENTITYPROVIDER_API ListUsersRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListUsers"; }
35
36 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
37
38 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
46 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
47 template<typename UserPoolIdT = Aws::String>
48 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
49 template<typename UserPoolIdT = Aws::String>
50 ListUsersRequest& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
52
54
66 inline const Aws::Vector<Aws::String>& GetAttributesToGet() const { return m_attributesToGet; }
67 inline bool AttributesToGetHasBeenSet() const { return m_attributesToGetHasBeenSet; }
68 template<typename AttributesToGetT = Aws::Vector<Aws::String>>
69 void SetAttributesToGet(AttributesToGetT&& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet = std::forward<AttributesToGetT>(value); }
70 template<typename AttributesToGetT = Aws::Vector<Aws::String>>
71 ListUsersRequest& WithAttributesToGet(AttributesToGetT&& value) { SetAttributesToGet(std::forward<AttributesToGetT>(value)); return *this;}
72 template<typename AttributesToGetT = Aws::String>
73 ListUsersRequest& AddAttributesToGet(AttributesToGetT&& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet.emplace_back(std::forward<AttributesToGetT>(value)); return *this; }
75
77
81 inline int GetLimit() const { return m_limit; }
82 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
83 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
84 inline ListUsersRequest& WithLimit(int value) { SetLimit(value); return *this;}
86
88
96 inline const Aws::String& GetPaginationToken() const { return m_paginationToken; }
97 inline bool PaginationTokenHasBeenSet() const { return m_paginationTokenHasBeenSet; }
98 template<typename PaginationTokenT = Aws::String>
99 void SetPaginationToken(PaginationTokenT&& value) { m_paginationTokenHasBeenSet = true; m_paginationToken = std::forward<PaginationTokenT>(value); }
100 template<typename PaginationTokenT = Aws::String>
101 ListUsersRequest& WithPaginationToken(PaginationTokenT&& value) { SetPaginationToken(std::forward<PaginationTokenT>(value)); return *this;}
103
105
144 inline const Aws::String& GetFilter() const { return m_filter; }
145 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
146 template<typename FilterT = Aws::String>
147 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
148 template<typename FilterT = Aws::String>
149 ListUsersRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
151 private:
152
153 Aws::String m_userPoolId;
154 bool m_userPoolIdHasBeenSet = false;
155
156 Aws::Vector<Aws::String> m_attributesToGet;
157 bool m_attributesToGetHasBeenSet = false;
158
159 int m_limit{0};
160 bool m_limitHasBeenSet = false;
161
162 Aws::String m_paginationToken;
163 bool m_paginationTokenHasBeenSet = false;
164
165 Aws::String m_filter;
166 bool m_filterHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace CognitoIdentityProvider
171} // 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