AWS SDK for C++

AWS SDK for C++ Version 1.11.641

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
115 inline ChallengeNameType GetChallengeName() const { return m_challengeName; }
116 inline void SetChallengeName(ChallengeNameType value) { m_challengeNameHasBeenSet = true; m_challengeName = value; }
119
121
129 inline const Aws::String& GetSession() const { return m_session; }
130 template<typename SessionT = Aws::String>
131 void SetSession(SessionT&& value) { m_sessionHasBeenSet = true; m_session = std::forward<SessionT>(value); }
132 template<typename SessionT = Aws::String>
133 RespondToAuthChallengeResult& WithSession(SessionT&& value) { SetSession(std::forward<SessionT>(value)); return *this;}
135
137
140 inline const Aws::Map<Aws::String, Aws::String>& GetChallengeParameters() const { return m_challengeParameters; }
141 template<typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
142 void SetChallengeParameters(ChallengeParametersT&& value) { m_challengeParametersHasBeenSet = true; m_challengeParameters = std::forward<ChallengeParametersT>(value); }
143 template<typename ChallengeParametersT = Aws::Map<Aws::String, Aws::String>>
144 RespondToAuthChallengeResult& WithChallengeParameters(ChallengeParametersT&& value) { SetChallengeParameters(std::forward<ChallengeParametersT>(value)); return *this;}
145 template<typename ChallengeParametersKeyT = Aws::String, typename ChallengeParametersValueT = Aws::String>
146 RespondToAuthChallengeResult& AddChallengeParameters(ChallengeParametersKeyT&& key, ChallengeParametersValueT&& value) {
147 m_challengeParametersHasBeenSet = true; m_challengeParameters.emplace(std::forward<ChallengeParametersKeyT>(key), std::forward<ChallengeParametersValueT>(value)); return *this;
148 }
150
152
158 inline const AuthenticationResultType& GetAuthenticationResult() const { return m_authenticationResult; }
159 template<typename AuthenticationResultT = AuthenticationResultType>
160 void SetAuthenticationResult(AuthenticationResultT&& value) { m_authenticationResultHasBeenSet = true; m_authenticationResult = std::forward<AuthenticationResultT>(value); }
161 template<typename AuthenticationResultT = AuthenticationResultType>
162 RespondToAuthChallengeResult& WithAuthenticationResult(AuthenticationResultT&& value) { SetAuthenticationResult(std::forward<AuthenticationResultT>(value)); return *this;}
164
166
167 inline const Aws::String& GetRequestId() const { return m_requestId; }
168 template<typename RequestIdT = Aws::String>
169 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
170 template<typename RequestIdT = Aws::String>
171 RespondToAuthChallengeResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
173 private:
174
176 bool m_challengeNameHasBeenSet = false;
177
178 Aws::String m_session;
179 bool m_sessionHasBeenSet = false;
180
181 Aws::Map<Aws::String, Aws::String> m_challengeParameters;
182 bool m_challengeParametersHasBeenSet = false;
183
184 AuthenticationResultType m_authenticationResult;
185 bool m_authenticationResultHasBeenSet = false;
186
187 Aws::String m_requestId;
188 bool m_requestIdHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace CognitoIdentityProvider
193} // 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