/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains error details for the requested associate project asset
* action.See Also:
AWS
* API Reference
The ID of the asset.
*/ inline const Aws::String& GetAssetId() const{ return m_assetId; } /** *The ID of the asset.
*/ inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; } /** *The ID of the asset.
*/ inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; } /** *The ID of the asset.
*/ inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); } /** *The ID of the asset.
*/ inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); } /** *The ID of the asset.
*/ inline AssetErrorDetails& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;} /** *The ID of the asset.
*/ inline AssetErrorDetails& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;} /** *The ID of the asset.
*/ inline AssetErrorDetails& WithAssetId(const char* value) { SetAssetId(value); return *this;} /** *The error code.
*/ inline const AssetErrorCode& GetCode() const{ return m_code; } /** *The error code.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The error code.
*/ inline void SetCode(const AssetErrorCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *The error code.
*/ inline void SetCode(AssetErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The error code.
*/ inline AssetErrorDetails& WithCode(const AssetErrorCode& value) { SetCode(value); return *this;} /** *The error code.
*/ inline AssetErrorDetails& WithCode(AssetErrorCode&& value) { SetCode(std::move(value)); return *this;} /** *The error message.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The error message.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The error message.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The error message.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The error message.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The error message.
*/ inline AssetErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The error message.
*/ inline AssetErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The error message.
*/ inline AssetErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_assetId; bool m_assetIdHasBeenSet = false; AssetErrorCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws