/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The error information, such as the error code and the
* timestamp.See Also:
AWS
* API Reference
The error code.
*/ inline const BatchGetAssetPropertyValueErrorCode& GetErrorCode() const{ return m_errorCode; } /** *The error code.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The error code.
*/ inline void SetErrorCode(const BatchGetAssetPropertyValueErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The error code.
*/ inline void SetErrorCode(BatchGetAssetPropertyValueErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The error code.
*/ inline BatchGetAssetPropertyValueErrorInfo& WithErrorCode(const BatchGetAssetPropertyValueErrorCode& value) { SetErrorCode(value); return *this;} /** *The error code.
*/ inline BatchGetAssetPropertyValueErrorInfo& WithErrorCode(BatchGetAssetPropertyValueErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *The date the error occurred, in Unix epoch time.
*/ inline const Aws::Utils::DateTime& GetErrorTimestamp() const{ return m_errorTimestamp; } /** *The date the error occurred, in Unix epoch time.
*/ inline bool ErrorTimestampHasBeenSet() const { return m_errorTimestampHasBeenSet; } /** *The date the error occurred, in Unix epoch time.
*/ inline void SetErrorTimestamp(const Aws::Utils::DateTime& value) { m_errorTimestampHasBeenSet = true; m_errorTimestamp = value; } /** *The date the error occurred, in Unix epoch time.
*/ inline void SetErrorTimestamp(Aws::Utils::DateTime&& value) { m_errorTimestampHasBeenSet = true; m_errorTimestamp = std::move(value); } /** *The date the error occurred, in Unix epoch time.
*/ inline BatchGetAssetPropertyValueErrorInfo& WithErrorTimestamp(const Aws::Utils::DateTime& value) { SetErrorTimestamp(value); return *this;} /** *The date the error occurred, in Unix epoch time.
*/ inline BatchGetAssetPropertyValueErrorInfo& WithErrorTimestamp(Aws::Utils::DateTime&& value) { SetErrorTimestamp(std::move(value)); return *this;} private: BatchGetAssetPropertyValueErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::Utils::DateTime m_errorTimestamp; bool m_errorTimestampHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws