/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CognitoIdentity { namespace Model { /** *

Input to the SetIdentityPoolRoles action.

See * Also:

AWS * API Reference

*/ class SetIdentityPoolRolesRequest : public CognitoIdentityRequest { public: AWS_COGNITOIDENTITY_API SetIdentityPoolRolesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SetIdentityPoolRoles"; } AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override; AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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::Map& GetRoles() const{ return m_roles; } /** *

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 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::Map& value) { m_rolesHasBeenSet = true; m_roles = value; } /** *

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(Aws::Map&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); } /** *

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& WithRoles(const Aws::Map& value) { SetRoles(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& WithRoles(Aws::Map&& value) { SetRoles(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 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::Map& GetRoleMappings() const{ return m_roleMappings; } /** *

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 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::Map& value) { m_roleMappingsHasBeenSet = true; m_roleMappings = value; } /** *

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(Aws::Map&& value) { m_roleMappingsHasBeenSet = true; m_roleMappings = std::move(value); } /** *

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& WithRoleMappings(const Aws::Map& value) { SetRoleMappings(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& WithRoleMappings(Aws::Map&& value) { SetRoleMappings(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 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 m_roles; bool m_rolesHasBeenSet = false; Aws::Map m_roleMappings; bool m_roleMappingsHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentity } // namespace Aws