AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SetIdentityPoolRolesRequest.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace CognitoIdentity
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_COGNITOIDENTITY_API SetIdentityPoolRolesRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "SetIdentityPoolRoles"; }
37
38 AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override;
39
40 AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
48 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
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>
52 SetIdentityPoolRolesRequest& WithIdentityPoolId(IdentityPoolIdT&& value) { SetIdentityPoolId(std::forward<IdentityPoolIdT>(value)); return *this;}
54
56
61 inline const Aws::Map<Aws::String, Aws::String>& GetRoles() const { return m_roles; }
62 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
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>>
66 SetIdentityPoolRolesRequest& WithRoles(RolesT&& value) { SetRoles(std::forward<RolesT>(value)); return *this;}
67 template<typename RolesKeyT = Aws::String, typename RolesValueT = Aws::String>
68 SetIdentityPoolRolesRequest& AddRoles(RolesKeyT&& key, RolesValueT&& value) {
69 m_rolesHasBeenSet = true; m_roles.emplace(std::forward<RolesKeyT>(key), std::forward<RolesValueT>(value)); return *this;
70 }
72
74
81 inline const Aws::Map<Aws::String, RoleMapping>& GetRoleMappings() const { return m_roleMappings; }
82 inline bool RoleMappingsHasBeenSet() const { return m_roleMappingsHasBeenSet; }
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>>
86 SetIdentityPoolRolesRequest& WithRoleMappings(RoleMappingsT&& value) { SetRoleMappings(std::forward<RoleMappingsT>(value)); return *this;}
87 template<typename RoleMappingsKeyT = Aws::String, typename RoleMappingsValueT = RoleMapping>
88 SetIdentityPoolRolesRequest& AddRoleMappings(RoleMappingsKeyT&& key, RoleMappingsValueT&& value) {
89 m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(std::forward<RoleMappingsKeyT>(key), std::forward<RoleMappingsValueT>(value)); return *this;
90 }
92 private:
93
94 Aws::String m_identityPoolId;
95 bool m_identityPoolIdHasBeenSet = false;
96
98 bool m_rolesHasBeenSet = false;
99
101 bool m_roleMappingsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CognitoIdentity
106} // namespace Aws
SetIdentityPoolRolesRequest & WithRoleMappings(RoleMappingsT &&value)
SetIdentityPoolRolesRequest & AddRoleMappings(RoleMappingsKeyT &&key, RoleMappingsValueT &&value)
const Aws::Map< Aws::String, RoleMapping > & GetRoleMappings() const
AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COGNITOIDENTITY_API SetIdentityPoolRolesRequest()=default
SetIdentityPoolRolesRequest & WithRoles(RolesT &&value)
SetIdentityPoolRolesRequest & AddRoles(RolesKeyT &&key, RolesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRoles() const
SetIdentityPoolRolesRequest & WithIdentityPoolId(IdentityPoolIdT &&value)
AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override
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