7#include <aws/cognito-identity/CognitoIdentityRequest.h>
8#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
9#include <aws/cognito-identity/model/RoleMapping.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
16namespace CognitoIdentity {
45 template <
typename IdentityPoolIdT = Aws::String>
47 m_identityPoolIdHasBeenSet =
true;
48 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
50 template <
typename IdentityPoolIdT = Aws::String>
65 template <
typename RolesT = Aws::Map<Aws::String, Aws::String>>
67 m_rolesHasBeenSet =
true;
68 m_roles = std::forward<RolesT>(value);
70 template <
typename RolesT = Aws::Map<Aws::String, Aws::String>>
72 SetRoles(std::forward<RolesT>(value));
75 template <
typename RolesKeyT = Aws::String,
typename RolesValueT = Aws::String>
77 m_rolesHasBeenSet =
true;
78 m_roles.emplace(std::forward<RolesKeyT>(key), std::forward<RolesValueT>(value));
93 template <
typename RoleMappingsT = Aws::Map<Aws::String, RoleMapping>>
95 m_roleMappingsHasBeenSet =
true;
96 m_roleMappings = std::forward<RoleMappingsT>(value);
98 template <
typename RoleMappingsT = Aws::Map<Aws::String, RoleMapping>>
103 template <
typename RoleMappingsKeyT = Aws::String,
typename RoleMappingsValueT = RoleMapping>
105 m_roleMappingsHasBeenSet =
true;
106 m_roleMappings.emplace(std::forward<RoleMappingsKeyT>(key), std::forward<RoleMappingsValueT>(value));
112 bool m_identityPoolIdHasBeenSet =
false;
115 bool m_rolesHasBeenSet =
false;
118 bool m_roleMappingsHasBeenSet =
false;
bool RoleMappingsHasBeenSet() const
SetIdentityPoolRolesRequest & WithRoleMappings(RoleMappingsT &&value)
SetIdentityPoolRolesRequest & AddRoleMappings(RoleMappingsKeyT &&key, RoleMappingsValueT &&value)
bool IdentityPoolIdHasBeenSet() const
const Aws::Map< Aws::String, RoleMapping > & GetRoleMappings() const
bool RolesHasBeenSet() const
AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRoleMappings(RoleMappingsT &&value)
AWS_COGNITOIDENTITY_API SetIdentityPoolRolesRequest()=default
SetIdentityPoolRolesRequest & WithRoles(RolesT &&value)
SetIdentityPoolRolesRequest & AddRoles(RolesKeyT &&key, RolesValueT &&value)
void SetIdentityPoolId(IdentityPoolIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRoles() const
virtual const char * GetServiceRequestName() const override
SetIdentityPoolRolesRequest & WithIdentityPoolId(IdentityPoolIdT &&value)
AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override
const Aws::String & GetIdentityPoolId() const
void SetRoles(RolesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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