/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Input to the GetOpenIdTokenForDeveloperIdentity
* 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 GetOpenIdTokenForDeveloperIdentityRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;} /** *An identity pool ID in the format REGION:GUID.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;} /** *An identity pool ID in the format REGION:GUID.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;} /** *A unique identifier in the format REGION:GUID.
*/ inline const Aws::String& GetIdentityId() const{ return m_identityId; } /** *A unique identifier in the format REGION:GUID.
*/ inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; } /** *A unique identifier in the format REGION:GUID.
*/ inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; } /** *A unique identifier in the format REGION:GUID.
*/ inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = std::move(value); } /** *A unique identifier in the format REGION:GUID.
*/ inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); } /** *A unique identifier in the format REGION:GUID.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;} /** *A unique identifier in the format REGION:GUID.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;} /** *A unique identifier in the format REGION:GUID.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;} /** *A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
A set of optional name-value pairs that map provider names to provider
* tokens. Each name-value pair represents a user from a public provider or
* developer provider. If the user is from a developer provider, the name-value
* pair will follow the syntax "developer_provider_name":
* "developer_user_identifier"
. The developer provider is the "domain" by
* which Cognito will refer to your users; you provided this domain while
* creating/updating the identity pool. The developer user identifier is an
* identifier from your backend that uniquely identifies a user. When you create an
* identity pool, you can specify the supported logins.
Use this operation to configure attribute mappings for custom providers.
*/ inline const Aws::MapUse this operation to configure attribute mappings for custom providers.
*/ inline bool PrincipalTagsHasBeenSet() const { return m_principalTagsHasBeenSet; } /** *Use this operation to configure attribute mappings for custom providers.
*/ inline void SetPrincipalTags(const Aws::MapUse this operation to configure attribute mappings for custom providers.
*/ inline void SetPrincipalTags(Aws::MapUse this operation to configure attribute mappings for custom providers.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& WithPrincipalTags(const Aws::MapUse this operation to configure attribute mappings for custom providers.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& WithPrincipalTags(Aws::MapUse this operation to configure attribute mappings for custom providers.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& AddPrincipalTags(const Aws::String& key, const Aws::String& value) { m_principalTagsHasBeenSet = true; m_principalTags.emplace(key, value); return *this; } /** *Use this operation to configure attribute mappings for custom providers.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& AddPrincipalTags(Aws::String&& key, const Aws::String& value) { m_principalTagsHasBeenSet = true; m_principalTags.emplace(std::move(key), value); return *this; } /** *Use this operation to configure attribute mappings for custom providers.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& AddPrincipalTags(const Aws::String& key, Aws::String&& value) { m_principalTagsHasBeenSet = true; m_principalTags.emplace(key, std::move(value)); return *this; } /** *Use this operation to configure attribute mappings for custom providers.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& AddPrincipalTags(Aws::String&& key, Aws::String&& value) { m_principalTagsHasBeenSet = true; m_principalTags.emplace(std::move(key), std::move(value)); return *this; } /** *Use this operation to configure attribute mappings for custom providers.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& AddPrincipalTags(const char* key, Aws::String&& value) { m_principalTagsHasBeenSet = true; m_principalTags.emplace(key, std::move(value)); return *this; } /** *Use this operation to configure attribute mappings for custom providers.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& AddPrincipalTags(Aws::String&& key, const char* value) { m_principalTagsHasBeenSet = true; m_principalTags.emplace(std::move(key), value); return *this; } /** *Use this operation to configure attribute mappings for custom providers.
*/ inline GetOpenIdTokenForDeveloperIdentityRequest& AddPrincipalTags(const char* key, const char* value) { m_principalTagsHasBeenSet = true; m_principalTags.emplace(key, value); return *this; } /** *The expiration time of the token, in seconds. You can specify a custom * expiration time for the token so that you can cache it. If you don't provide an * expiration time, the token is valid for 15 minutes. You can exchange the token * with Amazon STS for temporary AWS credentials, which are valid for a maximum of * one hour. The maximum token duration you can set is 24 hours. You should take * care in setting the expiration time for a token, as there are significant * security implications: an attacker could use a leaked token to access your AWS * resources for the token's duration.
Please provide for a small * grace period, usually no more than 5 minutes, to account for clock skew.
* */ inline long long GetTokenDuration() const{ return m_tokenDuration; } /** *The expiration time of the token, in seconds. You can specify a custom * expiration time for the token so that you can cache it. If you don't provide an * expiration time, the token is valid for 15 minutes. You can exchange the token * with Amazon STS for temporary AWS credentials, which are valid for a maximum of * one hour. The maximum token duration you can set is 24 hours. You should take * care in setting the expiration time for a token, as there are significant * security implications: an attacker could use a leaked token to access your AWS * resources for the token's duration.
Please provide for a small * grace period, usually no more than 5 minutes, to account for clock skew.
* */ inline bool TokenDurationHasBeenSet() const { return m_tokenDurationHasBeenSet; } /** *The expiration time of the token, in seconds. You can specify a custom * expiration time for the token so that you can cache it. If you don't provide an * expiration time, the token is valid for 15 minutes. You can exchange the token * with Amazon STS for temporary AWS credentials, which are valid for a maximum of * one hour. The maximum token duration you can set is 24 hours. You should take * care in setting the expiration time for a token, as there are significant * security implications: an attacker could use a leaked token to access your AWS * resources for the token's duration.
Please provide for a small * grace period, usually no more than 5 minutes, to account for clock skew.
* */ inline void SetTokenDuration(long long value) { m_tokenDurationHasBeenSet = true; m_tokenDuration = value; } /** *The expiration time of the token, in seconds. You can specify a custom * expiration time for the token so that you can cache it. If you don't provide an * expiration time, the token is valid for 15 minutes. You can exchange the token * with Amazon STS for temporary AWS credentials, which are valid for a maximum of * one hour. The maximum token duration you can set is 24 hours. You should take * care in setting the expiration time for a token, as there are significant * security implications: an attacker could use a leaked token to access your AWS * resources for the token's duration.
Please provide for a small * grace period, usually no more than 5 minutes, to account for clock skew.
* */ inline GetOpenIdTokenForDeveloperIdentityRequest& WithTokenDuration(long long value) { SetTokenDuration(value); return *this;} private: Aws::String m_identityPoolId; bool m_identityPoolIdHasBeenSet = false; Aws::String m_identityId; bool m_identityIdHasBeenSet = false; Aws::Map