AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
46 inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
47 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
48 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
49 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
50 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
51 inline ListUsersRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
52 inline ListUsersRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
53 inline ListUsersRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
55
57
69 inline const Aws::Vector<Aws::String>& GetAttributesToGet() const{ return m_attributesToGet; }
70 inline bool AttributesToGetHasBeenSet() const { return m_attributesToGetHasBeenSet; }
71 inline void SetAttributesToGet(const Aws::Vector<Aws::String>& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet = value; }
72 inline void SetAttributesToGet(Aws::Vector<Aws::String>&& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet = std::move(value); }
74 inline ListUsersRequest& WithAttributesToGet(Aws::Vector<Aws::String>&& value) { SetAttributesToGet(std::move(value)); return *this;}
75 inline ListUsersRequest& AddAttributesToGet(const Aws::String& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet.push_back(value); return *this; }
76 inline ListUsersRequest& AddAttributesToGet(Aws::String&& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet.push_back(std::move(value)); return *this; }
77 inline ListUsersRequest& AddAttributesToGet(const char* value) { m_attributesToGetHasBeenSet = true; m_attributesToGet.push_back(value); return *this; }
79
81
84 inline int GetLimit() const{ return m_limit; }
85 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
86 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
87 inline ListUsersRequest& WithLimit(int value) { SetLimit(value); return *this;}
89
91
99 inline const Aws::String& GetPaginationToken() const{ return m_paginationToken; }
100 inline bool PaginationTokenHasBeenSet() const { return m_paginationTokenHasBeenSet; }
101 inline void SetPaginationToken(const Aws::String& value) { m_paginationTokenHasBeenSet = true; m_paginationToken = value; }
102 inline void SetPaginationToken(Aws::String&& value) { m_paginationTokenHasBeenSet = true; m_paginationToken = std::move(value); }
103 inline void SetPaginationToken(const char* value) { m_paginationTokenHasBeenSet = true; m_paginationToken.assign(value); }
104 inline ListUsersRequest& WithPaginationToken(const Aws::String& value) { SetPaginationToken(value); return *this;}
105 inline ListUsersRequest& WithPaginationToken(Aws::String&& value) { SetPaginationToken(std::move(value)); return *this;}
106 inline ListUsersRequest& WithPaginationToken(const char* value) { SetPaginationToken(value); return *this;}
108
110
149 inline const Aws::String& GetFilter() const{ return m_filter; }
150 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
151 inline void SetFilter(const Aws::String& value) { m_filterHasBeenSet = true; m_filter = value; }
152 inline void SetFilter(Aws::String&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
153 inline void SetFilter(const char* value) { m_filterHasBeenSet = true; m_filter.assign(value); }
154 inline ListUsersRequest& WithFilter(const Aws::String& value) { SetFilter(value); return *this;}
155 inline ListUsersRequest& WithFilter(Aws::String&& value) { SetFilter(std::move(value)); return *this;}
156 inline ListUsersRequest& WithFilter(const char* value) { SetFilter(value); return *this;}
158 private:
159
160 Aws::String m_userPoolId;
161 bool m_userPoolIdHasBeenSet = false;
162
163 Aws::Vector<Aws::String> m_attributesToGet;
164 bool m_attributesToGetHasBeenSet = false;
165
166 int m_limit;
167 bool m_limitHasBeenSet = false;
168
169 Aws::String m_paginationToken;
170 bool m_paginationTokenHasBeenSet = false;
171
172 Aws::String m_filter;
173 bool m_filterHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace CognitoIdentityProvider
178} // namespace Aws
ListUsersRequest & WithAttributesToGet(Aws::Vector< Aws::String > &&value)
ListUsersRequest & WithFilter(const char *value)
ListUsersRequest & WithPaginationToken(const Aws::String &value)
ListUsersRequest & WithFilter(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetAttributesToGet(const Aws::Vector< Aws::String > &value)
ListUsersRequest & WithAttributesToGet(const Aws::Vector< Aws::String > &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListUsersRequest & WithPaginationToken(Aws::String &&value)
ListUsersRequest & WithFilter(Aws::String &&value)
ListUsersRequest & AddAttributesToGet(const Aws::String &value)
ListUsersRequest & WithUserPoolId(const char *value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
ListUsersRequest & WithUserPoolId(Aws::String &&value)
ListUsersRequest & AddAttributesToGet(Aws::String &&value)
ListUsersRequest & AddAttributesToGet(const char *value)
AWS_COGNITOIDENTITYPROVIDER_API ListUsersRequest()
const Aws::Vector< Aws::String > & GetAttributesToGet() const
void SetAttributesToGet(Aws::Vector< Aws::String > &&value)
ListUsersRequest & WithUserPoolId(const Aws::String &value)
ListUsersRequest & WithPaginationToken(const char *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