AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
ListIdentitiesResult.h
1
6#pragma once
7#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
8#include <aws/cognito-identity/model/IdentityDescription.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 CognitoIdentity {
25namespace Model {
32 public:
33 AWS_COGNITOIDENTITY_API ListIdentitiesResult() = default;
36
38
41 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
42 template <typename IdentityPoolIdT = Aws::String>
43 void SetIdentityPoolId(IdentityPoolIdT&& value) {
44 m_identityPoolIdHasBeenSet = true;
45 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
46 }
47 template <typename IdentityPoolIdT = Aws::String>
48 ListIdentitiesResult& WithIdentityPoolId(IdentityPoolIdT&& value) {
49 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<IdentityDescription>& GetIdentities() const { return m_identities; }
59 template <typename IdentitiesT = Aws::Vector<IdentityDescription>>
60 void SetIdentities(IdentitiesT&& value) {
61 m_identitiesHasBeenSet = true;
62 m_identities = std::forward<IdentitiesT>(value);
63 }
64 template <typename IdentitiesT = Aws::Vector<IdentityDescription>>
65 ListIdentitiesResult& WithIdentities(IdentitiesT&& value) {
66 SetIdentities(std::forward<IdentitiesT>(value));
67 return *this;
68 }
69 template <typename IdentitiesT = IdentityDescription>
70 ListIdentitiesResult& AddIdentities(IdentitiesT&& value) {
71 m_identitiesHasBeenSet = true;
72 m_identities.emplace_back(std::forward<IdentitiesT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 template <typename NextTokenT = Aws::String>
83 void SetNextToken(NextTokenT&& value) {
84 m_nextTokenHasBeenSet = true;
85 m_nextToken = std::forward<NextTokenT>(value);
86 }
87 template <typename NextTokenT = Aws::String>
88 ListIdentitiesResult& WithNextToken(NextTokenT&& value) {
89 SetNextToken(std::forward<NextTokenT>(value));
90 return *this;
91 }
93
95
96 inline const Aws::String& GetRequestId() const { return m_requestId; }
97 template <typename RequestIdT = Aws::String>
98 void SetRequestId(RequestIdT&& value) {
99 m_requestIdHasBeenSet = true;
100 m_requestId = std::forward<RequestIdT>(value);
101 }
102 template <typename RequestIdT = Aws::String>
103 ListIdentitiesResult& WithRequestId(RequestIdT&& value) {
104 SetRequestId(std::forward<RequestIdT>(value));
105 return *this;
106 }
108 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
109
110 private:
111 Aws::String m_identityPoolId;
112
114
115 Aws::String m_nextToken;
116
117 Aws::String m_requestId;
118 Aws::Http::HttpResponseCode m_HttpResponseCode;
119 bool m_identityPoolIdHasBeenSet = false;
120 bool m_identitiesHasBeenSet = false;
121 bool m_nextTokenHasBeenSet = false;
122 bool m_requestIdHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace CognitoIdentity
127} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListIdentitiesResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< IdentityDescription > & GetIdentities() const
ListIdentitiesResult & WithIdentityPoolId(IdentityPoolIdT &&value)
ListIdentitiesResult & WithIdentities(IdentitiesT &&value)
ListIdentitiesResult & AddIdentities(IdentitiesT &&value)
ListIdentitiesResult & WithNextToken(NextTokenT &&value)
AWS_COGNITOIDENTITY_API ListIdentitiesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COGNITOIDENTITY_API ListIdentitiesResult()=default
AWS_COGNITOIDENTITY_API ListIdentitiesResult & operator=(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