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
127 template<
typename SessionT = Aws::String>
128 void SetSession(SessionT&& value) { m_sessionHasBeenSet =
true; m_session = std::forward<SessionT>(value); }
129 template<
typename SessionT = Aws::String>
140 template<
typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
141 void SetChallengeParameters(ChallengeParametersT&& value) { m_challengeParametersHasBeenSet =
true; m_challengeParameters = std::forward<ChallengeParametersT>(value); }
142 template<
typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
144 template<
typename ChallengeParametersKeyT = Aws::String,
typename ChallengeParametersValueT = Aws::String>
146 m_challengeParametersHasBeenSet =
true; m_challengeParameters.emplace(std::forward<ChallengeParametersKeyT>(key), std::forward<ChallengeParametersValueT>(value));
return *
this;
159 template<
typename AuthenticationResultT = AuthenticationResultType>
160 void SetAuthenticationResult(AuthenticationResultT&& value) { m_authenticationResultHasBeenSet =
true; m_authenticationResult = std::forward<AuthenticationResultT>(value); }
161 template<
typename AuthenticationResultT = AuthenticationResultType>
175 template<
typename AvailableChallengesT = Aws::Vector<ChallengeNameType>>
176 void SetAvailableChallenges(AvailableChallengesT&& value) { m_availableChallengesHasBeenSet =
true; m_availableChallenges = std::forward<AvailableChallengesT>(value); }
177 template<
typename AvailableChallengesT = Aws::Vector<ChallengeNameType>>
185 template<
typename RequestIdT = Aws::String>
186 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
187 template<
typename RequestIdT = Aws::String>
193 bool m_challengeNameHasBeenSet =
false;
196 bool m_sessionHasBeenSet =
false;
199 bool m_challengeParametersHasBeenSet =
false;
201 AuthenticationResultType m_authenticationResult;
202 bool m_authenticationResultHasBeenSet =
false;
205 bool m_availableChallengesHasBeenSet =
false;
208 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