AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RespondToAuthChallengeRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cognito-idp/model/ChallengeNameType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/cognito-idp/model/AnalyticsMetadataType.h>
13#include <aws/cognito-idp/model/UserContextDataType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CognitoIdentityProvider
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_COGNITOIDENTITYPROVIDER_API RespondToAuthChallengeRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "RespondToAuthChallenge"; }
39
40 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
41
42 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43
44
46
49 inline const Aws::String& GetClientId() const{ return m_clientId; }
50 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
51 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
52 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
53 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
54 inline RespondToAuthChallengeRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
55 inline RespondToAuthChallengeRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
56 inline RespondToAuthChallengeRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
58
60
65 inline const ChallengeNameType& GetChallengeName() const{ return m_challengeName; }
66 inline bool ChallengeNameHasBeenSet() const { return m_challengeNameHasBeenSet; }
67 inline void SetChallengeName(const ChallengeNameType& value) { m_challengeNameHasBeenSet = true; m_challengeName = value; }
68 inline void SetChallengeName(ChallengeNameType&& value) { m_challengeNameHasBeenSet = true; m_challengeName = std::move(value); }
70 inline RespondToAuthChallengeRequest& WithChallengeName(ChallengeNameType&& value) { SetChallengeName(std::move(value)); return *this;}
72
74
81 inline const Aws::String& GetSession() const{ return m_session; }
82 inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
83 inline void SetSession(const Aws::String& value) { m_sessionHasBeenSet = true; m_session = value; }
84 inline void SetSession(Aws::String&& value) { m_sessionHasBeenSet = true; m_session = std::move(value); }
85 inline void SetSession(const char* value) { m_sessionHasBeenSet = true; m_session.assign(value); }
86 inline RespondToAuthChallengeRequest& WithSession(const Aws::String& value) { SetSession(value); return *this;}
87 inline RespondToAuthChallengeRequest& WithSession(Aws::String&& value) { SetSession(std::move(value)); return *this;}
88 inline RespondToAuthChallengeRequest& WithSession(const char* value) { SetSession(value); return *this;}
90
92
147 inline const Aws::Map<Aws::String, Aws::String>& GetChallengeResponses() const{ return m_challengeResponses; }
148 inline bool ChallengeResponsesHasBeenSet() const { return m_challengeResponsesHasBeenSet; }
149 inline void SetChallengeResponses(const Aws::Map<Aws::String, Aws::String>& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = value; }
150 inline void SetChallengeResponses(Aws::Map<Aws::String, Aws::String>&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = std::move(value); }
153 inline RespondToAuthChallengeRequest& AddChallengeResponses(const Aws::String& key, const Aws::String& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, value); return *this; }
154 inline RespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, const Aws::String& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(std::move(key), value); return *this; }
155 inline RespondToAuthChallengeRequest& AddChallengeResponses(const Aws::String& key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, std::move(value)); return *this; }
156 inline RespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(std::move(key), std::move(value)); return *this; }
157 inline RespondToAuthChallengeRequest& AddChallengeResponses(const char* key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, std::move(value)); return *this; }
158 inline RespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, const char* value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(std::move(key), value); return *this; }
159 inline RespondToAuthChallengeRequest& AddChallengeResponses(const char* key, const char* value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, value); return *this; }
161
163
167 inline const AnalyticsMetadataType& GetAnalyticsMetadata() const{ return m_analyticsMetadata; }
168 inline bool AnalyticsMetadataHasBeenSet() const { return m_analyticsMetadataHasBeenSet; }
169 inline void SetAnalyticsMetadata(const AnalyticsMetadataType& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = value; }
170 inline void SetAnalyticsMetadata(AnalyticsMetadataType&& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = std::move(value); }
174
176
182 inline const UserContextDataType& GetUserContextData() const{ return m_userContextData; }
183 inline bool UserContextDataHasBeenSet() const { return m_userContextDataHasBeenSet; }
184 inline void SetUserContextData(const UserContextDataType& value) { m_userContextDataHasBeenSet = true; m_userContextData = value; }
185 inline void SetUserContextData(UserContextDataType&& value) { m_userContextDataHasBeenSet = true; m_userContextData = std::move(value); }
189
191
216 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
217 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
218 inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
219 inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
222 inline RespondToAuthChallengeRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
223 inline RespondToAuthChallengeRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
224 inline RespondToAuthChallengeRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
225 inline RespondToAuthChallengeRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
226 inline RespondToAuthChallengeRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
227 inline RespondToAuthChallengeRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
228 inline RespondToAuthChallengeRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
230 private:
231
232 Aws::String m_clientId;
233 bool m_clientIdHasBeenSet = false;
234
235 ChallengeNameType m_challengeName;
236 bool m_challengeNameHasBeenSet = false;
237
238 Aws::String m_session;
239 bool m_sessionHasBeenSet = false;
240
241 Aws::Map<Aws::String, Aws::String> m_challengeResponses;
242 bool m_challengeResponsesHasBeenSet = false;
243
244 AnalyticsMetadataType m_analyticsMetadata;
245 bool m_analyticsMetadataHasBeenSet = false;
246
247 UserContextDataType m_userContextData;
248 bool m_userContextDataHasBeenSet = false;
249
250 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
251 bool m_clientMetadataHasBeenSet = false;
252 };
253
254} // namespace Model
255} // namespace CognitoIdentityProvider
256} // namespace Aws
RespondToAuthChallengeRequest & AddChallengeResponses(const Aws::String &key, const Aws::String &value)
RespondToAuthChallengeRequest & WithChallengeName(const ChallengeNameType &value)
RespondToAuthChallengeRequest & AddClientMetadata(Aws::String &&key, const char *value)
RespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, Aws::String &&value)
RespondToAuthChallengeRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
RespondToAuthChallengeRequest & WithSession(const Aws::String &value)
void SetChallengeResponses(Aws::Map< Aws::String, Aws::String > &&value)
RespondToAuthChallengeRequest & AddClientMetadata(const char *key, Aws::String &&value)
RespondToAuthChallengeRequest & AddChallengeResponses(const char *key, Aws::String &&value)
RespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, const Aws::String &value)
RespondToAuthChallengeRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
RespondToAuthChallengeRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
RespondToAuthChallengeRequest & AddChallengeResponses(const Aws::String &key, Aws::String &&value)
RespondToAuthChallengeRequest & WithChallengeName(ChallengeNameType &&value)
RespondToAuthChallengeRequest & AddClientMetadata(const char *key, const char *value)
void SetChallengeResponses(const Aws::Map< Aws::String, Aws::String > &value)
RespondToAuthChallengeRequest & WithUserContextData(const UserContextDataType &value)
void SetClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
RespondToAuthChallengeRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
RespondToAuthChallengeRequest & WithClientId(const Aws::String &value)
RespondToAuthChallengeRequest & WithAnalyticsMetadata(const AnalyticsMetadataType &value)
RespondToAuthChallengeRequest & WithChallengeResponses(Aws::Map< Aws::String, Aws::String > &&value)
RespondToAuthChallengeRequest & WithAnalyticsMetadata(AnalyticsMetadataType &&value)
RespondToAuthChallengeRequest & AddChallengeResponses(const char *key, const char *value)
RespondToAuthChallengeRequest & WithChallengeResponses(const Aws::Map< Aws::String, Aws::String > &value)
RespondToAuthChallengeRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
RespondToAuthChallengeRequest & WithUserContextData(UserContextDataType &&value)
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
RespondToAuthChallengeRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
RespondToAuthChallengeRequest & WithClientId(Aws::String &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetChallengeResponses() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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