AWS SDK for C++  0.14.3
AWS SDK for C++
SetIdentityPoolRolesRequest.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& GetIdentityPoolId() const{ return m_identityPoolId; }
43 
47  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
48 
52  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
53 
57  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
58 
62  inline SetIdentityPoolRolesRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
63 
67  inline SetIdentityPoolRolesRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
68 
72  inline SetIdentityPoolRolesRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
73 
79  inline const Aws::Map<Aws::String, Aws::String>& GetRoles() const{ return m_roles; }
80 
86  inline void SetRoles(const Aws::Map<Aws::String, Aws::String>& value) { m_rolesHasBeenSet = true; m_roles = value; }
87 
93  inline void SetRoles(Aws::Map<Aws::String, Aws::String>&& value) { m_rolesHasBeenSet = true; m_roles = value; }
94 
100  inline SetIdentityPoolRolesRequest& WithRoles(const Aws::Map<Aws::String, Aws::String>& value) { SetRoles(value); return *this;}
101 
107  inline SetIdentityPoolRolesRequest& WithRoles(Aws::Map<Aws::String, Aws::String>&& value) { SetRoles(value); return *this;}
108 
114  inline SetIdentityPoolRolesRequest& AddRoles(const Aws::String& key, const Aws::String& value) { m_rolesHasBeenSet = true; m_roles[key] = value; return *this; }
115 
121  inline SetIdentityPoolRolesRequest& AddRoles(Aws::String&& key, const Aws::String& value) { m_rolesHasBeenSet = true; m_roles[key] = value; return *this; }
122 
128  inline SetIdentityPoolRolesRequest& AddRoles(const Aws::String& key, Aws::String&& value) { m_rolesHasBeenSet = true; m_roles[key] = value; return *this; }
129 
135  inline SetIdentityPoolRolesRequest& AddRoles(Aws::String&& key, Aws::String&& value) { m_rolesHasBeenSet = true; m_roles[key] = value; return *this; }
136 
142  inline SetIdentityPoolRolesRequest& AddRoles(const char* key, Aws::String&& value) { m_rolesHasBeenSet = true; m_roles[key] = value; return *this; }
143 
149  inline SetIdentityPoolRolesRequest& AddRoles(Aws::String&& key, const char* value) { m_rolesHasBeenSet = true; m_roles[key] = value; return *this; }
150 
156  inline SetIdentityPoolRolesRequest& AddRoles(const char* key, const char* value) { m_rolesHasBeenSet = true; m_roles[key] = value; return *this; }
157 
158  private:
159  Aws::String m_identityPoolId;
160  bool m_identityPoolIdHasBeenSet;
162  bool m_rolesHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace CognitoIdentity
167 } // namespace Aws
SetIdentityPoolRolesRequest & AddRoles(const Aws::String &key, const Aws::String &value)
SetIdentityPoolRolesRequest & AddRoles(Aws::String &&key, Aws::String &&value)
SetIdentityPoolRolesRequest & WithIdentityPoolId(const 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
SetIdentityPoolRolesRequest & WithIdentityPoolId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetRoles() const
SetIdentityPoolRolesRequest & AddRoles(Aws::String &&key, const Aws::String &value)
#define AWS_COGNITOIDENTITY_API
SetIdentityPoolRolesRequest & WithRoles(Aws::Map< Aws::String, Aws::String > &&value)
SetIdentityPoolRolesRequest & AddRoles(Aws::String &&key, const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SetIdentityPoolRolesRequest & WithIdentityPoolId(const char *value)
SetIdentityPoolRolesRequest & AddRoles(const char *key, const char *value)
SetIdentityPoolRolesRequest & AddRoles(const Aws::String &key, Aws::String &&value)
void SetRoles(const Aws::Map< Aws::String, Aws::String > &value)
void SetRoles(Aws::Map< Aws::String, Aws::String > &&value)
SetIdentityPoolRolesRequest & WithRoles(const Aws::Map< Aws::String, Aws::String > &value)
SetIdentityPoolRolesRequest & AddRoles(const char *key, Aws::String &&value)
JSON (JavaScript Object Notation).