AWS SDK for C++

AWS SDK for C++ Version 1.11.758

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
41 inline const Aws::Vector<UserType>& GetUsers() const { return m_users; }
42 template <typename UsersT = Aws::Vector<UserType>>
43 void SetUsers(UsersT&& value) {
44 m_usersHasBeenSet = true;
45 m_users = std::forward<UsersT>(value);
46 }
47 template <typename UsersT = Aws::Vector<UserType>>
48 ListUsersResult& WithUsers(UsersT&& value) {
49 SetUsers(std::forward<UsersT>(value));
50 return *this;
51 }
52 template <typename UsersT = UserType>
53 ListUsersResult& AddUsers(UsersT&& value) {
54 m_usersHasBeenSet = true;
55 m_users.emplace_back(std::forward<UsersT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::String& GetPaginationToken() const { return m_paginationToken; }
68 template <typename PaginationTokenT = Aws::String>
69 void SetPaginationToken(PaginationTokenT&& value) {
70 m_paginationTokenHasBeenSet = true;
71 m_paginationToken = std::forward<PaginationTokenT>(value);
72 }
73 template <typename PaginationTokenT = Aws::String>
74 ListUsersResult& WithPaginationToken(PaginationTokenT&& value) {
75 SetPaginationToken(std::forward<PaginationTokenT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 ListUsersResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
98
99 Aws::String m_paginationToken;
100
101 Aws::String m_requestId;
102 Aws::Http::HttpResponseCode m_HttpResponseCode;
103 bool m_usersHasBeenSet = false;
104 bool m_paginationTokenHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CognitoIdentityProvider
110} // 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