7#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
8#include <aws/cognito-identity/CognitoIdentityRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/cognito-identity/model/RoleMapping.h>
16namespace CognitoIdentity
49 template<
typename IdentityPoolIdT = Aws::String>
50 void SetIdentityPoolId(IdentityPoolIdT&& value) { m_identityPoolIdHasBeenSet =
true; m_identityPoolId = std::forward<IdentityPoolIdT>(value); }
51 template<
typename IdentityPoolIdT = Aws::String>
63 template<
typename RolesT = Aws::Map<Aws::String, Aws::String>>
64 void SetRoles(RolesT&& value) { m_rolesHasBeenSet =
true; m_roles = std::forward<RolesT>(value); }
65 template<
typename RolesT = Aws::Map<Aws::String, Aws::String>>
67 template<
typename RolesKeyT = Aws::String,
typename RolesValueT = Aws::String>
69 m_rolesHasBeenSet =
true; m_roles.emplace(std::forward<RolesKeyT>(key), std::forward<RolesValueT>(value));
return *
this;
83 template<
typename RoleMappingsT = Aws::Map<Aws::String, RoleMapping>>
84 void SetRoleMappings(RoleMappingsT&& value) { m_roleMappingsHasBeenSet =
true; m_roleMappings = std::forward<RoleMappingsT>(value); }
85 template<
typename RoleMappingsT = Aws::Map<Aws::String, RoleMapping>>
87 template<
typename RoleMappingsKeyT = Aws::String,
typename RoleMappingsValueT = RoleMapping>
89 m_roleMappingsHasBeenSet =
true; m_roleMappings.emplace(std::forward<RoleMappingsKeyT>(key), std::forward<RoleMappingsValueT>(value));
return *
this;
95 bool m_identityPoolIdHasBeenSet =
false;
98 bool m_rolesHasBeenSet =
false;
101 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