/** * 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.

For parameters that are * string data type, you can specify the following options:

  • Use a * string. For example, the quality value can be * 'GOOD'.

  • Use an expression. For example, the * quality value can be * $input.TemperatureInput.sensorData.quality .

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

See * Also:

AWS * API Reference

*/ class AWS_IOTEVENTS_API AssetPropertyValue { public: AssetPropertyValue(); AssetPropertyValue(Aws::Utils::Json::JsonView jsonValue); AssetPropertyValue& operator=(Aws::Utils::Json::JsonView jsonValue); 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. You can also specify an * expression.

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

The quality of the asset property value. The value must be GOOD, * BAD, or UNCERTAIN. You can also specify an * expression.

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

The quality of the asset property value. The value must be GOOD, * BAD, or UNCERTAIN. You can also specify an * expression.

*/ 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. You can also specify an * expression.

*/ 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. You can also specify an * expression.

*/ 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. You can also specify an * expression.

*/ 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. You can also specify an * expression.

*/ 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. You can also specify an * expression.

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