AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetIdentityPoolRolesResult.h
1
6#pragma once
7#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/cognito-identity/model/RoleMapping.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CognitoIdentity
26{
27namespace Model
28{
36 {
37 public:
38 AWS_COGNITOIDENTITY_API GetIdentityPoolRolesResult();
41
42
44
47 inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
48 inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolId = value; }
49 inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolId = std::move(value); }
50 inline void SetIdentityPoolId(const char* value) { m_identityPoolId.assign(value); }
51 inline GetIdentityPoolRolesResult& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
52 inline GetIdentityPoolRolesResult& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
53 inline GetIdentityPoolRolesResult& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
55
57
61 inline const Aws::Map<Aws::String, Aws::String>& GetRoles() const{ return m_roles; }
62 inline void SetRoles(const Aws::Map<Aws::String, Aws::String>& value) { m_roles = value; }
63 inline void SetRoles(Aws::Map<Aws::String, Aws::String>&& value) { m_roles = std::move(value); }
65 inline GetIdentityPoolRolesResult& WithRoles(Aws::Map<Aws::String, Aws::String>&& value) { SetRoles(std::move(value)); return *this;}
66 inline GetIdentityPoolRolesResult& AddRoles(const Aws::String& key, const Aws::String& value) { m_roles.emplace(key, value); return *this; }
67 inline GetIdentityPoolRolesResult& AddRoles(Aws::String&& key, const Aws::String& value) { m_roles.emplace(std::move(key), value); return *this; }
68 inline GetIdentityPoolRolesResult& AddRoles(const Aws::String& key, Aws::String&& value) { m_roles.emplace(key, std::move(value)); return *this; }
69 inline GetIdentityPoolRolesResult& AddRoles(Aws::String&& key, Aws::String&& value) { m_roles.emplace(std::move(key), std::move(value)); return *this; }
70 inline GetIdentityPoolRolesResult& AddRoles(const char* key, Aws::String&& value) { m_roles.emplace(key, std::move(value)); return *this; }
71 inline GetIdentityPoolRolesResult& AddRoles(Aws::String&& key, const char* value) { m_roles.emplace(std::move(key), value); return *this; }
72 inline GetIdentityPoolRolesResult& AddRoles(const char* key, const char* value) { m_roles.emplace(key, value); return *this; }
74
76
82 inline const Aws::Map<Aws::String, RoleMapping>& GetRoleMappings() const{ return m_roleMappings; }
83 inline void SetRoleMappings(const Aws::Map<Aws::String, RoleMapping>& value) { m_roleMappings = value; }
84 inline void SetRoleMappings(Aws::Map<Aws::String, RoleMapping>&& value) { m_roleMappings = std::move(value); }
87 inline GetIdentityPoolRolesResult& AddRoleMappings(const Aws::String& key, const RoleMapping& value) { m_roleMappings.emplace(key, value); return *this; }
88 inline GetIdentityPoolRolesResult& AddRoleMappings(Aws::String&& key, const RoleMapping& value) { m_roleMappings.emplace(std::move(key), value); return *this; }
89 inline GetIdentityPoolRolesResult& AddRoleMappings(const Aws::String& key, RoleMapping&& value) { m_roleMappings.emplace(key, std::move(value)); return *this; }
90 inline GetIdentityPoolRolesResult& AddRoleMappings(Aws::String&& key, RoleMapping&& value) { m_roleMappings.emplace(std::move(key), std::move(value)); return *this; }
91 inline GetIdentityPoolRolesResult& AddRoleMappings(const char* key, RoleMapping&& value) { m_roleMappings.emplace(key, std::move(value)); return *this; }
92 inline GetIdentityPoolRolesResult& AddRoleMappings(const char* key, const RoleMapping& value) { m_roleMappings.emplace(key, value); return *this; }
94
96
97 inline const Aws::String& GetRequestId() const{ return m_requestId; }
98 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
99 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
100 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
101 inline GetIdentityPoolRolesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
102 inline GetIdentityPoolRolesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
103 inline GetIdentityPoolRolesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
105 private:
106
107 Aws::String m_identityPoolId;
108
110
112
113 Aws::String m_requestId;
114 };
115
116} // namespace Model
117} // namespace CognitoIdentity
118} // namespace Aws
GetIdentityPoolRolesResult & WithIdentityPoolId(const char *value)
GetIdentityPoolRolesResult & AddRoleMappings(Aws::String &&key, RoleMapping &&value)
const Aws::Map< Aws::String, Aws::String > & GetRoles() const
GetIdentityPoolRolesResult & WithRequestId(Aws::String &&value)
GetIdentityPoolRolesResult & AddRoles(const char *key, Aws::String &&value)
GetIdentityPoolRolesResult & WithRequestId(const Aws::String &value)
GetIdentityPoolRolesResult & WithIdentityPoolId(const Aws::String &value)
GetIdentityPoolRolesResult & WithRoleMappings(const Aws::Map< Aws::String, RoleMapping > &value)
void SetRoles(const Aws::Map< Aws::String, Aws::String > &value)
GetIdentityPoolRolesResult & WithRoleMappings(Aws::Map< Aws::String, RoleMapping > &&value)
GetIdentityPoolRolesResult & AddRoleMappings(const Aws::String &key, RoleMapping &&value)
AWS_COGNITOIDENTITY_API GetIdentityPoolRolesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRoleMappings(Aws::Map< Aws::String, RoleMapping > &&value)
GetIdentityPoolRolesResult & AddRoleMappings(const char *key, const RoleMapping &value)
GetIdentityPoolRolesResult & AddRoleMappings(const char *key, RoleMapping &&value)
GetIdentityPoolRolesResult & AddRoles(const Aws::String &key, Aws::String &&value)
GetIdentityPoolRolesResult & AddRoles(const char *key, const char *value)
GetIdentityPoolRolesResult & AddRoles(Aws::String &&key, const Aws::String &value)
GetIdentityPoolRolesResult & AddRoleMappings(const Aws::String &key, const RoleMapping &value)
void SetRoles(Aws::Map< Aws::String, Aws::String > &&value)
GetIdentityPoolRolesResult & AddRoles(const Aws::String &key, const Aws::String &value)
GetIdentityPoolRolesResult & WithRoles(Aws::Map< Aws::String, Aws::String > &&value)
GetIdentityPoolRolesResult & WithRequestId(const char *value)
const Aws::Map< Aws::String, RoleMapping > & GetRoleMappings() const
GetIdentityPoolRolesResult & WithIdentityPoolId(Aws::String &&value)
GetIdentityPoolRolesResult & WithRoles(const Aws::Map< Aws::String, Aws::String > &value)
void SetRoleMappings(const Aws::Map< Aws::String, RoleMapping > &value)
GetIdentityPoolRolesResult & AddRoleMappings(Aws::String &&key, const RoleMapping &value)
AWS_COGNITOIDENTITY_API GetIdentityPoolRolesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetIdentityPoolRolesResult & AddRoles(Aws::String &&key, Aws::String &&value)
GetIdentityPoolRolesResult & AddRoles(Aws::String &&key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue