AWS SDK for C++  0.12.9
AWS SDK for C++
GetIdentityPoolRolesResult.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
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace CognitoIdentity
33 {
34 namespace Model
35 {
41  {
42  public:
46 
50  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
51 
55  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolId = value; }
56 
60  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolId = value; }
61 
65  inline void SetIdentityPoolId(const char* value) { m_identityPoolId.assign(value); }
66 
70  inline GetIdentityPoolRolesResult& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
71 
75  inline GetIdentityPoolRolesResult& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
76 
80  inline GetIdentityPoolRolesResult& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
81 
86  inline const Aws::Map<Aws::String, Aws::String>& GetRoles() const{ return m_roles; }
87 
92  inline void SetRoles(const Aws::Map<Aws::String, Aws::String>& value) { m_roles = value; }
93 
98  inline void SetRoles(Aws::Map<Aws::String, Aws::String>&& value) { m_roles = value; }
99 
104  inline GetIdentityPoolRolesResult& WithRoles(const Aws::Map<Aws::String, Aws::String>& value) { SetRoles(value); return *this;}
105 
110  inline GetIdentityPoolRolesResult& WithRoles(Aws::Map<Aws::String, Aws::String>&& value) { SetRoles(value); return *this;}
111 
116  inline GetIdentityPoolRolesResult& AddRoles(const Aws::String& key, const Aws::String& value) { m_roles[key] = value; return *this; }
117 
122  inline GetIdentityPoolRolesResult& AddRoles(Aws::String&& key, const Aws::String& value) { m_roles[key] = value; return *this; }
123 
128  inline GetIdentityPoolRolesResult& AddRoles(const Aws::String& key, Aws::String&& value) { m_roles[key] = value; return *this; }
129 
134  inline GetIdentityPoolRolesResult& AddRoles(Aws::String&& key, Aws::String&& value) { m_roles[key] = value; return *this; }
135 
140  inline GetIdentityPoolRolesResult& AddRoles(const char* key, Aws::String&& value) { m_roles[key] = value; return *this; }
141 
146  inline GetIdentityPoolRolesResult& AddRoles(Aws::String&& key, const char* value) { m_roles[key] = value; return *this; }
147 
152  inline GetIdentityPoolRolesResult& AddRoles(const char* key, const char* value) { m_roles[key] = value; return *this; }
153 
154  private:
155  Aws::String m_identityPoolId;
157  };
158 
159 } // namespace Model
160 } // namespace CognitoIdentity
161 } // namespace Aws
GetIdentityPoolRolesResult & AddRoles(const Aws::String &key, Aws::String &&value)
GetIdentityPoolRolesResult & WithIdentityPoolId(const char *value)
GetIdentityPoolRolesResult & AddRoles(const Aws::String &key, const Aws::String &value)
GetIdentityPoolRolesResult & WithRoles(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
GetIdentityPoolRolesResult & AddRoles(Aws::String &&key, const Aws::String &value)
GetIdentityPoolRolesResult & AddRoles(const char *key, Aws::String &&value)
void SetRoles(const Aws::Map< Aws::String, Aws::String > &value)
void SetRoles(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetRoles() const
GetIdentityPoolRolesResult & AddRoles(Aws::String &&key, const char *value)
#define AWS_COGNITOIDENTITY_API
GetIdentityPoolRolesResult & AddRoles(const char *key, const char *value)
GetIdentityPoolRolesResult & AddRoles(Aws::String &&key, Aws::String &&value)
GetIdentityPoolRolesResult & WithRoles(Aws::Map< Aws::String, Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetIdentityPoolRolesResult & WithIdentityPoolId(Aws::String &&value)
GetIdentityPoolRolesResult & WithIdentityPoolId(const Aws::String &value)
JSON (JavaScript Object Notation).