/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTSiteWise { namespace Model { /** *

Describes an asset hierarchy that contains a hierarchy's name, ID, and child * asset model ID that specifies the type of asset that can be in this * hierarchy.

See Also:

AWS * API Reference

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

The ID of the asset model hierarchy. This ID is a * hierarchyId.

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

The ID of the asset model hierarchy. This ID is a * hierarchyId.

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

The ID of the asset model hierarchy. This ID is a * hierarchyId.

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

The ID of the asset model hierarchy. This ID is a * hierarchyId.

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

The ID of the asset model hierarchy. This ID is a * hierarchyId.

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

The ID of the asset model hierarchy. This ID is a * hierarchyId.

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

The ID of the asset model hierarchy. This ID is a * hierarchyId.

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

The ID of the asset model hierarchy. This ID is a * hierarchyId.

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

The name of the asset model hierarchy that you specify by using the CreateAssetModel * or UpdateAssetModel * API operation.

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

The name of the asset model hierarchy that you specify by using the CreateAssetModel * or UpdateAssetModel * API operation.

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

The name of the asset model hierarchy that you specify by using the CreateAssetModel * or UpdateAssetModel * API operation.

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

The name of the asset model hierarchy that you specify by using the CreateAssetModel * or UpdateAssetModel * API operation.

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

The name of the asset model hierarchy that you specify by using the CreateAssetModel * or UpdateAssetModel * API operation.

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

The name of the asset model hierarchy that you specify by using the CreateAssetModel * or UpdateAssetModel * API operation.

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

The name of the asset model hierarchy that you specify by using the CreateAssetModel * or UpdateAssetModel * API operation.

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

The name of the asset model hierarchy that you specify by using the CreateAssetModel * or UpdateAssetModel * API operation.

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

The ID of the asset model. All assets in this hierarchy must be instances of * the childAssetModelId asset model.

*/ inline const Aws::String& GetChildAssetModelId() const{ return m_childAssetModelId; } /** *

The ID of the asset model. All assets in this hierarchy must be instances of * the childAssetModelId asset model.

*/ inline bool ChildAssetModelIdHasBeenSet() const { return m_childAssetModelIdHasBeenSet; } /** *

The ID of the asset model. All assets in this hierarchy must be instances of * the childAssetModelId asset model.

*/ inline void SetChildAssetModelId(const Aws::String& value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId = value; } /** *

The ID of the asset model. All assets in this hierarchy must be instances of * the childAssetModelId asset model.

*/ inline void SetChildAssetModelId(Aws::String&& value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId = std::move(value); } /** *

The ID of the asset model. All assets in this hierarchy must be instances of * the childAssetModelId asset model.

*/ inline void SetChildAssetModelId(const char* value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId.assign(value); } /** *

The ID of the asset model. All assets in this hierarchy must be instances of * the childAssetModelId asset model.

*/ inline AssetModelHierarchy& WithChildAssetModelId(const Aws::String& value) { SetChildAssetModelId(value); return *this;} /** *

The ID of the asset model. All assets in this hierarchy must be instances of * the childAssetModelId asset model.

*/ inline AssetModelHierarchy& WithChildAssetModelId(Aws::String&& value) { SetChildAssetModelId(std::move(value)); return *this;} /** *

The ID of the asset model. All assets in this hierarchy must be instances of * the childAssetModelId asset model.

*/ inline AssetModelHierarchy& WithChildAssetModelId(const char* value) { SetChildAssetModelId(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_childAssetModelId; bool m_childAssetModelIdHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws