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

A structure that contains value information. For more information, see AssetPropertyValue * in the AWS IoT SiteWise API Reference.

You must use expressions * for all parameters in AssetPropertyValue. The expressions accept * literals, operators, functions, references, and substitution templates.

Examples

  • For literal values, the * expressions must contain single quotes. For example, the value for the * quality parameter can be 'GOOD'.

  • For * references, you must specify either variables or input values. For example, the * value for the quality parameter can be * $input.TemperatureInput.sensorData.quality.

For * more information, see Expressions * in the AWS IoT Events Developer Guide.

See Also:

AWS * API Reference

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

The value to send to an asset property.

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

The value to send to an asset property.

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

The value to send to an asset property.

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

The value to send to an asset property.

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

The value to send to an asset property.

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

The value to send to an asset property.

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

The timestamp associated with the asset property value. The default is the * current event time.

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

The timestamp associated with the asset property value. The default is the * current event time.

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

The timestamp associated with the asset property value. The default is the * current event time.

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

The timestamp associated with the asset property value. The default is the * current event time.

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

The timestamp associated with the asset property value. The default is the * current event time.

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

The timestamp associated with the asset property value. The default is the * current event time.

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

The quality of the asset property value. The value must be * 'GOOD', 'BAD', or 'UNCERTAIN'.

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

The quality of the asset property value. The value must be * 'GOOD', 'BAD', or 'UNCERTAIN'.

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

The quality of the asset property value. The value must be * 'GOOD', 'BAD', or 'UNCERTAIN'.

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

The quality of the asset property value. The value must be * 'GOOD', 'BAD', or 'UNCERTAIN'.

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

The quality of the asset property value. The value must be * 'GOOD', 'BAD', or 'UNCERTAIN'.

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

The quality of the asset property value. The value must be * 'GOOD', 'BAD', or 'UNCERTAIN'.

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

The quality of the asset property value. The value must be * 'GOOD', 'BAD', or 'UNCERTAIN'.

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

The quality of the asset property value. The value 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 IoTEvents } // namespace Aws