/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CognitoIdentity { namespace Model { /** *

A description of the identity.

See Also:

AWS * API Reference

*/ class IdentityDescription { public: AWS_COGNITOIDENTITY_API IdentityDescription(); AWS_COGNITOIDENTITY_API IdentityDescription(Aws::Utils::Json::JsonView jsonValue); AWS_COGNITOIDENTITY_API IdentityDescription& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COGNITOIDENTITY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 IdentityDescription& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;} /** *

A unique identifier in the format REGION:GUID.

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

A unique identifier in the format REGION:GUID.

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

The provider names.

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

The provider names.

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

The provider names.

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

The provider names.

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

The provider names.

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

The provider names.

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

The provider names.

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

The provider names.

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

The provider names.

*/ inline IdentityDescription& AddLogins(const char* value) { m_loginsHasBeenSet = true; 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 bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

Date on which the identity was created.

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

Date on which the identity was created.

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

Date on which the identity was created.

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

Date on which the identity was created.

*/ inline IdentityDescription& 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 bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *

Date on which the identity was last modified.

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

Date on which the identity was last modified.

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

Date on which the identity was last modified.

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

Date on which the identity was last modified.

*/ inline IdentityDescription& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } inline IdentityDescription& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline IdentityDescription& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline IdentityDescription& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_identityId; bool m_identityIdHasBeenSet = false; Aws::Vector m_logins; bool m_loginsHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentity } // namespace Aws