/** * 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 { namespace CognitoIdentity { namespace Model { /** *

Input to the GetId action.

See Also:

AWS * API Reference

*/ class GetIdRequest : public CognitoIdentityRequest { public: AWS_COGNITOIDENTITY_API GetIdRequest(); // 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 "GetId"; } AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override; AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A standard AWS account ID (9+ digits).

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

A standard AWS account ID (9+ digits).

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

A standard AWS account ID (9+ digits).

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

A standard AWS account ID (9+ digits).

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

A standard AWS account ID (9+ digits).

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

A standard AWS account ID (9+ digits).

*/ inline GetIdRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

A standard AWS account ID (9+ digits).

*/ inline GetIdRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

A standard AWS account ID (9+ digits).

*/ inline GetIdRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

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 GetIdRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;} /** *

An identity pool ID in the format REGION:GUID.

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

An identity pool ID in the format REGION:GUID.

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

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline const Aws::Map& GetLogins() const{ return m_logins; } /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline bool LoginsHasBeenSet() const { return m_loginsHasBeenSet; } /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline void SetLogins(const Aws::Map& value) { m_loginsHasBeenSet = true; m_logins = value; } /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline void SetLogins(Aws::Map&& value) { m_loginsHasBeenSet = true; m_logins = std::move(value); } /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline GetIdRequest& WithLogins(const Aws::Map& value) { SetLogins(value); return *this;} /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline GetIdRequest& WithLogins(Aws::Map&& value) { SetLogins(std::move(value)); return *this;} /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline GetIdRequest& AddLogins(const Aws::String& key, const Aws::String& value) { m_loginsHasBeenSet = true; m_logins.emplace(key, value); return *this; } /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline GetIdRequest& AddLogins(Aws::String&& key, const Aws::String& value) { m_loginsHasBeenSet = true; m_logins.emplace(std::move(key), value); return *this; } /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline GetIdRequest& AddLogins(const Aws::String& key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins.emplace(key, std::move(value)); return *this; } /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline GetIdRequest& AddLogins(Aws::String&& key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins.emplace(std::move(key), std::move(value)); return *this; } /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline GetIdRequest& AddLogins(const char* key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins.emplace(key, std::move(value)); return *this; } /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline GetIdRequest& AddLogins(Aws::String&& key, const char* value) { m_loginsHasBeenSet = true; m_logins.emplace(std::move(key), value); return *this; } /** *

A set of optional name-value pairs that map provider names to provider * tokens. The available provider names for Logins are as follows:

*
  • Facebook: graph.facebook.com

  • Amazon * Cognito user pool: * cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, * for example, * cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

  • *
  • Google: accounts.google.com

  • Amazon: * www.amazon.com

  • Twitter: * api.twitter.com

  • Digits: * www.digits.com

*/ inline GetIdRequest& AddLogins(const char* key, const char* value) { m_loginsHasBeenSet = true; m_logins.emplace(key, value); return *this; } private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_identityPoolId; bool m_identityPoolIdHasBeenSet = false; Aws::Map m_logins; bool m_loginsHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentity } // namespace Aws