AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
InterpolatedAssetPropertyValue.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/TimeInNanos.h>
9#include <aws/iotsitewise/model/Variant.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTSiteWise
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTSITEWISE_API InterpolatedAssetPropertyValue() = default;
39 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const TimeInNanos& GetTimestamp() const { return m_timestamp; }
45 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
46 template<typename TimestampT = TimeInNanos>
47 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
48 template<typename TimestampT = TimeInNanos>
49 InterpolatedAssetPropertyValue& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
51
53
54 inline const Variant& GetValue() const { return m_value; }
55 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
56 template<typename ValueT = Variant>
57 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
58 template<typename ValueT = Variant>
59 InterpolatedAssetPropertyValue& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
61 private:
62
63 TimeInNanos m_timestamp;
64 bool m_timestampHasBeenSet = false;
65
66 Variant m_value;
67 bool m_valueHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace IoTSiteWise
72} // namespace Aws
InterpolatedAssetPropertyValue & WithTimestamp(TimestampT &&value)
AWS_IOTSITEWISE_API InterpolatedAssetPropertyValue()=default
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API InterpolatedAssetPropertyValue(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API InterpolatedAssetPropertyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
InterpolatedAssetPropertyValue & WithValue(ValueT &&value)
Aws::Utils::Json::JsonValue JsonValue