AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
50 inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
51 inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
52 inline SetIdentityPoolRolesRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
53 inline SetIdentityPoolRolesRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
54 inline SetIdentityPoolRolesRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
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 inline void SetRoles(const Aws::Map<Aws::String, Aws::String>& value) { m_rolesHasBeenSet = true; m_roles = value; }
66 inline void SetRoles(Aws::Map<Aws::String, Aws::String>&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); }
68 inline SetIdentityPoolRolesRequest& WithRoles(Aws::Map<Aws::String, Aws::String>&& value) { SetRoles(std::move(value)); return *this;}
69 inline SetIdentityPoolRolesRequest& AddRoles(const Aws::String& key, const Aws::String& value) { m_rolesHasBeenSet = true; m_roles.emplace(key, value); return *this; }
70 inline SetIdentityPoolRolesRequest& AddRoles(Aws::String&& key, const Aws::String& value) { m_rolesHasBeenSet = true; m_roles.emplace(std::move(key), value); return *this; }
71 inline SetIdentityPoolRolesRequest& AddRoles(const Aws::String& key, Aws::String&& value) { m_rolesHasBeenSet = true; m_roles.emplace(key, std::move(value)); return *this; }
72 inline SetIdentityPoolRolesRequest& AddRoles(Aws::String&& key, Aws::String&& value) { m_rolesHasBeenSet = true; m_roles.emplace(std::move(key), std::move(value)); return *this; }
73 inline SetIdentityPoolRolesRequest& AddRoles(const char* key, Aws::String&& value) { m_rolesHasBeenSet = true; m_roles.emplace(key, std::move(value)); return *this; }
74 inline SetIdentityPoolRolesRequest& AddRoles(Aws::String&& key, const char* value) { m_rolesHasBeenSet = true; m_roles.emplace(std::move(key), value); return *this; }
75 inline SetIdentityPoolRolesRequest& AddRoles(const char* key, const char* value) { m_rolesHasBeenSet = true; m_roles.emplace(key, value); return *this; }
77
79
86 inline const Aws::Map<Aws::String, RoleMapping>& GetRoleMappings() const{ return m_roleMappings; }
87 inline bool RoleMappingsHasBeenSet() const { return m_roleMappingsHasBeenSet; }
88 inline void SetRoleMappings(const Aws::Map<Aws::String, RoleMapping>& value) { m_roleMappingsHasBeenSet = true; m_roleMappings = value; }
89 inline void SetRoleMappings(Aws::Map<Aws::String, RoleMapping>&& value) { m_roleMappingsHasBeenSet = true; m_roleMappings = std::move(value); }
92 inline SetIdentityPoolRolesRequest& AddRoleMappings(const Aws::String& key, const RoleMapping& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(key, value); return *this; }
93 inline SetIdentityPoolRolesRequest& AddRoleMappings(Aws::String&& key, const RoleMapping& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(std::move(key), value); return *this; }
94 inline SetIdentityPoolRolesRequest& AddRoleMappings(const Aws::String& key, RoleMapping&& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(key, std::move(value)); return *this; }
95 inline SetIdentityPoolRolesRequest& AddRoleMappings(Aws::String&& key, RoleMapping&& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(std::move(key), std::move(value)); return *this; }
96 inline SetIdentityPoolRolesRequest& AddRoleMappings(const char* key, RoleMapping&& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(key, std::move(value)); return *this; }
97 inline SetIdentityPoolRolesRequest& AddRoleMappings(const char* key, const RoleMapping& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(key, value); return *this; }
99 private:
100
101 Aws::String m_identityPoolId;
102 bool m_identityPoolIdHasBeenSet = false;
103
105 bool m_rolesHasBeenSet = false;
106
108 bool m_roleMappingsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CognitoIdentity
113} // namespace Aws
SetIdentityPoolRolesRequest & AddRoles(const Aws::String &key, const Aws::String &value)
SetIdentityPoolRolesRequest & AddRoleMappings(Aws::String &&key, const RoleMapping &value)
void SetRoles(Aws::Map< Aws::String, Aws::String > &&value)
SetIdentityPoolRolesRequest & AddRoleMappings(const char *key, const RoleMapping &value)
SetIdentityPoolRolesRequest & WithRoleMappings(const Aws::Map< Aws::String, RoleMapping > &value)
SetIdentityPoolRolesRequest & WithIdentityPoolId(const Aws::String &value)
void SetRoleMappings(Aws::Map< Aws::String, RoleMapping > &&value)
SetIdentityPoolRolesRequest & AddRoles(Aws::String &&key, const Aws::String &value)
SetIdentityPoolRolesRequest & WithRoleMappings(Aws::Map< Aws::String, RoleMapping > &&value)
SetIdentityPoolRolesRequest & AddRoleMappings(Aws::String &&key, RoleMapping &&value)
const Aws::Map< Aws::String, RoleMapping > & GetRoleMappings() const
void SetRoles(const Aws::Map< Aws::String, Aws::String > &value)
AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SetIdentityPoolRolesRequest & AddRoleMappings(const char *key, RoleMapping &&value)
SetIdentityPoolRolesRequest & WithRoles(const Aws::Map< Aws::String, Aws::String > &value)
SetIdentityPoolRolesRequest & AddRoles(Aws::String &&key, Aws::String &&value)
SetIdentityPoolRolesRequest & AddRoles(const char *key, const char *value)
SetIdentityPoolRolesRequest & AddRoles(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetRoles() const
SetIdentityPoolRolesRequest & WithIdentityPoolId(const char *value)
SetIdentityPoolRolesRequest & AddRoles(Aws::String &&key, const char *value)
SetIdentityPoolRolesRequest & AddRoleMappings(const Aws::String &key, RoleMapping &&value)
void SetRoleMappings(const Aws::Map< Aws::String, RoleMapping > &value)
SetIdentityPoolRolesRequest & WithRoles(Aws::Map< Aws::String, Aws::String > &&value)
SetIdentityPoolRolesRequest & AddRoles(const char *key, Aws::String &&value)
AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override
SetIdentityPoolRolesRequest & WithIdentityPoolId(Aws::String &&value)
SetIdentityPoolRolesRequest & AddRoleMappings(const Aws::String &key, const RoleMapping &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