AWS SDK for C++  0.12.9
AWS SDK for C++
GetOpenIdTokenRequest.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:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
43 
47  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
48 
52  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
53 
57  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
58 
62  inline GetOpenIdTokenRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
63 
67  inline GetOpenIdTokenRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
68 
72  inline GetOpenIdTokenRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
73 
81  inline const Aws::Map<Aws::String, Aws::String>& GetLogins() const{ return m_logins; }
82 
90  inline void SetLogins(const Aws::Map<Aws::String, Aws::String>& value) { m_loginsHasBeenSet = true; m_logins = value; }
91 
99  inline void SetLogins(Aws::Map<Aws::String, Aws::String>&& value) { m_loginsHasBeenSet = true; m_logins = value; }
100 
108  inline GetOpenIdTokenRequest& WithLogins(const Aws::Map<Aws::String, Aws::String>& value) { SetLogins(value); return *this;}
109 
117  inline GetOpenIdTokenRequest& WithLogins(Aws::Map<Aws::String, Aws::String>&& value) { SetLogins(value); return *this;}
118 
126  inline GetOpenIdTokenRequest& AddLogins(const Aws::String& key, const Aws::String& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
127 
135  inline GetOpenIdTokenRequest& AddLogins(Aws::String&& key, const Aws::String& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
136 
144  inline GetOpenIdTokenRequest& AddLogins(const Aws::String& key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
145 
153  inline GetOpenIdTokenRequest& AddLogins(Aws::String&& key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
154 
162  inline GetOpenIdTokenRequest& AddLogins(const char* key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
163 
171  inline GetOpenIdTokenRequest& AddLogins(Aws::String&& key, const char* value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
172 
180  inline GetOpenIdTokenRequest& AddLogins(const char* key, const char* value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
181 
182  private:
183  Aws::String m_identityId;
184  bool m_identityIdHasBeenSet;
186  bool m_loginsHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace CognitoIdentity
191 } // namespace Aws
GetOpenIdTokenRequest & AddLogins(const Aws::String &key, 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
GetOpenIdTokenRequest & WithIdentityId(const char *value)
void SetLogins(Aws::Map< Aws::String, Aws::String > &&value)
GetOpenIdTokenRequest & AddLogins(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetLogins() const
GetOpenIdTokenRequest & AddLogins(Aws::String &&key, Aws::String &&value)
GetOpenIdTokenRequest & AddLogins(const char *key, Aws::String &&value)
GetOpenIdTokenRequest & WithLogins(Aws::Map< Aws::String, Aws::String > &&value)
#define AWS_COGNITOIDENTITY_API
GetOpenIdTokenRequest & AddLogins(const Aws::String &key, const Aws::String &value)
void SetLogins(const Aws::Map< Aws::String, Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetOpenIdTokenRequest & WithIdentityId(const Aws::String &value)
GetOpenIdTokenRequest & AddLogins(const char *key, const char *value)
GetOpenIdTokenRequest & WithLogins(const Aws::Map< Aws::String, Aws::String > &value)
GetOpenIdTokenRequest & AddLogins(Aws::String &&key, const char *value)
GetOpenIdTokenRequest & WithIdentityId(Aws::String &&value)
JSON (JavaScript Object Notation).