AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CognitoIdentity {
24namespace Model {
31 public:
32 AWS_COGNITOIDENTITY_API ListIdentitiesResult() = default;
35
37
40 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
41 template <typename IdentityPoolIdT = Aws::String>
42 void SetIdentityPoolId(IdentityPoolIdT&& value) {
43 m_identityPoolIdHasBeenSet = true;
44 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
45 }
46 template <typename IdentityPoolIdT = Aws::String>
47 ListIdentitiesResult& WithIdentityPoolId(IdentityPoolIdT&& value) {
48 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<IdentityDescription>& GetIdentities() const { return m_identities; }
58 template <typename IdentitiesT = Aws::Vector<IdentityDescription>>
59 void SetIdentities(IdentitiesT&& value) {
60 m_identitiesHasBeenSet = true;
61 m_identities = std::forward<IdentitiesT>(value);
62 }
63 template <typename IdentitiesT = Aws::Vector<IdentityDescription>>
64 ListIdentitiesResult& WithIdentities(IdentitiesT&& value) {
65 SetIdentities(std::forward<IdentitiesT>(value));
66 return *this;
67 }
68 template <typename IdentitiesT = IdentityDescription>
69 ListIdentitiesResult& AddIdentities(IdentitiesT&& value) {
70 m_identitiesHasBeenSet = true;
71 m_identities.emplace_back(std::forward<IdentitiesT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetNextToken() const { return m_nextToken; }
81 template <typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) {
83 m_nextTokenHasBeenSet = true;
84 m_nextToken = std::forward<NextTokenT>(value);
85 }
86 template <typename NextTokenT = Aws::String>
87 ListIdentitiesResult& WithNextToken(NextTokenT&& value) {
88 SetNextToken(std::forward<NextTokenT>(value));
89 return *this;
90 }
92
94
95 inline const Aws::String& GetRequestId() const { return m_requestId; }
96 template <typename RequestIdT = Aws::String>
97 void SetRequestId(RequestIdT&& value) {
98 m_requestIdHasBeenSet = true;
99 m_requestId = std::forward<RequestIdT>(value);
100 }
101 template <typename RequestIdT = Aws::String>
102 ListIdentitiesResult& WithRequestId(RequestIdT&& value) {
103 SetRequestId(std::forward<RequestIdT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_identityPoolId;
109
111
112 Aws::String m_nextToken;
113
114 Aws::String m_requestId;
115 bool m_identityPoolIdHasBeenSet = false;
116 bool m_identitiesHasBeenSet = false;
117 bool m_nextTokenHasBeenSet = false;
118 bool m_requestIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CognitoIdentity
123} // namespace Aws
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