/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTSiteWise { namespace Model { /** *

Contains asset property value information.

See Also:

AWS * API Reference

*/ class AssetPropertyValue { public: AWS_IOTSITEWISE_API AssetPropertyValue(); AWS_IOTSITEWISE_API AssetPropertyValue(Aws::Utils::Json::JsonView jsonValue); AWS_IOTSITEWISE_API AssetPropertyValue& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The value of the asset property (see Variant).

*/ inline const Variant& GetValue() const{ return m_value; } /** *

The value of the asset property (see Variant).

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the asset property (see Variant).

*/ inline void SetValue(const Variant& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the asset property (see Variant).

*/ inline void SetValue(Variant&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the asset property (see Variant).

*/ inline AssetPropertyValue& WithValue(const Variant& value) { SetValue(value); return *this;} /** *

The value of the asset property (see Variant).

*/ inline AssetPropertyValue& WithValue(Variant&& value) { SetValue(std::move(value)); return *this;} /** *

The timestamp of the asset property value.

*/ inline const TimeInNanos& GetTimestamp() const{ return m_timestamp; } /** *

The timestamp of the asset property value.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The timestamp of the asset property value.

*/ inline void SetTimestamp(const TimeInNanos& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The timestamp of the asset property value.

*/ inline void SetTimestamp(TimeInNanos&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The timestamp of the asset property value.

*/ inline AssetPropertyValue& WithTimestamp(const TimeInNanos& value) { SetTimestamp(value); return *this;} /** *

The timestamp of the asset property value.

*/ inline AssetPropertyValue& WithTimestamp(TimeInNanos&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The quality of the asset property value.

*/ inline const Quality& GetQuality() const{ return m_quality; } /** *

The quality of the asset property value.

*/ inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; } /** *

The quality of the asset property value.

*/ inline void SetQuality(const Quality& value) { m_qualityHasBeenSet = true; m_quality = value; } /** *

The quality of the asset property value.

*/ inline void SetQuality(Quality&& value) { m_qualityHasBeenSet = true; m_quality = std::move(value); } /** *

The quality of the asset property value.

*/ inline AssetPropertyValue& WithQuality(const Quality& value) { SetQuality(value); return *this;} /** *

The quality of the asset property value.

*/ inline AssetPropertyValue& WithQuality(Quality&& value) { SetQuality(std::move(value)); return *this;} private: Variant m_value; bool m_valueHasBeenSet = false; TimeInNanos m_timestamp; bool m_timestampHasBeenSet = false; Quality m_quality; bool m_qualityHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws