AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RespondToAuthChallengeResult.h
1
6#pragma once
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 <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CognitoIdentityProvider
27{
28namespace Model
29{
37 {
38 public:
39 AWS_COGNITOIDENTITYPROVIDER_API RespondToAuthChallengeResult() = default;
42
43
45
112 inline ChallengeNameType GetChallengeName() const { return m_challengeName; }
113 inline void SetChallengeName(ChallengeNameType value) { m_challengeNameHasBeenSet = true; m_challengeName = value; }
116
118
126 inline const Aws::String& GetSession() const { return m_session; }
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>
130 RespondToAuthChallengeResult& WithSession(SessionT&& value) { SetSession(std::forward<SessionT>(value)); return *this;}
132
134
137 inline const Aws::Map<Aws::String, Aws::String>& GetChallengeParameters() const { return m_challengeParameters; }
138 template<typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
139 void SetChallengeParameters(ChallengeParametersT&& value) { m_challengeParametersHasBeenSet = true; m_challengeParameters = std::forward<ChallengeParametersT>(value); }
140 template<typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
141 RespondToAuthChallengeResult& WithChallengeParameters(ChallengeParametersT&& value) { SetChallengeParameters(std::forward<ChallengeParametersT>(value)); return *this;}
142 template<typename ChallengeParametersKeyT = Aws::String, typename ChallengeParametersValueT = Aws::String>
143 RespondToAuthChallengeResult& AddChallengeParameters(ChallengeParametersKeyT&& key, ChallengeParametersValueT&& value) {
144 m_challengeParametersHasBeenSet = true; m_challengeParameters.emplace(std::forward<ChallengeParametersKeyT>(key), std::forward<ChallengeParametersValueT>(value)); return *this;
145 }
147
149
155 inline const AuthenticationResultType& GetAuthenticationResult() const { return m_authenticationResult; }
156 template<typename AuthenticationResultT = AuthenticationResultType>
157 void SetAuthenticationResult(AuthenticationResultT&& value) { m_authenticationResultHasBeenSet = true; m_authenticationResult = std::forward<AuthenticationResultT>(value); }
158 template<typename AuthenticationResultT = AuthenticationResultType>
159 RespondToAuthChallengeResult& WithAuthenticationResult(AuthenticationResultT&& value) { SetAuthenticationResult(std::forward<AuthenticationResultT>(value)); return *this;}
161
163
164 inline const Aws::String& GetRequestId() const { return m_requestId; }
165 template<typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
167 template<typename RequestIdT = Aws::String>
168 RespondToAuthChallengeResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
170 private:
171
173 bool m_challengeNameHasBeenSet = false;
174
175 Aws::String m_session;
176 bool m_sessionHasBeenSet = false;
177
178 Aws::Map<Aws::String, Aws::String> m_challengeParameters;
179 bool m_challengeParametersHasBeenSet = false;
180
181 AuthenticationResultType m_authenticationResult;
182 bool m_authenticationResultHasBeenSet = false;
183
184 Aws::String m_requestId;
185 bool m_requestIdHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace CognitoIdentityProvider
190} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API RespondToAuthChallengeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RespondToAuthChallengeResult & AddChallengeParameters(ChallengeParametersKeyT &&key, ChallengeParametersValueT &&value)
AWS_COGNITOIDENTITYPROVIDER_API RespondToAuthChallengeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RespondToAuthChallengeResult & WithAuthenticationResult(AuthenticationResultT &&value)
const Aws::Map< Aws::String, Aws::String > & GetChallengeParameters() const
AWS_COGNITOIDENTITYPROVIDER_API RespondToAuthChallengeResult()=default
RespondToAuthChallengeResult & WithChallengeName(ChallengeNameType value)
RespondToAuthChallengeResult & WithChallengeParameters(ChallengeParametersT &&value)
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
Aws::Utils::Json::JsonValue JsonValue