AWS SDK for C++  0.12.9
AWS SDK for C++
GetIdRequest.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
20 
21 namespace Aws
22 {
23 namespace CognitoIdentity
24 {
25 namespace Model
26 {
27 
32  {
33  public:
34  GetIdRequest();
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::String& GetAccountId() const{ return m_accountId; }
43 
47  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
48 
52  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
53 
57  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
58 
62  inline GetIdRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
63 
67  inline GetIdRequest& WithAccountId(Aws::String&& value) { SetAccountId(value); return *this;}
68 
72  inline GetIdRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
73 
77  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
78 
82  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
83 
87  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
88 
92  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
93 
97  inline GetIdRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
98 
102  inline GetIdRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
103 
107  inline GetIdRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
108 
119  inline const Aws::Map<Aws::String, Aws::String>& GetLogins() const{ return m_logins; }
120 
131  inline void SetLogins(const Aws::Map<Aws::String, Aws::String>& value) { m_loginsHasBeenSet = true; m_logins = value; }
132 
143  inline void SetLogins(Aws::Map<Aws::String, Aws::String>&& value) { m_loginsHasBeenSet = true; m_logins = value; }
144 
155  inline GetIdRequest& WithLogins(const Aws::Map<Aws::String, Aws::String>& value) { SetLogins(value); return *this;}
156 
167  inline GetIdRequest& WithLogins(Aws::Map<Aws::String, Aws::String>&& value) { SetLogins(value); return *this;}
168 
179  inline GetIdRequest& AddLogins(const Aws::String& key, const Aws::String& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
180 
191  inline GetIdRequest& AddLogins(Aws::String&& key, const Aws::String& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
192 
203  inline GetIdRequest& AddLogins(const Aws::String& key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
204 
215  inline GetIdRequest& AddLogins(Aws::String&& key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
216 
227  inline GetIdRequest& AddLogins(const char* key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
228 
239  inline GetIdRequest& AddLogins(Aws::String&& key, const char* value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
240 
251  inline GetIdRequest& AddLogins(const char* key, const char* value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
252 
253  private:
254  Aws::String m_accountId;
255  bool m_accountIdHasBeenSet;
256  Aws::String m_identityPoolId;
257  bool m_identityPoolIdHasBeenSet;
259  bool m_loginsHasBeenSet;
260  };
261 
262 } // namespace Model
263 } // namespace CognitoIdentity
264 } // namespace Aws
GetIdRequest & AddLogins(Aws::String &&key, const Aws::String &value)
Definition: GetIdRequest.h:191
void SetIdentityPoolId(const Aws::String &value)
Definition: GetIdRequest.h:82
void SetLogins(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetIdRequest.h:131
GetIdRequest & WithLogins(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetIdRequest.h:155
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
GetIdRequest & WithIdentityPoolId(const char *value)
Definition: GetIdRequest.h:107
GetIdRequest & AddLogins(const char *key, const char *value)
Definition: GetIdRequest.h:251
void SetLogins(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetIdRequest.h:143
GetIdRequest & AddLogins(const char *key, Aws::String &&value)
Definition: GetIdRequest.h:227
GetIdRequest & WithLogins(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetIdRequest.h:167
GetIdRequest & AddLogins(Aws::String &&key, Aws::String &&value)
Definition: GetIdRequest.h:215
GetIdRequest & AddLogins(const Aws::String &key, Aws::String &&value)
Definition: GetIdRequest.h:203
GetIdRequest & WithIdentityPoolId(Aws::String &&value)
Definition: GetIdRequest.h:102
void SetIdentityPoolId(const char *value)
Definition: GetIdRequest.h:92
#define AWS_COGNITOIDENTITY_API
GetIdRequest & AddLogins(Aws::String &&key, const char *value)
Definition: GetIdRequest.h:239
void SetAccountId(Aws::String &&value)
Definition: GetIdRequest.h:52
void SetIdentityPoolId(Aws::String &&value)
Definition: GetIdRequest.h:87
GetIdRequest & WithAccountId(const char *value)
Definition: GetIdRequest.h:72
GetIdRequest & WithIdentityPoolId(const Aws::String &value)
Definition: GetIdRequest.h:97
GetIdRequest & WithAccountId(const Aws::String &value)
Definition: GetIdRequest.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetIdRequest & AddLogins(const Aws::String &key, const Aws::String &value)
Definition: GetIdRequest.h:179
void SetAccountId(const Aws::String &value)
Definition: GetIdRequest.h:47
void SetAccountId(const char *value)
Definition: GetIdRequest.h:57
GetIdRequest & WithAccountId(Aws::String &&value)
Definition: GetIdRequest.h:67
const Aws::Map< Aws::String, Aws::String > & GetLogins() const
Definition: GetIdRequest.h:119
const Aws::String & GetIdentityPoolId() const
Definition: GetIdRequest.h:77
JSON (JavaScript Object Notation).
const Aws::String & GetAccountId() const
Definition: GetIdRequest.h:42