7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/model/ChallengeNameType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/cognito-idp/model/AuthenticationResultType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
17template<
typename RESULT_TYPE>
18class AmazonWebServiceResult;
27namespace CognitoIdentityProvider
124 template<
typename SessionT = Aws::String>
125 void SetSession(SessionT&& value) { m_sessionHasBeenSet =
true; m_session = std::forward<SessionT>(value); }
126 template<
typename SessionT = Aws::String>
137 template<
typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
138 void SetChallengeParameters(ChallengeParametersT&& value) { m_challengeParametersHasBeenSet =
true; m_challengeParameters = std::forward<ChallengeParametersT>(value); }
139 template<
typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
141 template<
typename ChallengeParametersKeyT = Aws::String,
typename ChallengeParametersValueT = Aws::String>
143 m_challengeParametersHasBeenSet =
true; m_challengeParameters.emplace(std::forward<ChallengeParametersKeyT>(key), std::forward<ChallengeParametersValueT>(value));
return *
this;
156 template<
typename AuthenticationResultT = AuthenticationResultType>
157 void SetAuthenticationResult(AuthenticationResultT&& value) { m_authenticationResultHasBeenSet =
true; m_authenticationResult = std::forward<AuthenticationResultT>(value); }
158 template<
typename AuthenticationResultT = AuthenticationResultType>
172 template<
typename AvailableChallengesT = Aws::Vector<ChallengeNameType>>
173 void SetAvailableChallenges(AvailableChallengesT&& value) { m_availableChallengesHasBeenSet =
true; m_availableChallenges = std::forward<AvailableChallengesT>(value); }
174 template<
typename AvailableChallengesT = Aws::Vector<ChallengeNameType>>
182 template<
typename RequestIdT = Aws::String>
183 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
184 template<
typename RequestIdT = Aws::String>
190 bool m_challengeNameHasBeenSet =
false;
193 bool m_sessionHasBeenSet =
false;
196 bool m_challengeParametersHasBeenSet =
false;
198 AuthenticationResultType m_authenticationResult;
199 bool m_authenticationResultHasBeenSet =
false;
202 bool m_availableChallengesHasBeenSet =
false;
205 bool m_requestIdHasBeenSet =
false;
InitiateAuthResult & WithSession(SessionT &&value)
void SetAuthenticationResult(AuthenticationResultT &&value)
InitiateAuthResult & WithChallengeName(ChallengeNameType value)
const Aws::String & GetSession() const
InitiateAuthResult & AddAvailableChallenges(ChallengeNameType value)
const Aws::String & GetRequestId() const
void SetAvailableChallenges(AvailableChallengesT &&value)
void SetChallengeName(ChallengeNameType value)
AWS_COGNITOIDENTITYPROVIDER_API InitiateAuthResult()=default
void SetSession(SessionT &&value)
InitiateAuthResult & WithAvailableChallenges(AvailableChallengesT &&value)
const Aws::Vector< ChallengeNameType > & GetAvailableChallenges() const
InitiateAuthResult & WithAuthenticationResult(AuthenticationResultT &&value)
void SetChallengeParameters(ChallengeParametersT &&value)
AWS_COGNITOIDENTITYPROVIDER_API InitiateAuthResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(RequestIdT &&value)
InitiateAuthResult & AddChallengeParameters(ChallengeParametersKeyT &&key, ChallengeParametersValueT &&value)
const AuthenticationResultType & GetAuthenticationResult() const
InitiateAuthResult & WithRequestId(RequestIdT &&value)
InitiateAuthResult & WithChallengeParameters(ChallengeParametersT &&value)
ChallengeNameType GetChallengeName() const
const Aws::Map< Aws::String, Aws::String > & GetChallengeParameters() const
AWS_COGNITOIDENTITYPROVIDER_API InitiateAuthResult(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