/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CognitoIdentityProvider { namespace Model { /** *

The response to respond to the authentication challenge.

See * Also:

AWS * API Reference

*/ class RespondToAuthChallengeResult { public: AWS_COGNITOIDENTITYPROVIDER_API RespondToAuthChallengeResult(); AWS_COGNITOIDENTITYPROVIDER_API RespondToAuthChallengeResult(const Aws::AmazonWebServiceResult& result); AWS_COGNITOIDENTITYPROVIDER_API RespondToAuthChallengeResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The challenge name. For more information, see InitiateAuth.

*/ inline const ChallengeNameType& GetChallengeName() const{ return m_challengeName; } /** *

The challenge name. For more information, see InitiateAuth.

*/ inline void SetChallengeName(const ChallengeNameType& value) { m_challengeName = value; } /** *

The challenge name. For more information, see InitiateAuth.

*/ inline void SetChallengeName(ChallengeNameType&& value) { m_challengeName = std::move(value); } /** *

The challenge name. For more information, see InitiateAuth.

*/ inline RespondToAuthChallengeResult& WithChallengeName(const ChallengeNameType& value) { SetChallengeName(value); return *this;} /** *

The challenge name. For more information, see InitiateAuth.

*/ inline RespondToAuthChallengeResult& WithChallengeName(ChallengeNameType&& value) { SetChallengeName(std::move(value)); return *this;} /** *

The session that should be passed both ways in challenge-response calls to * the service. If the caller must pass another challenge, they return a session * with other challenge parameters. This session should be passed as it is to the * next RespondToAuthChallenge API call.

*/ inline const Aws::String& GetSession() const{ return m_session; } /** *

The session that should be passed both ways in challenge-response calls to * the service. If the caller must pass another challenge, they return a session * with other challenge parameters. This session should be passed as it is to the * next RespondToAuthChallenge API call.

*/ inline void SetSession(const Aws::String& value) { m_session = value; } /** *

The session that should be passed both ways in challenge-response calls to * the service. If the caller must pass another challenge, they return a session * with other challenge parameters. This session should be passed as it is to the * next RespondToAuthChallenge API call.

*/ inline void SetSession(Aws::String&& value) { m_session = std::move(value); } /** *

The session that should be passed both ways in challenge-response calls to * the service. If the caller must pass another challenge, they return a session * with other challenge parameters. This session should be passed as it is to the * next RespondToAuthChallenge API call.

*/ inline void SetSession(const char* value) { m_session.assign(value); } /** *

The session that should be passed both ways in challenge-response calls to * the service. If the caller must pass another challenge, they return a session * with other challenge parameters. This session should be passed as it is to the * next RespondToAuthChallenge API call.

*/ inline RespondToAuthChallengeResult& WithSession(const Aws::String& value) { SetSession(value); return *this;} /** *

The session that should be passed both ways in challenge-response calls to * the service. If the caller must pass another challenge, they return a session * with other challenge parameters. This session should be passed as it is to the * next RespondToAuthChallenge API call.

*/ inline RespondToAuthChallengeResult& WithSession(Aws::String&& value) { SetSession(std::move(value)); return *this;} /** *

The session that should be passed both ways in challenge-response calls to * the service. If the caller must pass another challenge, they return a session * with other challenge parameters. This session should be passed as it is to the * next RespondToAuthChallenge API call.

*/ inline RespondToAuthChallengeResult& WithSession(const char* value) { SetSession(value); return *this;} /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline const Aws::Map& GetChallengeParameters() const{ return m_challengeParameters; } /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline void SetChallengeParameters(const Aws::Map& value) { m_challengeParameters = value; } /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline void SetChallengeParameters(Aws::Map&& value) { m_challengeParameters = std::move(value); } /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline RespondToAuthChallengeResult& WithChallengeParameters(const Aws::Map& value) { SetChallengeParameters(value); return *this;} /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline RespondToAuthChallengeResult& WithChallengeParameters(Aws::Map&& value) { SetChallengeParameters(std::move(value)); return *this;} /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline RespondToAuthChallengeResult& AddChallengeParameters(const Aws::String& key, const Aws::String& value) { m_challengeParameters.emplace(key, value); return *this; } /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline RespondToAuthChallengeResult& AddChallengeParameters(Aws::String&& key, const Aws::String& value) { m_challengeParameters.emplace(std::move(key), value); return *this; } /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline RespondToAuthChallengeResult& AddChallengeParameters(const Aws::String& key, Aws::String&& value) { m_challengeParameters.emplace(key, std::move(value)); return *this; } /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline RespondToAuthChallengeResult& AddChallengeParameters(Aws::String&& key, Aws::String&& value) { m_challengeParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline RespondToAuthChallengeResult& AddChallengeParameters(const char* key, Aws::String&& value) { m_challengeParameters.emplace(key, std::move(value)); return *this; } /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline RespondToAuthChallengeResult& AddChallengeParameters(Aws::String&& key, const char* value) { m_challengeParameters.emplace(std::move(key), value); return *this; } /** *

The challenge parameters. For more information, see InitiateAuth.

*/ inline RespondToAuthChallengeResult& AddChallengeParameters(const char* key, const char* value) { m_challengeParameters.emplace(key, value); return *this; } /** *

The result returned by the server in response to the request to respond to * the authentication challenge.

*/ inline const AuthenticationResultType& GetAuthenticationResult() const{ return m_authenticationResult; } /** *

The result returned by the server in response to the request to respond to * the authentication challenge.

*/ inline void SetAuthenticationResult(const AuthenticationResultType& value) { m_authenticationResult = value; } /** *

The result returned by the server in response to the request to respond to * the authentication challenge.

*/ inline void SetAuthenticationResult(AuthenticationResultType&& value) { m_authenticationResult = std::move(value); } /** *

The result returned by the server in response to the request to respond to * the authentication challenge.

*/ inline RespondToAuthChallengeResult& WithAuthenticationResult(const AuthenticationResultType& value) { SetAuthenticationResult(value); return *this;} /** *

The result returned by the server in response to the request to respond to * the authentication challenge.

*/ inline RespondToAuthChallengeResult& WithAuthenticationResult(AuthenticationResultType&& value) { SetAuthenticationResult(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline RespondToAuthChallengeResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RespondToAuthChallengeResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RespondToAuthChallengeResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ChallengeNameType m_challengeName; Aws::String m_session; Aws::Map m_challengeParameters; AuthenticationResultType m_authenticationResult; Aws::String m_requestId; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws