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

An object that contains information about an entity.

See Also:

* AWS * API Reference

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

The ID of the entity.

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

The ID of the entity.

*/ inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; } /** *

The ID of the entity.

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

The ID of the entity.

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

The ID of the entity.

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

The ID of the entity.

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

The ID of the entity.

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

The ID of the entity.

*/ inline EntitySummary& 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 bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; } /** *

The name of the entity.

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

The name of the entity.

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

The name of the entity.

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

The name of the entity.

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

The name of the entity.

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

The name of the entity.

*/ inline EntitySummary& 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 bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the entity.

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

The ARN of the entity.

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

The ARN of the entity.

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

The ARN of the entity.

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

The ARN of the entity.

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

The ARN of the entity.

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

The ID of the parent entity.

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

The ID of the parent entity.

*/ inline bool ParentEntityIdHasBeenSet() const { return m_parentEntityIdHasBeenSet; } /** *

The ID of the parent entity.

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

The ID of the parent entity.

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

The ID of the parent entity.

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

The ID of the parent entity.

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

The ID of the parent entity.

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

The ID of the parent entity.

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

The current status of the entity.

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

The current status of the entity.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the entity.

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

The current status of the entity.

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

The current status of the entity.

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

The current status of the entity.

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

The description of the entity.

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

The description of the entity.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the entity.

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

The description of the entity.

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

The description of the entity.

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

The description of the entity.

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

The description of the entity.

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

The description of the entity.

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

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

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

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

*/ inline bool HasChildEntitiesHasBeenSet() const { return m_hasChildEntitiesHasBeenSet; } /** *

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

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

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

*/ inline EntitySummary& 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 bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } /** *

The date and time when the entity was created.

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

The date and time when the entity was created.

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

The date and time when the entity was created.

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

The date and time when the entity was created.

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

The last date and time when the entity was updated.

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

The last date and time when the entity was updated.

*/ inline bool UpdateDateTimeHasBeenSet() const { return m_updateDateTimeHasBeenSet; } /** *

The last date and time when the entity was updated.

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

The last date and time when the entity was updated.

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

The last date and time when the entity was updated.

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

The last date and time when the entity was updated.

*/ inline EntitySummary& WithUpdateDateTime(Aws::Utils::DateTime&& value) { SetUpdateDateTime(std::move(value)); return *this;} private: Aws::String m_entityId; bool m_entityIdHasBeenSet = false; Aws::String m_entityName; bool m_entityNameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_parentEntityId; bool m_parentEntityIdHasBeenSet = false; Status m_status; bool m_statusHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; bool m_hasChildEntities; bool m_hasChildEntitiesHasBeenSet = false; Aws::Utils::DateTime m_creationDateTime; bool m_creationDateTimeHasBeenSet = false; Aws::Utils::DateTime m_updateDateTime; bool m_updateDateTimeHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws