/** * 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 IoTSiteWise { namespace Model { /** */ class DisassociateAssetsRequest : public IoTSiteWiseRequest { public: AWS_IOTSITEWISE_API DisassociateAssetsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DisassociateAssets"; } AWS_IOTSITEWISE_API Aws::String SerializePayload() const override; /** *

The ID of the parent asset from which to disassociate the child asset.

*/ inline const Aws::String& GetAssetId() const{ return m_assetId; } /** *

The ID of the parent asset from which to disassociate the child asset.

*/ inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; } /** *

The ID of the parent asset from which to disassociate the child asset.

*/ inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; } /** *

The ID of the parent asset from which to disassociate the child asset.

*/ inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); } /** *

The ID of the parent asset from which to disassociate the child asset.

*/ inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); } /** *

The ID of the parent asset from which to disassociate the child asset.

*/ inline DisassociateAssetsRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;} /** *

The ID of the parent asset from which to disassociate the child asset.

*/ inline DisassociateAssetsRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;} /** *

The ID of the parent asset from which to disassociate the child asset.

*/ inline DisassociateAssetsRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;} /** *

The ID of a hierarchy in the parent asset's model. Hierarchies allow * different groupings of assets to be formed that all come from the same asset * model. You can use the hierarchy ID to identify the correct asset to * disassociate. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline const Aws::String& GetHierarchyId() const{ return m_hierarchyId; } /** *

The ID of a hierarchy in the parent asset's model. Hierarchies allow * different groupings of assets to be formed that all come from the same asset * model. You can use the hierarchy ID to identify the correct asset to * disassociate. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline bool HierarchyIdHasBeenSet() const { return m_hierarchyIdHasBeenSet; } /** *

The ID of a hierarchy in the parent asset's model. Hierarchies allow * different groupings of assets to be formed that all come from the same asset * model. You can use the hierarchy ID to identify the correct asset to * disassociate. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline void SetHierarchyId(const Aws::String& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = value; } /** *

The ID of a hierarchy in the parent asset's model. Hierarchies allow * different groupings of assets to be formed that all come from the same asset * model. You can use the hierarchy ID to identify the correct asset to * disassociate. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline void SetHierarchyId(Aws::String&& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = std::move(value); } /** *

The ID of a hierarchy in the parent asset's model. Hierarchies allow * different groupings of assets to be formed that all come from the same asset * model. You can use the hierarchy ID to identify the correct asset to * disassociate. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline void SetHierarchyId(const char* value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId.assign(value); } /** *

The ID of a hierarchy in the parent asset's model. Hierarchies allow * different groupings of assets to be formed that all come from the same asset * model. You can use the hierarchy ID to identify the correct asset to * disassociate. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline DisassociateAssetsRequest& WithHierarchyId(const Aws::String& value) { SetHierarchyId(value); return *this;} /** *

The ID of a hierarchy in the parent asset's model. Hierarchies allow * different groupings of assets to be formed that all come from the same asset * model. You can use the hierarchy ID to identify the correct asset to * disassociate. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline DisassociateAssetsRequest& WithHierarchyId(Aws::String&& value) { SetHierarchyId(std::move(value)); return *this;} /** *

The ID of a hierarchy in the parent asset's model. Hierarchies allow * different groupings of assets to be formed that all come from the same asset * model. You can use the hierarchy ID to identify the correct asset to * disassociate. For more information, see Asset * hierarchies in the IoT SiteWise User Guide.

*/ inline DisassociateAssetsRequest& WithHierarchyId(const char* value) { SetHierarchyId(value); return *this;} /** *

The ID of the child asset to disassociate.

*/ inline const Aws::String& GetChildAssetId() const{ return m_childAssetId; } /** *

The ID of the child asset to disassociate.

*/ inline bool ChildAssetIdHasBeenSet() const { return m_childAssetIdHasBeenSet; } /** *

The ID of the child asset to disassociate.

*/ inline void SetChildAssetId(const Aws::String& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = value; } /** *

The ID of the child asset to disassociate.

*/ inline void SetChildAssetId(Aws::String&& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = std::move(value); } /** *

The ID of the child asset to disassociate.

*/ inline void SetChildAssetId(const char* value) { m_childAssetIdHasBeenSet = true; m_childAssetId.assign(value); } /** *

The ID of the child asset to disassociate.

*/ inline DisassociateAssetsRequest& WithChildAssetId(const Aws::String& value) { SetChildAssetId(value); return *this;} /** *

The ID of the child asset to disassociate.

*/ inline DisassociateAssetsRequest& WithChildAssetId(Aws::String&& value) { SetChildAssetId(std::move(value)); return *this;} /** *

The ID of the child asset to disassociate.

*/ inline DisassociateAssetsRequest& WithChildAssetId(const char* value) { SetChildAssetId(value); return *this;} /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline DisassociateAssetsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline DisassociateAssetsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline DisassociateAssetsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_assetId; bool m_assetIdHasBeenSet = false; Aws::String m_hierarchyId; bool m_hierarchyIdHasBeenSet = false; Aws::String m_childAssetId; bool m_childAssetIdHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws