AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InitiateAuthRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
9#include <aws/cognito-idp/model/AuthFlowType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.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
29 {
30 public:
31 AWS_COGNITOIDENTITYPROVIDER_API InitiateAuthRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "InitiateAuth"; }
38
39 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
40
41 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
64 inline const AuthFlowType& GetAuthFlow() const{ return m_authFlow; }
65 inline bool AuthFlowHasBeenSet() const { return m_authFlowHasBeenSet; }
66 inline void SetAuthFlow(const AuthFlowType& value) { m_authFlowHasBeenSet = true; m_authFlow = value; }
67 inline void SetAuthFlow(AuthFlowType&& value) { m_authFlowHasBeenSet = true; m_authFlow = std::move(value); }
68 inline InitiateAuthRequest& WithAuthFlow(const AuthFlowType& value) { SetAuthFlow(value); return *this;}
69 inline InitiateAuthRequest& WithAuthFlow(AuthFlowType&& value) { SetAuthFlow(std::move(value)); return *this;}
71
73
97 inline const Aws::Map<Aws::String, Aws::String>& GetAuthParameters() const{ return m_authParameters; }
98 inline bool AuthParametersHasBeenSet() const { return m_authParametersHasBeenSet; }
99 inline void SetAuthParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_authParametersHasBeenSet = true; m_authParameters = value; }
100 inline void SetAuthParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_authParametersHasBeenSet = true; m_authParameters = std::move(value); }
103 inline InitiateAuthRequest& AddAuthParameters(const Aws::String& key, const Aws::String& value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(key, value); return *this; }
104 inline InitiateAuthRequest& AddAuthParameters(Aws::String&& key, const Aws::String& value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(std::move(key), value); return *this; }
105 inline InitiateAuthRequest& AddAuthParameters(const Aws::String& key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(key, std::move(value)); return *this; }
106 inline InitiateAuthRequest& AddAuthParameters(Aws::String&& key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(std::move(key), std::move(value)); return *this; }
107 inline InitiateAuthRequest& AddAuthParameters(const char* key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(key, std::move(value)); return *this; }
108 inline InitiateAuthRequest& AddAuthParameters(Aws::String&& key, const char* value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(std::move(key), value); return *this; }
109 inline InitiateAuthRequest& AddAuthParameters(const char* key, const char* value) { m_authParametersHasBeenSet = true; m_authParameters.emplace(key, value); return *this; }
111
113
143 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
144 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
145 inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
146 inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
149 inline InitiateAuthRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
150 inline InitiateAuthRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
151 inline InitiateAuthRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
152 inline InitiateAuthRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
153 inline InitiateAuthRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
154 inline InitiateAuthRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
155 inline InitiateAuthRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
157
159
162 inline const Aws::String& GetClientId() const{ return m_clientId; }
163 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
164 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
165 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
166 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
167 inline InitiateAuthRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
168 inline InitiateAuthRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
169 inline InitiateAuthRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
171
173
177 inline const AnalyticsMetadataType& GetAnalyticsMetadata() const{ return m_analyticsMetadata; }
178 inline bool AnalyticsMetadataHasBeenSet() const { return m_analyticsMetadataHasBeenSet; }
179 inline void SetAnalyticsMetadata(const AnalyticsMetadataType& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = value; }
180 inline void SetAnalyticsMetadata(AnalyticsMetadataType&& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = std::move(value); }
182 inline InitiateAuthRequest& WithAnalyticsMetadata(AnalyticsMetadataType&& value) { SetAnalyticsMetadata(std::move(value)); return *this;}
184
186
192 inline const UserContextDataType& GetUserContextData() const{ return m_userContextData; }
193 inline bool UserContextDataHasBeenSet() const { return m_userContextDataHasBeenSet; }
194 inline void SetUserContextData(const UserContextDataType& value) { m_userContextDataHasBeenSet = true; m_userContextData = value; }
195 inline void SetUserContextData(UserContextDataType&& value) { m_userContextDataHasBeenSet = true; m_userContextData = std::move(value); }
197 inline InitiateAuthRequest& WithUserContextData(UserContextDataType&& value) { SetUserContextData(std::move(value)); return *this;}
199 private:
200
201 AuthFlowType m_authFlow;
202 bool m_authFlowHasBeenSet = false;
203
204 Aws::Map<Aws::String, Aws::String> m_authParameters;
205 bool m_authParametersHasBeenSet = false;
206
207 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
208 bool m_clientMetadataHasBeenSet = false;
209
210 Aws::String m_clientId;
211 bool m_clientIdHasBeenSet = false;
212
213 AnalyticsMetadataType m_analyticsMetadata;
214 bool m_analyticsMetadataHasBeenSet = false;
215
216 UserContextDataType m_userContextData;
217 bool m_userContextDataHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace CognitoIdentityProvider
222} // namespace Aws
InitiateAuthRequest & AddClientMetadata(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetAuthParameters() const
InitiateAuthRequest & WithClientId(const Aws::String &value)
InitiateAuthRequest & AddAuthParameters(const char *key, const char *value)
InitiateAuthRequest & WithAuthFlow(AuthFlowType &&value)
InitiateAuthRequest & WithClientId(const char *value)
InitiateAuthRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
InitiateAuthRequest & AddAuthParameters(const Aws::String &key, const Aws::String &value)
InitiateAuthRequest & WithClientId(Aws::String &&value)
InitiateAuthRequest & WithUserContextData(UserContextDataType &&value)
InitiateAuthRequest & WithAnalyticsMetadata(AnalyticsMetadataType &&value)
void SetAuthParameters(Aws::Map< Aws::String, Aws::String > &&value)
InitiateAuthRequest & AddAuthParameters(Aws::String &&key, const Aws::String &value)
void SetAuthParameters(const Aws::Map< Aws::String, Aws::String > &value)
InitiateAuthRequest & AddAuthParameters(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
InitiateAuthRequest & WithAuthFlow(const AuthFlowType &value)
InitiateAuthRequest & WithAnalyticsMetadata(const AnalyticsMetadataType &value)
AWS_COGNITOIDENTITYPROVIDER_API InitiateAuthRequest()
InitiateAuthRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
const AnalyticsMetadataType & GetAnalyticsMetadata() const
InitiateAuthRequest & WithAuthParameters(Aws::Map< Aws::String, Aws::String > &&value)
InitiateAuthRequest & AddAuthParameters(Aws::String &&key, Aws::String &&value)
InitiateAuthRequest & AddClientMetadata(const char *key, Aws::String &&value)
InitiateAuthRequest & AddAuthParameters(Aws::String &&key, const char *value)
void SetClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
InitiateAuthRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
void SetUserContextData(const UserContextDataType &value)
void SetAnalyticsMetadata(const AnalyticsMetadataType &value)
virtual const char * GetServiceRequestName() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
void SetClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
InitiateAuthRequest & AddAuthParameters(const char *key, Aws::String &&value)
InitiateAuthRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
InitiateAuthRequest & WithUserContextData(const UserContextDataType &value)
InitiateAuthRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
InitiateAuthRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InitiateAuthRequest & WithAuthParameters(const Aws::Map< Aws::String, Aws::String > &value)
InitiateAuthRequest & AddClientMetadata(Aws::String &&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