AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
AdminInitiateAuthResult.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/model/AuthenticationResultType.h>
9#include <aws/cognito-idp/model/ChallengeNameType.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CognitoIdentityProvider {
27namespace Model {
35 public:
36 AWS_COGNITOIDENTITYPROVIDER_API AdminInitiateAuthResult() = default;
38 AWS_COGNITOIDENTITYPROVIDER_API AdminInitiateAuthResult& operator=(
40
42
113 inline ChallengeNameType GetChallengeName() const { return m_challengeName; }
115 m_challengeNameHasBeenSet = true;
116 m_challengeName = value;
117 }
119 SetChallengeName(value);
120 return *this;
121 }
123
125
132 inline const Aws::String& GetSession() const { return m_session; }
133 template <typename SessionT = Aws::String>
134 void SetSession(SessionT&& value) {
135 m_sessionHasBeenSet = true;
136 m_session = std::forward<SessionT>(value);
137 }
138 template <typename SessionT = Aws::String>
140 SetSession(std::forward<SessionT>(value));
141 return *this;
142 }
144
146
160 inline const Aws::Map<Aws::String, Aws::String>& GetChallengeParameters() const { return m_challengeParameters; }
161 template <typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
162 void SetChallengeParameters(ChallengeParametersT&& value) {
163 m_challengeParametersHasBeenSet = true;
164 m_challengeParameters = std::forward<ChallengeParametersT>(value);
165 }
166 template <typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
167 AdminInitiateAuthResult& WithChallengeParameters(ChallengeParametersT&& value) {
168 SetChallengeParameters(std::forward<ChallengeParametersT>(value));
169 return *this;
170 }
171 template <typename ChallengeParametersKeyT = Aws::String, typename ChallengeParametersValueT = Aws::String>
172 AdminInitiateAuthResult& AddChallengeParameters(ChallengeParametersKeyT&& key, ChallengeParametersValueT&& value) {
173 m_challengeParametersHasBeenSet = true;
174 m_challengeParameters.emplace(std::forward<ChallengeParametersKeyT>(key), std::forward<ChallengeParametersValueT>(value));
175 return *this;
176 }
178
180
187 inline const AuthenticationResultType& GetAuthenticationResult() const { return m_authenticationResult; }
188 template <typename AuthenticationResultT = AuthenticationResultType>
189 void SetAuthenticationResult(AuthenticationResultT&& value) {
190 m_authenticationResultHasBeenSet = true;
191 m_authenticationResult = std::forward<AuthenticationResultT>(value);
192 }
193 template <typename AuthenticationResultT = AuthenticationResultType>
194 AdminInitiateAuthResult& WithAuthenticationResult(AuthenticationResultT&& value) {
195 SetAuthenticationResult(std::forward<AuthenticationResultT>(value));
196 return *this;
197 }
199
201
209 inline const Aws::Vector<ChallengeNameType>& GetAvailableChallenges() const { return m_availableChallenges; }
210 template <typename AvailableChallengesT = Aws::Vector<ChallengeNameType>>
211 void SetAvailableChallenges(AvailableChallengesT&& value) {
212 m_availableChallengesHasBeenSet = true;
213 m_availableChallenges = std::forward<AvailableChallengesT>(value);
214 }
215 template <typename AvailableChallengesT = Aws::Vector<ChallengeNameType>>
216 AdminInitiateAuthResult& WithAvailableChallenges(AvailableChallengesT&& value) {
217 SetAvailableChallenges(std::forward<AvailableChallengesT>(value));
218 return *this;
219 }
221 m_availableChallengesHasBeenSet = true;
222 m_availableChallenges.push_back(value);
223 return *this;
224 }
226
228
229 inline const Aws::String& GetRequestId() const { return m_requestId; }
230 template <typename RequestIdT = Aws::String>
231 void SetRequestId(RequestIdT&& value) {
232 m_requestIdHasBeenSet = true;
233 m_requestId = std::forward<RequestIdT>(value);
234 }
235 template <typename RequestIdT = Aws::String>
237 SetRequestId(std::forward<RequestIdT>(value));
238 return *this;
239 }
241 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
242
243 private:
245
246 Aws::String m_session;
247
248 Aws::Map<Aws::String, Aws::String> m_challengeParameters;
249
250 AuthenticationResultType m_authenticationResult;
251
252 Aws::Vector<ChallengeNameType> m_availableChallenges;
253
254 Aws::String m_requestId;
255 Aws::Http::HttpResponseCode m_HttpResponseCode;
256 bool m_challengeNameHasBeenSet = false;
257 bool m_sessionHasBeenSet = false;
258 bool m_challengeParametersHasBeenSet = false;
259 bool m_authenticationResultHasBeenSet = false;
260 bool m_availableChallengesHasBeenSet = false;
261 bool m_requestIdHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace CognitoIdentityProvider
266} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetChallengeParameters() const
AdminInitiateAuthResult & WithAvailableChallenges(AvailableChallengesT &&value)
AdminInitiateAuthResult & WithRequestId(RequestIdT &&value)
AdminInitiateAuthResult & WithChallengeParameters(ChallengeParametersT &&value)
AWS_COGNITOIDENTITYPROVIDER_API AdminInitiateAuthResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AdminInitiateAuthResult & WithAuthenticationResult(AuthenticationResultT &&value)
AdminInitiateAuthResult & WithChallengeName(ChallengeNameType value)
AdminInitiateAuthResult & AddChallengeParameters(ChallengeParametersKeyT &&key, ChallengeParametersValueT &&value)
AdminInitiateAuthResult & AddAvailableChallenges(ChallengeNameType value)
const Aws::Vector< ChallengeNameType > & GetAvailableChallenges() const
AWS_COGNITOIDENTITYPROVIDER_API AdminInitiateAuthResult()=default
AWS_COGNITOIDENTITYPROVIDER_API AdminInitiateAuthResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue