AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
ListUsersResult.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/model/UserType.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CognitoIdentityProvider {
25namespace Model {
32 public:
33 AWS_COGNITOIDENTITYPROVIDER_API ListUsersResult() = default;
34 AWS_COGNITOIDENTITYPROVIDER_API ListUsersResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
36
38
45 inline const Aws::Vector<UserType>& GetUsers() const { return m_users; }
46 template <typename UsersT = Aws::Vector<UserType>>
47 void SetUsers(UsersT&& value) {
48 m_usersHasBeenSet = true;
49 m_users = std::forward<UsersT>(value);
50 }
51 template <typename UsersT = Aws::Vector<UserType>>
52 ListUsersResult& WithUsers(UsersT&& value) {
53 SetUsers(std::forward<UsersT>(value));
54 return *this;
55 }
56 template <typename UsersT = UserType>
57 ListUsersResult& AddUsers(UsersT&& value) {
58 m_usersHasBeenSet = true;
59 m_users.emplace_back(std::forward<UsersT>(value));
60 return *this;
61 }
63
65
71 inline const Aws::String& GetPaginationToken() const { return m_paginationToken; }
72 template <typename PaginationTokenT = Aws::String>
73 void SetPaginationToken(PaginationTokenT&& value) {
74 m_paginationTokenHasBeenSet = true;
75 m_paginationToken = std::forward<PaginationTokenT>(value);
76 }
77 template <typename PaginationTokenT = Aws::String>
78 ListUsersResult& WithPaginationToken(PaginationTokenT&& value) {
79 SetPaginationToken(std::forward<PaginationTokenT>(value));
80 return *this;
81 }
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template <typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) {
89 m_requestIdHasBeenSet = true;
90 m_requestId = std::forward<RequestIdT>(value);
91 }
92 template <typename RequestIdT = Aws::String>
93 ListUsersResult& WithRequestId(RequestIdT&& value) {
94 SetRequestId(std::forward<RequestIdT>(value));
95 return *this;
96 }
98 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
99
100 private:
101 Aws::Vector<UserType> m_users;
102
103 Aws::String m_paginationToken;
104
105 Aws::String m_requestId;
106 Aws::Http::HttpResponseCode m_HttpResponseCode;
107 bool m_usersHasBeenSet = false;
108 bool m_paginationTokenHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace CognitoIdentityProvider
114} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API ListUsersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListUsersResult & WithPaginationToken(PaginationTokenT &&value)
const Aws::Vector< UserType > & GetUsers() const
AWS_COGNITOIDENTITYPROVIDER_API ListUsersResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListUsersResult & WithRequestId(RequestIdT &&value)
AWS_COGNITOIDENTITYPROVIDER_API ListUsersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue