AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
RespondToAuthChallengeResult.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
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CognitoIdentityProvider {
26namespace Model {
34 public:
35 AWS_COGNITOIDENTITYPROVIDER_API RespondToAuthChallengeResult() = default;
37 AWS_COGNITOIDENTITYPROVIDER_API RespondToAuthChallengeResult& operator=(
39
41
111 inline ChallengeNameType GetChallengeName() const { return m_challengeName; }
113 m_challengeNameHasBeenSet = true;
114 m_challengeName = value;
115 }
117 SetChallengeName(value);
118 return *this;
119 }
121
123
131 inline const Aws::String& GetSession() const { return m_session; }
132 template <typename SessionT = Aws::String>
133 void SetSession(SessionT&& value) {
134 m_sessionHasBeenSet = true;
135 m_session = std::forward<SessionT>(value);
136 }
137 template <typename SessionT = Aws::String>
139 SetSession(std::forward<SessionT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Map<Aws::String, Aws::String>& GetChallengeParameters() const { return m_challengeParameters; }
149 template <typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
150 void SetChallengeParameters(ChallengeParametersT&& value) {
151 m_challengeParametersHasBeenSet = true;
152 m_challengeParameters = std::forward<ChallengeParametersT>(value);
153 }
154 template <typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
156 SetChallengeParameters(std::forward<ChallengeParametersT>(value));
157 return *this;
158 }
159 template <typename ChallengeParametersKeyT = Aws::String, typename ChallengeParametersValueT = Aws::String>
160 RespondToAuthChallengeResult& AddChallengeParameters(ChallengeParametersKeyT&& key, ChallengeParametersValueT&& value) {
161 m_challengeParametersHasBeenSet = true;
162 m_challengeParameters.emplace(std::forward<ChallengeParametersKeyT>(key), std::forward<ChallengeParametersValueT>(value));
163 return *this;
164 }
166
168
174 inline const AuthenticationResultType& GetAuthenticationResult() const { return m_authenticationResult; }
175 template <typename AuthenticationResultT = AuthenticationResultType>
176 void SetAuthenticationResult(AuthenticationResultT&& value) {
177 m_authenticationResultHasBeenSet = true;
178 m_authenticationResult = std::forward<AuthenticationResultT>(value);
179 }
180 template <typename AuthenticationResultT = AuthenticationResultType>
182 SetAuthenticationResult(std::forward<AuthenticationResultT>(value));
183 return *this;
184 }
186
188
189 inline const Aws::String& GetRequestId() const { return m_requestId; }
190 template <typename RequestIdT = Aws::String>
191 void SetRequestId(RequestIdT&& value) {
192 m_requestIdHasBeenSet = true;
193 m_requestId = std::forward<RequestIdT>(value);
194 }
195 template <typename RequestIdT = Aws::String>
197 SetRequestId(std::forward<RequestIdT>(value));
198 return *this;
199 }
201 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
202
203 private:
205
206 Aws::String m_session;
207
208 Aws::Map<Aws::String, Aws::String> m_challengeParameters;
209
210 AuthenticationResultType m_authenticationResult;
211
212 Aws::String m_requestId;
213 Aws::Http::HttpResponseCode m_HttpResponseCode;
214 bool m_challengeNameHasBeenSet = false;
215 bool m_sessionHasBeenSet = false;
216 bool m_challengeParametersHasBeenSet = false;
217 bool m_authenticationResultHasBeenSet = false;
218 bool m_requestIdHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace CognitoIdentityProvider
223} // 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