/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoTTwinMaker { namespace Model { class GetEntityResult { public: AWS_IOTTWINMAKER_API GetEntityResult(); AWS_IOTTWINMAKER_API GetEntityResult(const Aws::AmazonWebServiceResult& result); AWS_IOTTWINMAKER_API GetEntityResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the entity.

*/ inline const Aws::String& GetEntityId() const{ return m_entityId; } /** *

The ID of the entity.

*/ inline void SetEntityId(const Aws::String& value) { m_entityId = value; } /** *

The ID of the entity.

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

The ID of the entity.

*/ inline void SetEntityId(const char* value) { m_entityId.assign(value); } /** *

The ID of the entity.

*/ inline GetEntityResult& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;} /** *

The ID of the entity.

*/ inline GetEntityResult& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;} /** *

The ID of the entity.

*/ inline GetEntityResult& WithEntityId(const char* value) { SetEntityId(value); return *this;} /** *

The name of the entity.

*/ inline const Aws::String& GetEntityName() const{ return m_entityName; } /** *

The name of the entity.

*/ inline void SetEntityName(const Aws::String& value) { m_entityName = value; } /** *

The name of the entity.

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

The name of the entity.

*/ inline void SetEntityName(const char* value) { m_entityName.assign(value); } /** *

The name of the entity.

*/ inline GetEntityResult& WithEntityName(const Aws::String& value) { SetEntityName(value); return *this;} /** *

The name of the entity.

*/ inline GetEntityResult& WithEntityName(Aws::String&& value) { SetEntityName(std::move(value)); return *this;} /** *

The name of the entity.

*/ inline GetEntityResult& WithEntityName(const char* value) { SetEntityName(value); return *this;} /** *

The ARN of the entity.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the entity.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The ARN of the entity.

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

The ARN of the entity.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The ARN of the entity.

*/ inline GetEntityResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the entity.

*/ inline GetEntityResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the entity.

*/ inline GetEntityResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The current status of the entity.

*/ inline const Status& GetStatus() const{ return m_status; } /** *

The current status of the entity.

*/ inline void SetStatus(const Status& value) { m_status = value; } /** *

The current status of the entity.

*/ inline void SetStatus(Status&& value) { m_status = std::move(value); } /** *

The current status of the entity.

*/ inline GetEntityResult& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *

The current status of the entity.

*/ inline GetEntityResult& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} /** *

The ID of the workspace.

*/ inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } /** *

The ID of the workspace.

*/ inline void SetWorkspaceId(const Aws::String& value) { m_workspaceId = value; } /** *

The ID of the workspace.

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

The ID of the workspace.

*/ inline void SetWorkspaceId(const char* value) { m_workspaceId.assign(value); } /** *

The ID of the workspace.

*/ inline GetEntityResult& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The ID of the workspace.

*/ inline GetEntityResult& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} /** *

The ID of the workspace.

*/ inline GetEntityResult& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} /** *

The description of the entity.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the entity.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description of the entity.

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

The description of the entity.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description of the entity.

*/ inline GetEntityResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the entity.

*/ inline GetEntityResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the entity.

*/ inline GetEntityResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

An object that maps strings to the components in the entity. Each string in * the mapping must be unique to this object.

*/ inline const Aws::Map& GetComponents() const{ return m_components; } /** *

An object that maps strings to the components in the entity. Each string in * the mapping must be unique to this object.

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

An object that maps strings to the components in the entity. Each string in * the mapping must be unique to this object.

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

An object that maps strings to the components in the entity. Each string in * the mapping must be unique to this object.

*/ inline GetEntityResult& WithComponents(const Aws::Map& value) { SetComponents(value); return *this;} /** *

An object that maps strings to the components in the entity. Each string in * the mapping must be unique to this object.

*/ inline GetEntityResult& WithComponents(Aws::Map&& value) { SetComponents(std::move(value)); return *this;} /** *

An object that maps strings to the components in the entity. Each string in * the mapping must be unique to this object.

*/ inline GetEntityResult& AddComponents(const Aws::String& key, const ComponentResponse& value) { m_components.emplace(key, value); return *this; } /** *

An object that maps strings to the components in the entity. Each string in * the mapping must be unique to this object.

*/ inline GetEntityResult& AddComponents(Aws::String&& key, const ComponentResponse& value) { m_components.emplace(std::move(key), value); return *this; } /** *

An object that maps strings to the components in the entity. Each string in * the mapping must be unique to this object.

*/ inline GetEntityResult& AddComponents(const Aws::String& key, ComponentResponse&& value) { m_components.emplace(key, std::move(value)); return *this; } /** *

An object that maps strings to the components in the entity. Each string in * the mapping must be unique to this object.

*/ inline GetEntityResult& AddComponents(Aws::String&& key, ComponentResponse&& value) { m_components.emplace(std::move(key), std::move(value)); return *this; } /** *

An object that maps strings to the components in the entity. Each string in * the mapping must be unique to this object.

*/ inline GetEntityResult& AddComponents(const char* key, ComponentResponse&& value) { m_components.emplace(key, std::move(value)); return *this; } /** *

An object that maps strings to the components in the entity. Each string in * the mapping must be unique to this object.

*/ inline GetEntityResult& AddComponents(const char* key, const ComponentResponse& value) { m_components.emplace(key, value); return *this; } /** *

The ID of the parent entity for this entity.

*/ inline const Aws::String& GetParentEntityId() const{ return m_parentEntityId; } /** *

The ID of the parent entity for this entity.

*/ inline void SetParentEntityId(const Aws::String& value) { m_parentEntityId = value; } /** *

The ID of the parent entity for this entity.

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

The ID of the parent entity for this entity.

*/ inline void SetParentEntityId(const char* value) { m_parentEntityId.assign(value); } /** *

The ID of the parent entity for this entity.

*/ inline GetEntityResult& WithParentEntityId(const Aws::String& value) { SetParentEntityId(value); return *this;} /** *

The ID of the parent entity for this entity.

*/ inline GetEntityResult& WithParentEntityId(Aws::String&& value) { SetParentEntityId(std::move(value)); return *this;} /** *

The ID of the parent entity for this entity.

*/ inline GetEntityResult& WithParentEntityId(const char* value) { SetParentEntityId(value); return *this;} /** *

A Boolean value that specifies whether the entity has associated child * entities.

*/ inline bool GetHasChildEntities() const{ return m_hasChildEntities; } /** *

A Boolean value that specifies whether the entity has associated child * entities.

*/ inline void SetHasChildEntities(bool value) { m_hasChildEntities = value; } /** *

A Boolean value that specifies whether the entity has associated child * entities.

*/ inline GetEntityResult& WithHasChildEntities(bool value) { SetHasChildEntities(value); return *this;} /** *

The date and time when the entity was created.

*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *

The date and time when the entity was created.

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

The date and time when the entity was created.

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

The date and time when the entity was created.

*/ inline GetEntityResult& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *

The date and time when the entity was created.

*/ inline GetEntityResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *

The date and time when the entity was last updated.

*/ inline const Aws::Utils::DateTime& GetUpdateDateTime() const{ return m_updateDateTime; } /** *

The date and time when the entity was last updated.

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

The date and time when the entity was last updated.

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

The date and time when the entity was last updated.

*/ inline GetEntityResult& WithUpdateDateTime(const Aws::Utils::DateTime& value) { SetUpdateDateTime(value); return *this;} /** *

The date and time when the entity was last updated.

*/ inline GetEntityResult& WithUpdateDateTime(Aws::Utils::DateTime&& value) { SetUpdateDateTime(std::move(value)); return *this;} /** *

The syncSource of the sync job, if this entity was created by a sync job.

*/ inline const Aws::String& GetSyncSource() const{ return m_syncSource; } /** *

The syncSource of the sync job, if this entity was created by a sync job.

*/ inline void SetSyncSource(const Aws::String& value) { m_syncSource = value; } /** *

The syncSource of the sync job, if this entity was created by a sync job.

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

The syncSource of the sync job, if this entity was created by a sync job.

*/ inline void SetSyncSource(const char* value) { m_syncSource.assign(value); } /** *

The syncSource of the sync job, if this entity was created by a sync job.

*/ inline GetEntityResult& WithSyncSource(const Aws::String& value) { SetSyncSource(value); return *this;} /** *

The syncSource of the sync job, if this entity was created by a sync job.

*/ inline GetEntityResult& WithSyncSource(Aws::String&& value) { SetSyncSource(std::move(value)); return *this;} /** *

The syncSource of the sync job, if this entity was created by a sync job.

*/ inline GetEntityResult& WithSyncSource(const char* value) { SetSyncSource(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 GetEntityResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetEntityResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetEntityResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_entityId; Aws::String m_entityName; Aws::String m_arn; Status m_status; Aws::String m_workspaceId; Aws::String m_description; Aws::Map m_components; Aws::String m_parentEntityId; bool m_hasChildEntities; Aws::Utils::DateTime m_creationDateTime; Aws::Utils::DateTime m_updateDateTime; Aws::String m_syncSource; Aws::String m_requestId; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws