/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Input to the SetIdentityPoolRoles
action.See
* Also:
AWS
* API Reference
An identity pool ID in the format REGION:GUID.
*/ inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; } /** *An identity pool ID in the format REGION:GUID.
*/ inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; } /** *An identity pool ID in the format REGION:GUID.
*/ inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; } /** *An identity pool ID in the format REGION:GUID.
*/ inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); } /** *An identity pool ID in the format REGION:GUID.
*/ inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); } /** *An identity pool ID in the format REGION:GUID.
*/ inline SetIdentityPoolRolesRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;} /** *An identity pool ID in the format REGION:GUID.
*/ inline SetIdentityPoolRolesRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;} /** *An identity pool ID in the format REGION:GUID.
*/ inline SetIdentityPoolRolesRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;} /** *The map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline const Aws::MapThe map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; } /** *The map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline void SetRoles(const Aws::MapThe map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline void SetRoles(Aws::MapThe map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline SetIdentityPoolRolesRequest& WithRoles(const Aws::MapThe map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline SetIdentityPoolRolesRequest& WithRoles(Aws::MapThe map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline SetIdentityPoolRolesRequest& AddRoles(const Aws::String& key, const Aws::String& value) { m_rolesHasBeenSet = true; m_roles.emplace(key, value); return *this; } /** *The map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline SetIdentityPoolRolesRequest& AddRoles(Aws::String&& key, const Aws::String& value) { m_rolesHasBeenSet = true; m_roles.emplace(std::move(key), value); return *this; } /** *The map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline SetIdentityPoolRolesRequest& AddRoles(const Aws::String& key, Aws::String&& value) { m_rolesHasBeenSet = true; m_roles.emplace(key, std::move(value)); return *this; } /** *The map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline SetIdentityPoolRolesRequest& AddRoles(Aws::String&& key, Aws::String&& value) { m_rolesHasBeenSet = true; m_roles.emplace(std::move(key), std::move(value)); return *this; } /** *The map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline SetIdentityPoolRolesRequest& AddRoles(const char* key, Aws::String&& value) { m_rolesHasBeenSet = true; m_roles.emplace(key, std::move(value)); return *this; } /** *The map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline SetIdentityPoolRolesRequest& AddRoles(Aws::String&& key, const char* value) { m_rolesHasBeenSet = true; m_roles.emplace(std::move(key), value); return *this; } /** *The map of roles associated with this pool. For a given role, the key will be * either "authenticated" or "unauthenticated" and the value will be the Role * ARN.
*/ inline SetIdentityPoolRolesRequest& AddRoles(const char* key, const char* value) { m_rolesHasBeenSet = true; m_roles.emplace(key, value); return *this; } /** *How users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline const Aws::MapHow users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline bool RoleMappingsHasBeenSet() const { return m_roleMappingsHasBeenSet; } /** *How users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline void SetRoleMappings(const Aws::MapHow users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline void SetRoleMappings(Aws::MapHow users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline SetIdentityPoolRolesRequest& WithRoleMappings(const Aws::MapHow users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline SetIdentityPoolRolesRequest& WithRoleMappings(Aws::MapHow users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline SetIdentityPoolRolesRequest& AddRoleMappings(const Aws::String& key, const RoleMapping& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(key, value); return *this; } /** *How users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline SetIdentityPoolRolesRequest& AddRoleMappings(Aws::String&& key, const RoleMapping& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(std::move(key), value); return *this; } /** *How users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline SetIdentityPoolRolesRequest& AddRoleMappings(const Aws::String& key, RoleMapping&& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(key, std::move(value)); return *this; } /** *How users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline SetIdentityPoolRolesRequest& AddRoleMappings(Aws::String&& key, RoleMapping&& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(std::move(key), std::move(value)); return *this; } /** *How users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline SetIdentityPoolRolesRequest& AddRoleMappings(const char* key, RoleMapping&& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(key, std::move(value)); return *this; } /** *How users for a specific identity provider are to mapped to roles. This is a * string to RoleMapping object map. The string identifies the identity * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".
*Up to 25 rules can be specified per identity provider.
*/ inline SetIdentityPoolRolesRequest& AddRoleMappings(const char* key, const RoleMapping& value) { m_roleMappingsHasBeenSet = true; m_roleMappings.emplace(key, value); return *this; } private: Aws::String m_identityPoolId; bool m_identityPoolIdHasBeenSet = false; Aws::Map