AWS SDK for C++  0.12.9
AWS SDK for C++
GetCredentialsForIdentityRequest.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 GetCredentialsForIdentityRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
63 
67  inline GetCredentialsForIdentityRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
68 
72  inline GetCredentialsForIdentityRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
73 
78  inline const Aws::Map<Aws::String, Aws::String>& GetLogins() const{ return m_logins; }
79 
84  inline void SetLogins(const Aws::Map<Aws::String, Aws::String>& value) { m_loginsHasBeenSet = true; m_logins = value; }
85 
90  inline void SetLogins(Aws::Map<Aws::String, Aws::String>&& value) { m_loginsHasBeenSet = true; m_logins = value; }
91 
96  inline GetCredentialsForIdentityRequest& WithLogins(const Aws::Map<Aws::String, Aws::String>& value) { SetLogins(value); return *this;}
97 
102  inline GetCredentialsForIdentityRequest& WithLogins(Aws::Map<Aws::String, Aws::String>&& value) { SetLogins(value); return *this;}
103 
108  inline GetCredentialsForIdentityRequest& AddLogins(const Aws::String& key, const Aws::String& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
109 
114  inline GetCredentialsForIdentityRequest& AddLogins(Aws::String&& key, const Aws::String& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
115 
120  inline GetCredentialsForIdentityRequest& AddLogins(const Aws::String& key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
121 
126  inline GetCredentialsForIdentityRequest& AddLogins(Aws::String&& key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
127 
132  inline GetCredentialsForIdentityRequest& AddLogins(const char* key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
133 
138  inline GetCredentialsForIdentityRequest& AddLogins(Aws::String&& key, const char* value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
139 
144  inline GetCredentialsForIdentityRequest& AddLogins(const char* key, const char* value) { m_loginsHasBeenSet = true; m_logins[key] = value; return *this; }
145 
146  private:
147  Aws::String m_identityId;
148  bool m_identityIdHasBeenSet;
150  bool m_loginsHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace CognitoIdentity
155 } // namespace Aws
GetCredentialsForIdentityRequest & AddLogins(const char *key, Aws::String &&value)
GetCredentialsForIdentityRequest & AddLogins(Aws::String &&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
GetCredentialsForIdentityRequest & AddLogins(const char *key, const char *value)
GetCredentialsForIdentityRequest & WithIdentityId(const Aws::String &value)
GetCredentialsForIdentityRequest & AddLogins(Aws::String &&key, Aws::String &&value)
GetCredentialsForIdentityRequest & AddLogins(Aws::String &&key, const Aws::String &value)
void SetLogins(const Aws::Map< Aws::String, Aws::String > &value)
#define AWS_COGNITOIDENTITY_API
GetCredentialsForIdentityRequest & AddLogins(const Aws::String &key, const Aws::String &value)
GetCredentialsForIdentityRequest & WithLogins(Aws::Map< Aws::String, Aws::String > &&value)
GetCredentialsForIdentityRequest & AddLogins(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetLogins() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetCredentialsForIdentityRequest & WithLogins(const Aws::Map< Aws::String, Aws::String > &value)
GetCredentialsForIdentityRequest & WithIdentityId(const char *value)
JSON (JavaScript Object Notation).
GetCredentialsForIdentityRequest & WithIdentityId(Aws::String &&value)