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

Contains a summary of an asset.

See Also:

AWS * API Reference

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

The ID of the asset.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the asset.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the asset.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the asset.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the asset.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the asset.

*/ inline AssetSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the asset.

*/ inline AssetSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the asset.

*/ inline AssetSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

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

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

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

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

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

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

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

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

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

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

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

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

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

The name of the asset.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the asset.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the asset.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the asset.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the asset.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the asset.

*/ inline AssetSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the asset.

*/ inline AssetSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the asset.

*/ inline AssetSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The ID of the asset model used to create this asset.

*/ inline const Aws::String& GetAssetModelId() const{ return m_assetModelId; } /** *

The ID of the asset model used to create this asset.

*/ inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; } /** *

The ID of the asset model used to create this asset.

*/ inline void SetAssetModelId(const Aws::String& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = value; } /** *

The ID of the asset model used to create this asset.

*/ inline void SetAssetModelId(Aws::String&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::move(value); } /** *

The ID of the asset model used to create this asset.

*/ inline void SetAssetModelId(const char* value) { m_assetModelIdHasBeenSet = true; m_assetModelId.assign(value); } /** *

The ID of the asset model used to create this asset.

*/ inline AssetSummary& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;} /** *

The ID of the asset model used to create this asset.

*/ inline AssetSummary& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;} /** *

The ID of the asset model used to create this asset.

*/ inline AssetSummary& WithAssetModelId(const char* value) { SetAssetModelId(value); return *this;} /** *

The date the asset was created, in Unix epoch time.

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

The date the asset was created, in Unix epoch time.

*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

The date the asset was created, in Unix epoch time.

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

The date the asset was created, in Unix epoch time.

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

The date the asset was created, in Unix epoch time.

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

The date the asset was created, in Unix epoch time.

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

The date the asset was last updated, in Unix epoch time.

*/ inline const Aws::Utils::DateTime& GetLastUpdateDate() const{ return m_lastUpdateDate; } /** *

The date the asset was last updated, in Unix epoch time.

*/ inline bool LastUpdateDateHasBeenSet() const { return m_lastUpdateDateHasBeenSet; } /** *

The date the asset was last updated, in Unix epoch time.

*/ inline void SetLastUpdateDate(const Aws::Utils::DateTime& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = value; } /** *

The date the asset was last updated, in Unix epoch time.

*/ inline void SetLastUpdateDate(Aws::Utils::DateTime&& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = std::move(value); } /** *

The date the asset was last updated, in Unix epoch time.

*/ inline AssetSummary& WithLastUpdateDate(const Aws::Utils::DateTime& value) { SetLastUpdateDate(value); return *this;} /** *

The date the asset was last updated, in Unix epoch time.

*/ inline AssetSummary& WithLastUpdateDate(Aws::Utils::DateTime&& value) { SetLastUpdateDate(std::move(value)); return *this;} /** *

The current status of the asset.

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

The current status of the asset.

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

The current status of the asset.

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

The current status of the asset.

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

The current status of the asset.

*/ inline AssetSummary& WithStatus(const AssetStatus& value) { SetStatus(value); return *this;} /** *

The current status of the asset.

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

A list of asset hierarchies that each contain a hierarchyId. A * hierarchy specifies allowed parent/child asset relationships.

*/ inline const Aws::Vector& GetHierarchies() const{ return m_hierarchies; } /** *

A list of asset hierarchies that each contain a hierarchyId. A * hierarchy specifies allowed parent/child asset relationships.

*/ inline bool HierarchiesHasBeenSet() const { return m_hierarchiesHasBeenSet; } /** *

A list of asset hierarchies that each contain a hierarchyId. A * hierarchy specifies allowed parent/child asset relationships.

*/ inline void SetHierarchies(const Aws::Vector& value) { m_hierarchiesHasBeenSet = true; m_hierarchies = value; } /** *

A list of asset hierarchies that each contain a hierarchyId. A * hierarchy specifies allowed parent/child asset relationships.

*/ inline void SetHierarchies(Aws::Vector&& value) { m_hierarchiesHasBeenSet = true; m_hierarchies = std::move(value); } /** *

A list of asset hierarchies that each contain a hierarchyId. A * hierarchy specifies allowed parent/child asset relationships.

*/ inline AssetSummary& WithHierarchies(const Aws::Vector& value) { SetHierarchies(value); return *this;} /** *

A list of asset hierarchies that each contain a hierarchyId. A * hierarchy specifies allowed parent/child asset relationships.

*/ inline AssetSummary& WithHierarchies(Aws::Vector&& value) { SetHierarchies(std::move(value)); return *this;} /** *

A list of asset hierarchies that each contain a hierarchyId. A * hierarchy specifies allowed parent/child asset relationships.

*/ inline AssetSummary& AddHierarchies(const AssetHierarchy& value) { m_hierarchiesHasBeenSet = true; m_hierarchies.push_back(value); return *this; } /** *

A list of asset hierarchies that each contain a hierarchyId. A * hierarchy specifies allowed parent/child asset relationships.

*/ inline AssetSummary& AddHierarchies(AssetHierarchy&& value) { m_hierarchiesHasBeenSet = true; m_hierarchies.push_back(std::move(value)); return *this; } /** *

A description for the asset.

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

A description for the asset.

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

A description for the asset.

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

A description for the asset.

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

A description for the asset.

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

A description for the asset.

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

A description for the asset.

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

A description for the asset.

*/ inline AssetSummary& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_assetModelId; bool m_assetModelIdHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Utils::DateTime m_lastUpdateDate; bool m_lastUpdateDateHasBeenSet = false; AssetStatus m_status; bool m_statusHasBeenSet = false; Aws::Vector m_hierarchies; bool m_hierarchiesHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws