AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
41
42
44
47 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
48 template<typename IdentityPoolIdT = Aws::String>
49 void SetIdentityPoolId(IdentityPoolIdT&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::forward<IdentityPoolIdT>(value); }
50 template<typename IdentityPoolIdT = Aws::String>
51 GetIdentityPoolRolesResult& WithIdentityPoolId(IdentityPoolIdT&& value) { SetIdentityPoolId(std::forward<IdentityPoolIdT>(value)); return *this;}
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) { m_rolesHasBeenSet = true; m_roles = std::forward<RolesT>(value); }
62 template<typename RolesT = Aws::Map<Aws::String, Aws::String>>
63 GetIdentityPoolRolesResult& WithRoles(RolesT&& value) { SetRoles(std::forward<RolesT>(value)); return *this;}
64 template<typename RolesKeyT = Aws::String, typename RolesValueT = Aws::String>
65 GetIdentityPoolRolesResult& AddRoles(RolesKeyT&& key, RolesValueT&& value) {
66 m_rolesHasBeenSet = true; m_roles.emplace(std::forward<RolesKeyT>(key), std::forward<RolesValueT>(value)); return *this;
67 }
69
71
77 inline const Aws::Map<Aws::String, RoleMapping>& GetRoleMappings() const { return m_roleMappings; }
78 template<typename RoleMappingsT = Aws::Map<Aws::String, RoleMapping>>
79 void SetRoleMappings(RoleMappingsT&& value) { m_roleMappingsHasBeenSet = true; m_roleMappings = std::forward<RoleMappingsT>(value); }
80 template<typename RoleMappingsT = Aws::Map<Aws::String, RoleMapping>>
81 GetIdentityPoolRolesResult& WithRoleMappings(RoleMappingsT&& value) { SetRoleMappings(std::forward<RoleMappingsT>(value)); return *this;}
82 template<typename RoleMappingsKeyT = Aws::String, typename RoleMappingsValueT = RoleMapping>
83 GetIdentityPoolRolesResult& AddRoleMappings(RoleMappingsKeyT&& key, RoleMappingsValueT&& value) {
84 m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(std::forward<RoleMappingsKeyT>(key), std::forward<RoleMappingsValueT>(value)); return *this;
85 }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template<typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
93 template<typename RequestIdT = Aws::String>
94 GetIdentityPoolRolesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
96 private:
97
98 Aws::String m_identityPoolId;
99 bool m_identityPoolIdHasBeenSet = false;
100
102 bool m_rolesHasBeenSet = false;
103
105 bool m_roleMappingsHasBeenSet = false;
106
107 Aws::String m_requestId;
108 bool m_requestIdHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CognitoIdentity
113} // 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