/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains an asset model hierarchy used in asset model creation. An asset
* model hierarchy determines the kind (or type) of asset that can belong to a
* hierarchy.See Also:
AWS
* API Reference
The name of the asset model hierarchy definition (as specified in the CreateAssetModel * or UpdateAssetModel * API operation).
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the asset model hierarchy definition (as specified in the CreateAssetModel * or UpdateAssetModel * API operation).
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the asset model hierarchy definition (as specified in 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 definition (as specified in 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 definition (as specified in 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 definition (as specified in the CreateAssetModel * or UpdateAssetModel * API operation).
*/ inline AssetModelHierarchyDefinition& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the asset model hierarchy definition (as specified in the CreateAssetModel * or UpdateAssetModel * API operation).
*/ inline AssetModelHierarchyDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the asset model hierarchy definition (as specified in the CreateAssetModel * or UpdateAssetModel * API operation).
*/ inline AssetModelHierarchyDefinition& WithName(const char* value) { SetName(value); return *this;} /** *The ID of an asset model for this hierarchy.
*/ inline const Aws::String& GetChildAssetModelId() const{ return m_childAssetModelId; } /** *The ID of an asset model for this hierarchy.
*/ inline bool ChildAssetModelIdHasBeenSet() const { return m_childAssetModelIdHasBeenSet; } /** *The ID of an asset model for this hierarchy.
*/ inline void SetChildAssetModelId(const Aws::String& value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId = value; } /** *The ID of an asset model for this hierarchy.
*/ inline void SetChildAssetModelId(Aws::String&& value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId = std::move(value); } /** *The ID of an asset model for this hierarchy.
*/ inline void SetChildAssetModelId(const char* value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId.assign(value); } /** *The ID of an asset model for this hierarchy.
*/ inline AssetModelHierarchyDefinition& WithChildAssetModelId(const Aws::String& value) { SetChildAssetModelId(value); return *this;} /** *The ID of an asset model for this hierarchy.
*/ inline AssetModelHierarchyDefinition& WithChildAssetModelId(Aws::String&& value) { SetChildAssetModelId(std::move(value)); return *this;} /** *The ID of an asset model for this hierarchy.
*/ inline AssetModelHierarchyDefinition& WithChildAssetModelId(const char* value) { SetChildAssetModelId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_childAssetModelId; bool m_childAssetModelIdHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws