/** * 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 { /** *

A description of the identity.

See Also:

AWS * API Reference

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

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

A unique identifier in the format REGION:GUID.

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

A unique identifier in the format REGION:GUID.

*/ inline void SetIdentityId(const char* value) { m_identityId.assign(value); } /** *

A unique identifier in the format REGION:GUID.

*/ inline DescribeIdentityResult& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;} /** *

A unique identifier in the format REGION:GUID.

*/ inline DescribeIdentityResult& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;} /** *

A unique identifier in the format REGION:GUID.

*/ inline DescribeIdentityResult& WithIdentityId(const char* value) { SetIdentityId(value); return *this;} /** *

The provider names.

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

The provider names.

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

The provider names.

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

The provider names.

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

The provider names.

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

The provider names.

*/ inline DescribeIdentityResult& AddLogins(const Aws::String& value) { m_logins.push_back(value); return *this; } /** *

The provider names.

*/ inline DescribeIdentityResult& AddLogins(Aws::String&& value) { m_logins.push_back(std::move(value)); return *this; } /** *

The provider names.

*/ inline DescribeIdentityResult& AddLogins(const char* value) { m_logins.push_back(value); return *this; } /** *

Date on which the identity was created.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

Date on which the identity was created.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; } /** *

Date on which the identity was created.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); } /** *

Date on which the identity was created.

*/ inline DescribeIdentityResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

Date on which the identity was created.

*/ inline DescribeIdentityResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

Date on which the identity was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

Date on which the identity was last modified.

*/ inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; } /** *

Date on which the identity was last modified.

*/ inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); } /** *

Date on which the identity was last modified.

*/ inline DescribeIdentityResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} /** *

Date on which the identity was last modified.

*/ inline DescribeIdentityResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} private: Aws::String m_identityId; Aws::Vector m_logins; Aws::Utils::DateTime m_creationDate; Aws::Utils::DateTime m_lastModifiedDate; }; } // namespace Model } // namespace CognitoIdentity } // namespace Aws