AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListUserPoolsResult.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cognito-idp/model/UserPoolDescriptionType.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CognitoIdentityProvider
26{
27namespace Model
28{
35 {
36 public:
37 AWS_COGNITOIDENTITYPROVIDER_API ListUserPoolsResult() = default;
40
41
43
46 inline const Aws::Vector<UserPoolDescriptionType>& GetUserPools() const { return m_userPools; }
47 template<typename UserPoolsT = Aws::Vector<UserPoolDescriptionType>>
48 void SetUserPools(UserPoolsT&& value) { m_userPoolsHasBeenSet = true; m_userPools = std::forward<UserPoolsT>(value); }
49 template<typename UserPoolsT = Aws::Vector<UserPoolDescriptionType>>
50 ListUserPoolsResult& WithUserPools(UserPoolsT&& value) { SetUserPools(std::forward<UserPoolsT>(value)); return *this;}
51 template<typename UserPoolsT = UserPoolDescriptionType>
52 ListUserPoolsResult& AddUserPools(UserPoolsT&& value) { m_userPoolsHasBeenSet = true; m_userPools.emplace_back(std::forward<UserPoolsT>(value)); return *this; }
54
56
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 template<typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
65 template<typename NextTokenT = Aws::String>
66 ListUserPoolsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
68
70
71 inline const Aws::String& GetRequestId() const { return m_requestId; }
72 template<typename RequestIdT = Aws::String>
73 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
74 template<typename RequestIdT = Aws::String>
75 ListUserPoolsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
77 private:
78
80 bool m_userPoolsHasBeenSet = false;
81
82 Aws::String m_nextToken;
83 bool m_nextTokenHasBeenSet = false;
84
85 Aws::String m_requestId;
86 bool m_requestIdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CognitoIdentityProvider
91} // namespace Aws
ListUserPoolsResult & WithUserPools(UserPoolsT &&value)
AWS_COGNITOIDENTITYPROVIDER_API ListUserPoolsResult()=default
ListUserPoolsResult & WithNextToken(NextTokenT &&value)
AWS_COGNITOIDENTITYPROVIDER_API ListUserPoolsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COGNITOIDENTITYPROVIDER_API ListUserPoolsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< UserPoolDescriptionType > & GetUserPools() const
ListUserPoolsResult & WithRequestId(RequestIdT &&value)
ListUserPoolsResult & AddUserPools(UserPoolsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue