AWS SDK for C++  0.14.3
AWS SDK for C++
AdminInitiateAuthRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace CognitoIdentityProvider
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
44 
48  inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
49 
53  inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
54 
58  inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
59 
63  inline AdminInitiateAuthRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
64 
68  inline AdminInitiateAuthRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(value); return *this;}
69 
73  inline AdminInitiateAuthRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
74 
78  inline const Aws::String& GetClientId() const{ return m_clientId; }
79 
83  inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
84 
88  inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
89 
93  inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
94 
98  inline AdminInitiateAuthRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
99 
103  inline AdminInitiateAuthRequest& WithClientId(Aws::String&& value) { SetClientId(value); return *this;}
104 
108  inline AdminInitiateAuthRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
109 
113  inline const AuthFlowType& GetAuthFlow() const{ return m_authFlow; }
114 
118  inline void SetAuthFlow(const AuthFlowType& value) { m_authFlowHasBeenSet = true; m_authFlow = value; }
119 
123  inline void SetAuthFlow(AuthFlowType&& value) { m_authFlowHasBeenSet = true; m_authFlow = value; }
124 
128  inline AdminInitiateAuthRequest& WithAuthFlow(const AuthFlowType& value) { SetAuthFlow(value); return *this;}
129 
133  inline AdminInitiateAuthRequest& WithAuthFlow(AuthFlowType&& value) { SetAuthFlow(value); return *this;}
134 
138  inline const Aws::Map<Aws::String, Aws::String>& GetAuthParameters() const{ return m_authParameters; }
139 
143  inline void SetAuthParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_authParametersHasBeenSet = true; m_authParameters = value; }
144 
148  inline void SetAuthParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_authParametersHasBeenSet = true; m_authParameters = value; }
149 
153  inline AdminInitiateAuthRequest& WithAuthParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetAuthParameters(value); return *this;}
154 
158  inline AdminInitiateAuthRequest& WithAuthParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetAuthParameters(value); return *this;}
159 
163  inline AdminInitiateAuthRequest& AddAuthParameters(const Aws::String& key, const Aws::String& value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
164 
168  inline AdminInitiateAuthRequest& AddAuthParameters(Aws::String&& key, const Aws::String& value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
169 
173  inline AdminInitiateAuthRequest& AddAuthParameters(const Aws::String& key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
174 
178  inline AdminInitiateAuthRequest& AddAuthParameters(Aws::String&& key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
179 
183  inline AdminInitiateAuthRequest& AddAuthParameters(const char* key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
184 
188  inline AdminInitiateAuthRequest& AddAuthParameters(Aws::String&& key, const char* value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
189 
193  inline AdminInitiateAuthRequest& AddAuthParameters(const char* key, const char* value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
194 
198  inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
199 
203  inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
204 
208  inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
209 
213  inline AdminInitiateAuthRequest& WithClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetClientMetadata(value); return *this;}
214 
218  inline AdminInitiateAuthRequest& WithClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetClientMetadata(value); return *this;}
219 
223  inline AdminInitiateAuthRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
224 
228  inline AdminInitiateAuthRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
229 
233  inline AdminInitiateAuthRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
234 
238  inline AdminInitiateAuthRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
239 
243  inline AdminInitiateAuthRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
244 
248  inline AdminInitiateAuthRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
249 
253  inline AdminInitiateAuthRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
254 
255  private:
256  Aws::String m_userPoolId;
257  bool m_userPoolIdHasBeenSet;
258  Aws::String m_clientId;
259  bool m_clientIdHasBeenSet;
260  AuthFlowType m_authFlow;
261  bool m_authFlowHasBeenSet;
262  Aws::Map<Aws::String, Aws::String> m_authParameters;
263  bool m_authParametersHasBeenSet;
264  Aws::Map<Aws::String, Aws::String> m_clientMetadata;
265  bool m_clientMetadataHasBeenSet;
266  };
267 
268 } // namespace Model
269 } // namespace CognitoIdentityProvider
270 } // namespace Aws
AdminInitiateAuthRequest & WithClientId(const Aws::String &value)
AdminInitiateAuthRequest & AddAuthParameters(Aws::String &&key, const char *value)
void SetAuthParameters(const Aws::Map< Aws::String, Aws::String > &value)
AdminInitiateAuthRequest & AddAuthParameters(const char *key, const char *value)
AdminInitiateAuthRequest & WithAuthParameters(Aws::Map< Aws::String, Aws::String > &&value)
AdminInitiateAuthRequest & WithAuthFlow(const AuthFlowType &value)
AdminInitiateAuthRequest & WithAuthParameters(const Aws::Map< Aws::String, Aws::String > &value)
AdminInitiateAuthRequest & WithUserPoolId(const char *value)
AdminInitiateAuthRequest & WithClientId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
AdminInitiateAuthRequest & WithAuthFlow(AuthFlowType &&value)
AdminInitiateAuthRequest & AddClientMetadata(const char *key, Aws::String &&value)
AdminInitiateAuthRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
AdminInitiateAuthRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
AdminInitiateAuthRequest & WithUserPoolId(Aws::String &&value)
AdminInitiateAuthRequest & AddClientMetadata(Aws::String &&key, const char *value)
void SetClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
AdminInitiateAuthRequest & AddAuthParameters(const Aws::String &key, Aws::String &&value)
AdminInitiateAuthRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
#define AWS_COGNITOIDENTITYPROVIDER_API
AdminInitiateAuthRequest & AddAuthParameters(Aws::String &&key, Aws::String &&value)
AdminInitiateAuthRequest & AddAuthParameters(Aws::String &&key, const Aws::String &value)
void SetAuthParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AdminInitiateAuthRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
AdminInitiateAuthRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AdminInitiateAuthRequest & WithUserPoolId(const Aws::String &value)
AdminInitiateAuthRequest & AddAuthParameters(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAuthParameters() const
AdminInitiateAuthRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AdminInitiateAuthRequest & WithClientId(const char *value)
AdminInitiateAuthRequest & AddClientMetadata(const char *key, const char *value)
AdminInitiateAuthRequest & AddAuthParameters(const Aws::String &key, const Aws::String &value)
JSON (JavaScript Object Notation).