AWS SDK for C++  0.14.3
AWS SDK for C++
InitiateAuthRequest.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 AuthFlowType& GetAuthFlow() const{ return m_authFlow; }
44 
48  inline void SetAuthFlow(const AuthFlowType& value) { m_authFlowHasBeenSet = true; m_authFlow = value; }
49 
53  inline void SetAuthFlow(AuthFlowType&& value) { m_authFlowHasBeenSet = true; m_authFlow = value; }
54 
58  inline InitiateAuthRequest& WithAuthFlow(const AuthFlowType& value) { SetAuthFlow(value); return *this;}
59 
63  inline InitiateAuthRequest& WithAuthFlow(AuthFlowType&& value) { SetAuthFlow(value); return *this;}
64 
68  inline const Aws::Map<Aws::String, Aws::String>& GetAuthParameters() const{ return m_authParameters; }
69 
73  inline void SetAuthParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_authParametersHasBeenSet = true; m_authParameters = value; }
74 
78  inline void SetAuthParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_authParametersHasBeenSet = true; m_authParameters = value; }
79 
83  inline InitiateAuthRequest& WithAuthParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetAuthParameters(value); return *this;}
84 
88  inline InitiateAuthRequest& WithAuthParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetAuthParameters(value); return *this;}
89 
93  inline InitiateAuthRequest& AddAuthParameters(const Aws::String& key, const Aws::String& value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
94 
98  inline InitiateAuthRequest& AddAuthParameters(Aws::String&& key, const Aws::String& value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
99 
103  inline InitiateAuthRequest& AddAuthParameters(const Aws::String& key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
104 
108  inline InitiateAuthRequest& AddAuthParameters(Aws::String&& key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
109 
113  inline InitiateAuthRequest& AddAuthParameters(const char* key, Aws::String&& value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
114 
118  inline InitiateAuthRequest& AddAuthParameters(Aws::String&& key, const char* value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
119 
123  inline InitiateAuthRequest& AddAuthParameters(const char* key, const char* value) { m_authParametersHasBeenSet = true; m_authParameters[key] = value; return *this; }
124 
128  inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
129 
133  inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
134 
138  inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
139 
143  inline InitiateAuthRequest& WithClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetClientMetadata(value); return *this;}
144 
148  inline InitiateAuthRequest& WithClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetClientMetadata(value); return *this;}
149 
153  inline InitiateAuthRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
154 
158  inline InitiateAuthRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
159 
163  inline InitiateAuthRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
164 
168  inline InitiateAuthRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
169 
173  inline InitiateAuthRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
174 
178  inline InitiateAuthRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
179 
183  inline InitiateAuthRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata[key] = value; return *this; }
184 
188  inline const Aws::String& GetClientId() const{ return m_clientId; }
189 
193  inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
194 
198  inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
199 
203  inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
204 
208  inline InitiateAuthRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
209 
213  inline InitiateAuthRequest& WithClientId(Aws::String&& value) { SetClientId(value); return *this;}
214 
218  inline InitiateAuthRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
219 
220  private:
221  AuthFlowType m_authFlow;
222  bool m_authFlowHasBeenSet;
223  Aws::Map<Aws::String, Aws::String> m_authParameters;
224  bool m_authParametersHasBeenSet;
225  Aws::Map<Aws::String, Aws::String> m_clientMetadata;
226  bool m_clientMetadataHasBeenSet;
227  Aws::String m_clientId;
228  bool m_clientIdHasBeenSet;
229  };
230 
231 } // namespace Model
232 } // namespace CognitoIdentityProvider
233 } // namespace Aws
InitiateAuthRequest & AddAuthParameters(Aws::String &&key, const char *value)
InitiateAuthRequest & WithAuthFlow(const AuthFlowType &value)
InitiateAuthRequest & AddAuthParameters(const char *key, Aws::String &&value)
InitiateAuthRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
InitiateAuthRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
InitiateAuthRequest & WithAuthFlow(AuthFlowType &&value)
InitiateAuthRequest & WithAuthParameters(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
void SetAuthParameters(const Aws::Map< Aws::String, Aws::String > &value)
InitiateAuthRequest & AddAuthParameters(const Aws::String &key, Aws::String &&value)
InitiateAuthRequest & AddAuthParameters(const char *key, const char *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
InitiateAuthRequest & AddAuthParameters(const Aws::String &key, const Aws::String &value)
InitiateAuthRequest & AddAuthParameters(Aws::String &&key, const Aws::String &value)
InitiateAuthRequest & AddClientMetadata(Aws::String &&key, const char *value)
InitiateAuthRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
InitiateAuthRequest & AddClientMetadata(const char *key, const char *value)
InitiateAuthRequest & WithAuthParameters(Aws::Map< Aws::String, Aws::String > &&value)
InitiateAuthRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
InitiateAuthRequest & WithClientId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetAuthParameters() const
void SetClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
InitiateAuthRequest & WithClientId(Aws::String &&value)
#define AWS_COGNITOIDENTITYPROVIDER_API
void SetClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
InitiateAuthRequest & AddClientMetadata(const char *key, Aws::String &&value)
InitiateAuthRequest & AddAuthParameters(Aws::String &&key, Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
InitiateAuthRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
InitiateAuthRequest & WithClientId(const Aws::String &value)
void SetAuthParameters(Aws::Map< Aws::String, Aws::String > &&value)
JSON (JavaScript Object Notation).
InitiateAuthRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)