/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about a parent asset and a child asset that are related
* through an asset hierarchy.See Also:
AWS
* API Reference
The ID of the parent asset in this asset relationship.
*/ inline const Aws::String& GetParentAssetId() const{ return m_parentAssetId; } /** *The ID of the parent asset in this asset relationship.
*/ inline bool ParentAssetIdHasBeenSet() const { return m_parentAssetIdHasBeenSet; } /** *The ID of the parent asset in this asset relationship.
*/ inline void SetParentAssetId(const Aws::String& value) { m_parentAssetIdHasBeenSet = true; m_parentAssetId = value; } /** *The ID of the parent asset in this asset relationship.
*/ inline void SetParentAssetId(Aws::String&& value) { m_parentAssetIdHasBeenSet = true; m_parentAssetId = std::move(value); } /** *The ID of the parent asset in this asset relationship.
*/ inline void SetParentAssetId(const char* value) { m_parentAssetIdHasBeenSet = true; m_parentAssetId.assign(value); } /** *The ID of the parent asset in this asset relationship.
*/ inline AssetHierarchyInfo& WithParentAssetId(const Aws::String& value) { SetParentAssetId(value); return *this;} /** *The ID of the parent asset in this asset relationship.
*/ inline AssetHierarchyInfo& WithParentAssetId(Aws::String&& value) { SetParentAssetId(std::move(value)); return *this;} /** *The ID of the parent asset in this asset relationship.
*/ inline AssetHierarchyInfo& WithParentAssetId(const char* value) { SetParentAssetId(value); return *this;} /** *The ID of the child asset in this asset relationship.
*/ inline const Aws::String& GetChildAssetId() const{ return m_childAssetId; } /** *The ID of the child asset in this asset relationship.
*/ inline bool ChildAssetIdHasBeenSet() const { return m_childAssetIdHasBeenSet; } /** *The ID of the child asset in this asset relationship.
*/ inline void SetChildAssetId(const Aws::String& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = value; } /** *The ID of the child asset in this asset relationship.
*/ inline void SetChildAssetId(Aws::String&& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = std::move(value); } /** *The ID of the child asset in this asset relationship.
*/ inline void SetChildAssetId(const char* value) { m_childAssetIdHasBeenSet = true; m_childAssetId.assign(value); } /** *The ID of the child asset in this asset relationship.
*/ inline AssetHierarchyInfo& WithChildAssetId(const Aws::String& value) { SetChildAssetId(value); return *this;} /** *The ID of the child asset in this asset relationship.
*/ inline AssetHierarchyInfo& WithChildAssetId(Aws::String&& value) { SetChildAssetId(std::move(value)); return *this;} /** *The ID of the child asset in this asset relationship.
*/ inline AssetHierarchyInfo& WithChildAssetId(const char* value) { SetChildAssetId(value); return *this;} private: Aws::String m_parentAssetId; bool m_parentAssetIdHasBeenSet = false; Aws::String m_childAssetId; bool m_childAssetIdHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws