This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-iotevents/include/aws/iotevents/model/AssetPropertyValue.h

192 lines
6.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/AssetPropertyVariant.h>
#include <aws/iotevents/model/AssetPropertyTimestamp.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>A structure that contains value information. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html">AssetPropertyValue</a>
* in the <i>AWS IoT SiteWise API Reference</i>.</p> <p>For parameters that are
* string data type, you can specify the following options: </p> <ul> <li> <p>Use a
* string. For example, the <code>quality</code> value can be
* <code>'GOOD'</code>.</p> </li> <li> <p>Use an expression. For example, the
* <code>quality</code> value can be
* <code>$input.TemperatureInput.sensorData.quality</code> .</p> <p>For more
* information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html">Expressions</a>
* in the <i>AWS IoT Events Developer Guide</i>.</p> </li> </ul><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/AssetPropertyValue">AWS
* API Reference</a></p>
*/
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;
/**
* <p>The value to send to an asset property.</p>
*/
inline const AssetPropertyVariant& GetValue() const{ return m_value; }
/**
* <p>The value to send to an asset property.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value to send to an asset property.</p>
*/
inline void SetValue(const AssetPropertyVariant& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value to send to an asset property.</p>
*/
inline void SetValue(AssetPropertyVariant&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value to send to an asset property.</p>
*/
inline AssetPropertyValue& WithValue(const AssetPropertyVariant& value) { SetValue(value); return *this;}
/**
* <p>The value to send to an asset property.</p>
*/
inline AssetPropertyValue& WithValue(AssetPropertyVariant&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline const AssetPropertyTimestamp& GetTimestamp() const{ return m_timestamp; }
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline void SetTimestamp(const AssetPropertyTimestamp& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline void SetTimestamp(AssetPropertyTimestamp&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline AssetPropertyValue& WithTimestamp(const AssetPropertyTimestamp& value) { SetTimestamp(value); return *this;}
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline AssetPropertyValue& WithTimestamp(AssetPropertyTimestamp&& value) { SetTimestamp(std::move(value)); return *this;}
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline const Aws::String& GetQuality() const{ return m_quality; }
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline void SetQuality(const Aws::String& value) { m_qualityHasBeenSet = true; m_quality = value; }
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline void SetQuality(Aws::String&& value) { m_qualityHasBeenSet = true; m_quality = std::move(value); }
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline void SetQuality(const char* value) { m_qualityHasBeenSet = true; m_quality.assign(value); }
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline AssetPropertyValue& WithQuality(const Aws::String& value) { SetQuality(value); return *this;}
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline AssetPropertyValue& WithQuality(Aws::String&& value) { SetQuality(std::move(value)); return *this;}
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
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