/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CognitoIdentity { namespace Model { /** *

Returned in response to a successful GetIdentityPoolRoles * operation.

See Also:

AWS * API Reference

*/ class GetIdentityPoolRolesResult { public: AWS_COGNITOIDENTITY_API GetIdentityPoolRolesResult(); AWS_COGNITOIDENTITY_API GetIdentityPoolRolesResult(const Aws::AmazonWebServiceResult& result); AWS_COGNITOIDENTITY_API GetIdentityPoolRolesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetIdentityPoolId(const Aws::String& value) { m_identityPoolId = value; } /** *

An identity pool ID in the format REGION:GUID.

*/ inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolId = std::move(value); } /** *

An identity pool ID in the format REGION:GUID.

*/ inline void SetIdentityPoolId(const char* value) { m_identityPoolId.assign(value); } /** *

An identity pool ID in the format REGION:GUID.

*/ inline GetIdentityPoolRolesResult& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;} /** *

An identity pool ID in the format REGION:GUID.

*/ inline GetIdentityPoolRolesResult& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;} /** *

An identity pool ID in the format REGION:GUID.

*/ inline GetIdentityPoolRolesResult& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;} /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline const Aws::Map& GetRoles() const{ return m_roles; } /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline void SetRoles(const Aws::Map& value) { m_roles = value; } /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline void SetRoles(Aws::Map&& value) { m_roles = std::move(value); } /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline GetIdentityPoolRolesResult& WithRoles(const Aws::Map& value) { SetRoles(value); return *this;} /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline GetIdentityPoolRolesResult& WithRoles(Aws::Map&& value) { SetRoles(std::move(value)); return *this;} /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline GetIdentityPoolRolesResult& AddRoles(const Aws::String& key, const Aws::String& value) { m_roles.emplace(key, value); return *this; } /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline GetIdentityPoolRolesResult& AddRoles(Aws::String&& key, const Aws::String& value) { m_roles.emplace(std::move(key), value); return *this; } /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline GetIdentityPoolRolesResult& AddRoles(const Aws::String& key, Aws::String&& value) { m_roles.emplace(key, std::move(value)); return *this; } /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline GetIdentityPoolRolesResult& AddRoles(Aws::String&& key, Aws::String&& value) { m_roles.emplace(std::move(key), std::move(value)); return *this; } /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline GetIdentityPoolRolesResult& AddRoles(const char* key, Aws::String&& value) { m_roles.emplace(key, std::move(value)); return *this; } /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline GetIdentityPoolRolesResult& AddRoles(Aws::String&& key, const char* value) { m_roles.emplace(std::move(key), value); return *this; } /** *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ inline GetIdentityPoolRolesResult& AddRoles(const char* key, const char* value) { 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".

*/ 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".

*/ inline void SetRoleMappings(const Aws::Map& value) { 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".

*/ inline void SetRoleMappings(Aws::Map&& value) { 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".

*/ inline GetIdentityPoolRolesResult& 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".

*/ inline GetIdentityPoolRolesResult& 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".

*/ inline GetIdentityPoolRolesResult& AddRoleMappings(const Aws::String& key, const RoleMapping& value) { 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".

*/ inline GetIdentityPoolRolesResult& AddRoleMappings(Aws::String&& key, const RoleMapping& value) { 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".

*/ inline GetIdentityPoolRolesResult& AddRoleMappings(const Aws::String& key, RoleMapping&& value) { 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".

*/ inline GetIdentityPoolRolesResult& AddRoleMappings(Aws::String&& key, RoleMapping&& value) { 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".

*/ inline GetIdentityPoolRolesResult& AddRoleMappings(const char* key, RoleMapping&& value) { 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".

*/ inline GetIdentityPoolRolesResult& AddRoleMappings(const char* key, const RoleMapping& value) { m_roleMappings.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetIdentityPoolRolesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetIdentityPoolRolesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetIdentityPoolRolesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_identityPoolId; Aws::Map m_roles; Aws::Map m_roleMappings; Aws::String m_requestId; }; } // namespace Model } // namespace CognitoIdentity } // namespace Aws