AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AdminInitiateAuthRequest.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/AuthFlowType.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 AdminInitiateAuthRequest() = default;
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 "AdminInitiateAuth"; }
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 template<typename UserPoolIdT = Aws::String>
52 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
53 template<typename UserPoolIdT = Aws::String>
54 AdminInitiateAuthRequest& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetClientId() const { return m_clientId; }
62 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
63 template<typename ClientIdT = Aws::String>
64 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
65 template<typename ClientIdT = Aws::String>
66 AdminInitiateAuthRequest& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
68
70
100 inline AuthFlowType GetAuthFlow() const { return m_authFlow; }
101 inline bool AuthFlowHasBeenSet() const { return m_authFlowHasBeenSet; }
102 inline void SetAuthFlow(AuthFlowType value) { m_authFlowHasBeenSet = true; m_authFlow = value; }
103 inline AdminInitiateAuthRequest& WithAuthFlow(AuthFlowType value) { SetAuthFlow(value); return *this;}
105
107
136 inline const Aws::Map<Aws::String, Aws::String>& GetAuthParameters() const { return m_authParameters; }
137 inline bool AuthParametersHasBeenSet() const { return m_authParametersHasBeenSet; }
138 template<typename AuthParametersT = Aws::Map<Aws::String, Aws::String>>
139 void SetAuthParameters(AuthParametersT&& value) { m_authParametersHasBeenSet = true; m_authParameters = std::forward<AuthParametersT>(value); }
140 template<typename AuthParametersT = Aws::Map<Aws::String, Aws::String>>
141 AdminInitiateAuthRequest& WithAuthParameters(AuthParametersT&& value) { SetAuthParameters(std::forward<AuthParametersT>(value)); return *this;}
142 template<typename AuthParametersKeyT = Aws::String, typename AuthParametersValueT = Aws::String>
143 AdminInitiateAuthRequest& AddAuthParameters(AuthParametersKeyT&& key, AuthParametersValueT&& value) {
144 m_authParametersHasBeenSet = true; m_authParameters.emplace(std::forward<AuthParametersKeyT>(key), std::forward<AuthParametersValueT>(value)); return *this;
145 }
147
149
181 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const { return m_clientMetadata; }
182 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
183 template<typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
184 void SetClientMetadata(ClientMetadataT&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::forward<ClientMetadataT>(value); }
185 template<typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
186 AdminInitiateAuthRequest& WithClientMetadata(ClientMetadataT&& value) { SetClientMetadata(std::forward<ClientMetadataT>(value)); return *this;}
187 template<typename ClientMetadataKeyT = Aws::String, typename ClientMetadataValueT = Aws::String>
188 AdminInitiateAuthRequest& AddClientMetadata(ClientMetadataKeyT&& key, ClientMetadataValueT&& value) {
189 m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::forward<ClientMetadataKeyT>(key), std::forward<ClientMetadataValueT>(value)); return *this;
190 }
192
194
200 inline const AnalyticsMetadataType& GetAnalyticsMetadata() const { return m_analyticsMetadata; }
201 inline bool AnalyticsMetadataHasBeenSet() const { return m_analyticsMetadataHasBeenSet; }
202 template<typename AnalyticsMetadataT = AnalyticsMetadataType>
203 void SetAnalyticsMetadata(AnalyticsMetadataT&& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = std::forward<AnalyticsMetadataT>(value); }
204 template<typename AnalyticsMetadataT = AnalyticsMetadataType>
205 AdminInitiateAuthRequest& WithAnalyticsMetadata(AnalyticsMetadataT&& value) { SetAnalyticsMetadata(std::forward<AnalyticsMetadataT>(value)); return *this;}
207
209
217 inline const ContextDataType& GetContextData() const { return m_contextData; }
218 inline bool ContextDataHasBeenSet() const { return m_contextDataHasBeenSet; }
219 template<typename ContextDataT = ContextDataType>
220 void SetContextData(ContextDataT&& value) { m_contextDataHasBeenSet = true; m_contextData = std::forward<ContextDataT>(value); }
221 template<typename ContextDataT = ContextDataType>
222 AdminInitiateAuthRequest& WithContextData(ContextDataT&& value) { SetContextData(std::forward<ContextDataT>(value)); return *this;}
224
226
233 inline const Aws::String& GetSession() const { return m_session; }
234 inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
235 template<typename SessionT = Aws::String>
236 void SetSession(SessionT&& value) { m_sessionHasBeenSet = true; m_session = std::forward<SessionT>(value); }
237 template<typename SessionT = Aws::String>
238 AdminInitiateAuthRequest& WithSession(SessionT&& value) { SetSession(std::forward<SessionT>(value)); return *this;}
240 private:
241
242 Aws::String m_userPoolId;
243 bool m_userPoolIdHasBeenSet = false;
244
245 Aws::String m_clientId;
246 bool m_clientIdHasBeenSet = false;
247
249 bool m_authFlowHasBeenSet = false;
250
251 Aws::Map<Aws::String, Aws::String> m_authParameters;
252 bool m_authParametersHasBeenSet = false;
253
254 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
255 bool m_clientMetadataHasBeenSet = false;
256
257 AnalyticsMetadataType m_analyticsMetadata;
258 bool m_analyticsMetadataHasBeenSet = false;
259
260 ContextDataType m_contextData;
261 bool m_contextDataHasBeenSet = false;
262
263 Aws::String m_session;
264 bool m_sessionHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace CognitoIdentityProvider
269} // namespace Aws
AdminInitiateAuthRequest & WithUserPoolId(UserPoolIdT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AdminInitiateAuthRequest & AddClientMetadata(ClientMetadataKeyT &&key, ClientMetadataValueT &&value)
AdminInitiateAuthRequest & WithAuthFlow(AuthFlowType value)
AdminInitiateAuthRequest & AddAuthParameters(AuthParametersKeyT &&key, AuthParametersValueT &&value)
AdminInitiateAuthRequest & WithContextData(ContextDataT &&value)
AdminInitiateAuthRequest & WithAuthParameters(AuthParametersT &&value)
AdminInitiateAuthRequest & WithClientMetadata(ClientMetadataT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAuthParameters() const
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AdminInitiateAuthRequest & WithAnalyticsMetadata(AnalyticsMetadataT &&value)
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
AWS_COGNITOIDENTITYPROVIDER_API AdminInitiateAuthRequest()=default
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