AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AdminRespondToAuthChallengeRequest.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/ContextDataType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CognitoIdentityProvider
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_COGNITOIDENTITYPROVIDER_API AdminRespondToAuthChallengeRequest();
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 "AdminRespondToAuthChallenge"; }
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& GetUserPoolId() const{ return m_userPoolId; }
50 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
51 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
52 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
53 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
54 inline AdminRespondToAuthChallengeRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
55 inline AdminRespondToAuthChallengeRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
56 inline AdminRespondToAuthChallengeRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
58
60
63 inline const Aws::String& GetClientId() const{ return m_clientId; }
64 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
65 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
66 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
67 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
68 inline AdminRespondToAuthChallengeRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
69 inline AdminRespondToAuthChallengeRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
70 inline AdminRespondToAuthChallengeRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
72
74
78 inline const ChallengeNameType& GetChallengeName() const{ return m_challengeName; }
79 inline bool ChallengeNameHasBeenSet() const { return m_challengeNameHasBeenSet; }
80 inline void SetChallengeName(const ChallengeNameType& value) { m_challengeNameHasBeenSet = true; m_challengeName = value; }
81 inline void SetChallengeName(ChallengeNameType&& value) { m_challengeNameHasBeenSet = true; m_challengeName = std::move(value); }
85
87
142 inline const Aws::Map<Aws::String, Aws::String>& GetChallengeResponses() const{ return m_challengeResponses; }
143 inline bool ChallengeResponsesHasBeenSet() const { return m_challengeResponsesHasBeenSet; }
144 inline void SetChallengeResponses(const Aws::Map<Aws::String, Aws::String>& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = value; }
145 inline void SetChallengeResponses(Aws::Map<Aws::String, Aws::String>&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses = std::move(value); }
148 inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const Aws::String& key, const Aws::String& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, value); return *this; }
149 inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, const Aws::String& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(std::move(key), value); return *this; }
150 inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const Aws::String& key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, std::move(value)); return *this; }
151 inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(std::move(key), std::move(value)); return *this; }
152 inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const char* key, Aws::String&& value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, std::move(value)); return *this; }
153 inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(Aws::String&& key, const char* value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(std::move(key), value); return *this; }
154 inline AdminRespondToAuthChallengeRequest& AddChallengeResponses(const char* key, const char* value) { m_challengeResponsesHasBeenSet = true; m_challengeResponses.emplace(key, value); return *this; }
156
158
166 inline const Aws::String& GetSession() const{ return m_session; }
167 inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
168 inline void SetSession(const Aws::String& value) { m_sessionHasBeenSet = true; m_session = value; }
169 inline void SetSession(Aws::String&& value) { m_sessionHasBeenSet = true; m_session = std::move(value); }
170 inline void SetSession(const char* value) { m_sessionHasBeenSet = true; m_session.assign(value); }
171 inline AdminRespondToAuthChallengeRequest& WithSession(const Aws::String& value) { SetSession(value); return *this;}
172 inline AdminRespondToAuthChallengeRequest& WithSession(Aws::String&& value) { SetSession(std::move(value)); return *this;}
173 inline AdminRespondToAuthChallengeRequest& WithSession(const char* value) { SetSession(value); return *this;}
175
177
181 inline const AnalyticsMetadataType& GetAnalyticsMetadata() const{ return m_analyticsMetadata; }
182 inline bool AnalyticsMetadataHasBeenSet() const { return m_analyticsMetadataHasBeenSet; }
183 inline void SetAnalyticsMetadata(const AnalyticsMetadataType& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = value; }
184 inline void SetAnalyticsMetadata(AnalyticsMetadataType&& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = std::move(value); }
188
190
196 inline const ContextDataType& GetContextData() const{ return m_contextData; }
197 inline bool ContextDataHasBeenSet() const { return m_contextDataHasBeenSet; }
198 inline void SetContextData(const ContextDataType& value) { m_contextDataHasBeenSet = true; m_contextData = value; }
199 inline void SetContextData(ContextDataType&& value) { m_contextDataHasBeenSet = true; m_contextData = std::move(value); }
201 inline AdminRespondToAuthChallengeRequest& WithContextData(ContextDataType&& value) { SetContextData(std::move(value)); return *this;}
203
205
233 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
234 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
235 inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
236 inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
239 inline AdminRespondToAuthChallengeRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
240 inline AdminRespondToAuthChallengeRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
241 inline AdminRespondToAuthChallengeRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
242 inline AdminRespondToAuthChallengeRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
243 inline AdminRespondToAuthChallengeRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
244 inline AdminRespondToAuthChallengeRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
245 inline AdminRespondToAuthChallengeRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
247 private:
248
249 Aws::String m_userPoolId;
250 bool m_userPoolIdHasBeenSet = false;
251
252 Aws::String m_clientId;
253 bool m_clientIdHasBeenSet = false;
254
255 ChallengeNameType m_challengeName;
256 bool m_challengeNameHasBeenSet = false;
257
258 Aws::Map<Aws::String, Aws::String> m_challengeResponses;
259 bool m_challengeResponsesHasBeenSet = false;
260
261 Aws::String m_session;
262 bool m_sessionHasBeenSet = false;
263
264 AnalyticsMetadataType m_analyticsMetadata;
265 bool m_analyticsMetadataHasBeenSet = false;
266
267 ContextDataType m_contextData;
268 bool m_contextDataHasBeenSet = false;
269
270 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
271 bool m_clientMetadataHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace CognitoIdentityProvider
276} // namespace Aws
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const char *key, const char *value)
AdminRespondToAuthChallengeRequest & WithChallengeResponses(const Aws::Map< Aws::String, Aws::String > &value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const char *key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(const char *key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const Aws::String &key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(const Aws::String &key, const Aws::String &value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
AdminRespondToAuthChallengeRequest & WithAnalyticsMetadata(AnalyticsMetadataType &&value)
AdminRespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, const Aws::String &value)
AdminRespondToAuthChallengeRequest & WithContextData(ContextDataType &&value)
AdminRespondToAuthChallengeRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & WithSession(const Aws::String &value)
AdminRespondToAuthChallengeRequest & WithAnalyticsMetadata(const AnalyticsMetadataType &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AdminRespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, Aws::String &&value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(Aws::String &&key, const char *value)
AdminRespondToAuthChallengeRequest & WithChallengeName(const ChallengeNameType &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AdminRespondToAuthChallengeRequest & AddChallengeResponses(Aws::String &&key, const char *value)
AdminRespondToAuthChallengeRequest & WithChallengeResponses(Aws::Map< Aws::String, Aws::String > &&value)
AdminRespondToAuthChallengeRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
AdminRespondToAuthChallengeRequest & WithClientId(const Aws::String &value)
AdminRespondToAuthChallengeRequest & WithChallengeName(ChallengeNameType &&value)
AdminRespondToAuthChallengeRequest & WithUserPoolId(const Aws::String &value)
AdminRespondToAuthChallengeRequest & WithContextData(const ContextDataType &value)
AdminRespondToAuthChallengeRequest & AddClientMetadata(const char *key, const char *value)
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