/** * 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 IoT { namespace Model { /** *

An asset property value entry containing the following * information.

See Also:

AWS * API Reference

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

The value of the asset property.

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

The value of the asset property.

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

The value of the asset property.

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

The value of the asset property.

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

The value of the asset property.

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

The value of the asset property.

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

The asset property value timestamp.

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

The asset property value timestamp.

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

The asset property value timestamp.

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

The asset property value timestamp.

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

The asset property value timestamp.

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

The asset property value timestamp.

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

Optional. A string that describes the quality of the value. Accepts * substitution templates. Must be GOOD, BAD, or * UNCERTAIN.

*/ inline const Aws::String& GetQuality() const{ return m_quality; } /** *

Optional. A string that describes the quality of the value. Accepts * substitution templates. Must be GOOD, BAD, or * UNCERTAIN.

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

Optional. A string that describes the quality of the value. Accepts * substitution templates. Must be GOOD, BAD, or * UNCERTAIN.

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

Optional. A string that describes the quality of the value. Accepts * substitution templates. Must be GOOD, BAD, or * UNCERTAIN.

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

Optional. A string that describes the quality of the value. Accepts * substitution templates. Must be GOOD, BAD, or * UNCERTAIN.

*/ inline void SetQuality(const char* value) { m_qualityHasBeenSet = true; m_quality.assign(value); } /** *

Optional. A string that describes the quality of the value. Accepts * substitution templates. Must be GOOD, BAD, or * UNCERTAIN.

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

Optional. A string that describes the quality of the value. Accepts * substitution templates. Must be GOOD, BAD, or * UNCERTAIN.

*/ inline AssetPropertyValue& WithQuality(Aws::String&& value) { SetQuality(std::move(value)); return *this;} /** *

Optional. A string that describes the quality of the value. Accepts * substitution templates. Must be GOOD, BAD, or * UNCERTAIN.

*/ inline AssetPropertyValue& WithQuality(const char* value) { SetQuality(value); return *this;} private: AssetPropertyVariant m_value; bool m_valueHasBeenSet = false; AssetPropertyTimestamp m_timestamp; bool m_timestampHasBeenSet = false; Aws::String m_quality; bool m_qualityHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws