AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
SetIdentityPoolRolesRequest.h
1
6#pragma once
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>
12
13#include <utility>
14
15namespace Aws {
16namespace CognitoIdentity {
17namespace Model {
18
26 public:
27 AWS_COGNITOIDENTITY_API SetIdentityPoolRolesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "SetIdentityPoolRoles"; }
34
35 AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override;
36
37 AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
44 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
45 template <typename IdentityPoolIdT = Aws::String>
46 void SetIdentityPoolId(IdentityPoolIdT&& value) {
47 m_identityPoolIdHasBeenSet = true;
48 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
49 }
50 template <typename IdentityPoolIdT = Aws::String>
52 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::Map<Aws::String, Aws::String>& GetRoles() const { return m_roles; }
64 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
65 template <typename RolesT = Aws::Map<Aws::String, Aws::String>>
66 void SetRoles(RolesT&& value) {
67 m_rolesHasBeenSet = true;
68 m_roles = std::forward<RolesT>(value);
69 }
70 template <typename RolesT = Aws::Map<Aws::String, Aws::String>>
72 SetRoles(std::forward<RolesT>(value));
73 return *this;
74 }
75 template <typename RolesKeyT = Aws::String, typename RolesValueT = Aws::String>
76 SetIdentityPoolRolesRequest& AddRoles(RolesKeyT&& key, RolesValueT&& value) {
77 m_rolesHasBeenSet = true;
78 m_roles.emplace(std::forward<RolesKeyT>(key), std::forward<RolesValueT>(value));
79 return *this;
80 }
82
84
91 inline const Aws::Map<Aws::String, RoleMapping>& GetRoleMappings() const { return m_roleMappings; }
92 inline bool RoleMappingsHasBeenSet() const { return m_roleMappingsHasBeenSet; }
93 template <typename RoleMappingsT = Aws::Map<Aws::String, RoleMapping>>
94 void SetRoleMappings(RoleMappingsT&& value) {
95 m_roleMappingsHasBeenSet = true;
96 m_roleMappings = std::forward<RoleMappingsT>(value);
97 }
98 template <typename RoleMappingsT = Aws::Map<Aws::String, RoleMapping>>
100 SetRoleMappings(std::forward<RoleMappingsT>(value));
101 return *this;
102 }
103 template <typename RoleMappingsKeyT = Aws::String, typename RoleMappingsValueT = RoleMapping>
104 SetIdentityPoolRolesRequest& AddRoleMappings(RoleMappingsKeyT&& key, RoleMappingsValueT&& value) {
105 m_roleMappingsHasBeenSet = true;
106 m_roleMappings.emplace(std::forward<RoleMappingsKeyT>(key), std::forward<RoleMappingsValueT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_identityPoolId;
112 bool m_identityPoolIdHasBeenSet = false;
113
115 bool m_rolesHasBeenSet = false;
116
118 bool m_roleMappingsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CognitoIdentity
123} // 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