AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 AdminInitiateAuthRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
55 inline AdminInitiateAuthRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
56 inline AdminInitiateAuthRequest& 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 AdminInitiateAuthRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
69 inline AdminInitiateAuthRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
70 inline AdminInitiateAuthRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
72
74
96 inline const AuthFlowType& GetAuthFlow() const{ return m_authFlow; }
97 inline bool AuthFlowHasBeenSet() const { return m_authFlowHasBeenSet; }
98 inline void SetAuthFlow(const AuthFlowType& value) { m_authFlowHasBeenSet = true; m_authFlow = value; }
99 inline void SetAuthFlow(AuthFlowType&& value) { m_authFlowHasBeenSet = true; m_authFlow = std::move(value); }
100 inline AdminInitiateAuthRequest& WithAuthFlow(const AuthFlowType& value) { SetAuthFlow(value); return *this;}
101 inline AdminInitiateAuthRequest& WithAuthFlow(AuthFlowType&& value) { SetAuthFlow(std::move(value)); return *this;}
103
105
129 inline const Aws::Map<Aws::String, Aws::String>& GetAuthParameters() const{ return m_authParameters; }
130 inline bool AuthParametersHasBeenSet() const { return m_authParametersHasBeenSet; }
131 inline void SetAuthParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_authParametersHasBeenSet = true; m_authParameters = value; }
132 inline void SetAuthParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_authParametersHasBeenSet = true; m_authParameters = std::move(value); }
135 inline AdminInitiateAuthRequest& AddAuthParameters(const Aws::String& key, const Aws::String& value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(key, value); return *this; }
136 inline AdminInitiateAuthRequest& AddAuthParameters(Aws::String&& key, const Aws::String& value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(std::move(key), value); return *this; }
137 inline AdminInitiateAuthRequest& AddAuthParameters(const Aws::String& key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(key, std::move(value)); return *this; }
138 inline AdminInitiateAuthRequest& AddAuthParameters(Aws::String&& key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(std::move(key), std::move(value)); return *this; }
139 inline AdminInitiateAuthRequest& AddAuthParameters(const char* key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(key, std::move(value)); return *this; }
140 inline AdminInitiateAuthRequest& AddAuthParameters(Aws::String&& key, const char* value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(std::move(key), value); return *this; }
141 inline AdminInitiateAuthRequest& AddAuthParameters(const char* key, const char* value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(key, value); return *this; }
143
145
176 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
177 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
178 inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
179 inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
182 inline AdminInitiateAuthRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
183 inline AdminInitiateAuthRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
184 inline AdminInitiateAuthRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
185 inline AdminInitiateAuthRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
186 inline AdminInitiateAuthRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
187 inline AdminInitiateAuthRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
188 inline AdminInitiateAuthRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
190
192
196 inline const AnalyticsMetadataType& GetAnalyticsMetadata() const{ return m_analyticsMetadata; }
197 inline bool AnalyticsMetadataHasBeenSet() const { return m_analyticsMetadataHasBeenSet; }
198 inline void SetAnalyticsMetadata(const AnalyticsMetadataType& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = value; }
199 inline void SetAnalyticsMetadata(AnalyticsMetadataType&& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = std::move(value); }
203
205
211 inline const ContextDataType& GetContextData() const{ return m_contextData; }
212 inline bool ContextDataHasBeenSet() const { return m_contextDataHasBeenSet; }
213 inline void SetContextData(const ContextDataType& value) { m_contextDataHasBeenSet = true; m_contextData = value; }
214 inline void SetContextData(ContextDataType&& value) { m_contextDataHasBeenSet = true; m_contextData = std::move(value); }
215 inline AdminInitiateAuthRequest& WithContextData(const ContextDataType& value) { SetContextData(value); return *this;}
216 inline AdminInitiateAuthRequest& WithContextData(ContextDataType&& value) { SetContextData(std::move(value)); return *this;}
218 private:
219
220 Aws::String m_userPoolId;
221 bool m_userPoolIdHasBeenSet = false;
222
223 Aws::String m_clientId;
224 bool m_clientIdHasBeenSet = false;
225
226 AuthFlowType m_authFlow;
227 bool m_authFlowHasBeenSet = false;
228
229 Aws::Map<Aws::String, Aws::String> m_authParameters;
230 bool m_authParametersHasBeenSet = false;
231
232 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
233 bool m_clientMetadataHasBeenSet = false;
234
235 AnalyticsMetadataType m_analyticsMetadata;
236 bool m_analyticsMetadataHasBeenSet = false;
237
238 ContextDataType m_contextData;
239 bool m_contextDataHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace CognitoIdentityProvider
244} // namespace Aws
void SetClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
AdminInitiateAuthRequest & WithUserPoolId(const Aws::String &value)
AdminInitiateAuthRequest & WithContextData(ContextDataType &&value)
AdminInitiateAuthRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
AdminInitiateAuthRequest & WithAuthFlow(const AuthFlowType &value)
void SetAuthParameters(Aws::Map< Aws::String, Aws::String > &&value)
AdminInitiateAuthRequest & AddAuthParameters(const Aws::String &key, Aws::String &&value)
AdminInitiateAuthRequest & AddAuthParameters(Aws::String &&key, const Aws::String &value)
AdminInitiateAuthRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AdminInitiateAuthRequest & WithUserPoolId(Aws::String &&value)
AdminInitiateAuthRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
AdminInitiateAuthRequest & WithContextData(const ContextDataType &value)
AdminInitiateAuthRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AdminInitiateAuthRequest & AddAuthParameters(const char *key, Aws::String &&value)
AdminInitiateAuthRequest & WithClientId(const Aws::String &value)
AdminInitiateAuthRequest & WithUserPoolId(const char *value)
AdminInitiateAuthRequest & AddAuthParameters(const char *key, const char *value)
AdminInitiateAuthRequest & WithAuthParameters(const Aws::Map< Aws::String, Aws::String > &value)
AdminInitiateAuthRequest & WithAnalyticsMetadata(const AnalyticsMetadataType &value)
AdminInitiateAuthRequest & WithAuthFlow(AuthFlowType &&value)
AdminInitiateAuthRequest & AddClientMetadata(Aws::String &&key, const char *value)
AdminInitiateAuthRequest & WithAnalyticsMetadata(AnalyticsMetadataType &&value)
const Aws::Map< Aws::String, Aws::String > & GetAuthParameters() const
void SetClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AdminInitiateAuthRequest & WithClientId(Aws::String &&value)
AWS_COGNITOIDENTITYPROVIDER_API AdminInitiateAuthRequest()
AdminInitiateAuthRequest & AddAuthParameters(const Aws::String &key, const Aws::String &value)
AdminInitiateAuthRequest & WithAuthParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetAuthParameters(const Aws::Map< Aws::String, Aws::String > &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AdminInitiateAuthRequest & AddClientMetadata(const char *key, Aws::String &&value)
AdminInitiateAuthRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
AdminInitiateAuthRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
AdminInitiateAuthRequest & AddAuthParameters(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
AdminInitiateAuthRequest & AddClientMetadata(const char *key, const char *value)
AdminInitiateAuthRequest & AddAuthParameters(Aws::String &&key, Aws::String &&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