AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GetIdentityPoolRolesResult.h
1
6#pragma once
7#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
8#include <aws/cognito-identity/model/RoleMapping.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CognitoIdentity {
24namespace Model {
32 public:
33 AWS_COGNITOIDENTITY_API GetIdentityPoolRolesResult() = default;
36
38
41 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
42 template <typename IdentityPoolIdT = Aws::String>
43 void SetIdentityPoolId(IdentityPoolIdT&& value) {
44 m_identityPoolIdHasBeenSet = true;
45 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
46 }
47 template <typename IdentityPoolIdT = Aws::String>
49 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Map<Aws::String, Aws::String>& GetRoles() const { return m_roles; }
60 template <typename RolesT = Aws::Map<Aws::String, Aws::String>>
61 void SetRoles(RolesT&& value) {
62 m_rolesHasBeenSet = true;
63 m_roles = std::forward<RolesT>(value);
64 }
65 template <typename RolesT = Aws::Map<Aws::String, Aws::String>>
67 SetRoles(std::forward<RolesT>(value));
68 return *this;
69 }
70 template <typename RolesKeyT = Aws::String, typename RolesValueT = Aws::String>
71 GetIdentityPoolRolesResult& AddRoles(RolesKeyT&& key, RolesValueT&& value) {
72 m_rolesHasBeenSet = true;
73 m_roles.emplace(std::forward<RolesKeyT>(key), std::forward<RolesValueT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::Map<Aws::String, RoleMapping>& GetRoleMappings() const { return m_roleMappings; }
86 template <typename RoleMappingsT = Aws::Map<Aws::String, RoleMapping>>
87 void SetRoleMappings(RoleMappingsT&& value) {
88 m_roleMappingsHasBeenSet = true;
89 m_roleMappings = std::forward<RoleMappingsT>(value);
90 }
91 template <typename RoleMappingsT = Aws::Map<Aws::String, RoleMapping>>
93 SetRoleMappings(std::forward<RoleMappingsT>(value));
94 return *this;
95 }
96 template <typename RoleMappingsKeyT = Aws::String, typename RoleMappingsValueT = RoleMapping>
97 GetIdentityPoolRolesResult& AddRoleMappings(RoleMappingsKeyT&& key, RoleMappingsValueT&& value) {
98 m_roleMappingsHasBeenSet = true;
99 m_roleMappings.emplace(std::forward<RoleMappingsKeyT>(key), std::forward<RoleMappingsValueT>(value));
100 return *this;
101 }
103
105
106 inline const Aws::String& GetRequestId() const { return m_requestId; }
107 template <typename RequestIdT = Aws::String>
108 void SetRequestId(RequestIdT&& value) {
109 m_requestIdHasBeenSet = true;
110 m_requestId = std::forward<RequestIdT>(value);
111 }
112 template <typename RequestIdT = Aws::String>
114 SetRequestId(std::forward<RequestIdT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_identityPoolId;
120 bool m_identityPoolIdHasBeenSet = false;
121
123 bool m_rolesHasBeenSet = false;
124
126 bool m_roleMappingsHasBeenSet = false;
127
128 Aws::String m_requestId;
129 bool m_requestIdHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace CognitoIdentity
134} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetRoles() const
GetIdentityPoolRolesResult & AddRoles(RolesKeyT &&key, RolesValueT &&value)
GetIdentityPoolRolesResult & AddRoleMappings(RoleMappingsKeyT &&key, RoleMappingsValueT &&value)
GetIdentityPoolRolesResult & WithRoleMappings(RoleMappingsT &&value)
AWS_COGNITOIDENTITY_API GetIdentityPoolRolesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetIdentityPoolRolesResult & WithRequestId(RequestIdT &&value)
GetIdentityPoolRolesResult & WithRoles(RolesT &&value)
AWS_COGNITOIDENTITY_API GetIdentityPoolRolesResult()=default
const Aws::Map< Aws::String, RoleMapping > & GetRoleMappings() const
GetIdentityPoolRolesResult & WithIdentityPoolId(IdentityPoolIdT &&value)
AWS_COGNITOIDENTITY_API GetIdentityPoolRolesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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