AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetPropertyValue.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/Variant.h>
9#include <aws/iotsitewise/model/TimeInNanos.h>
10#include <aws/iotsitewise/model/Quality.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTSiteWise
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IOTSITEWISE_API AssetPropertyValue();
37 AWS_IOTSITEWISE_API AssetPropertyValue(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Variant& GetValue() const{ return m_value; }
47 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
48 inline void SetValue(const Variant& value) { m_valueHasBeenSet = true; m_value = value; }
49 inline void SetValue(Variant&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
50 inline AssetPropertyValue& WithValue(const Variant& value) { SetValue(value); return *this;}
51 inline AssetPropertyValue& WithValue(Variant&& value) { SetValue(std::move(value)); return *this;}
53
55
58 inline const TimeInNanos& GetTimestamp() const{ return m_timestamp; }
59 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
60 inline void SetTimestamp(const TimeInNanos& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
61 inline void SetTimestamp(TimeInNanos&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
62 inline AssetPropertyValue& WithTimestamp(const TimeInNanos& value) { SetTimestamp(value); return *this;}
63 inline AssetPropertyValue& WithTimestamp(TimeInNanos&& value) { SetTimestamp(std::move(value)); return *this;}
65
67
70 inline const Quality& GetQuality() const{ return m_quality; }
71 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
72 inline void SetQuality(const Quality& value) { m_qualityHasBeenSet = true; m_quality = value; }
73 inline void SetQuality(Quality&& value) { m_qualityHasBeenSet = true; m_quality = std::move(value); }
74 inline AssetPropertyValue& WithQuality(const Quality& value) { SetQuality(value); return *this;}
75 inline AssetPropertyValue& WithQuality(Quality&& value) { SetQuality(std::move(value)); return *this;}
77 private:
78
79 Variant m_value;
80 bool m_valueHasBeenSet = false;
81
82 TimeInNanos m_timestamp;
83 bool m_timestampHasBeenSet = false;
84
85 Quality m_quality;
86 bool m_qualityHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace IoTSiteWise
91} // namespace Aws
AssetPropertyValue & WithValue(const Variant &value)
AssetPropertyValue & WithTimestamp(const TimeInNanos &value)
void SetTimestamp(const TimeInNanos &value)
AWS_IOTSITEWISE_API AssetPropertyValue(Aws::Utils::Json::JsonView jsonValue)
AssetPropertyValue & WithQuality(const Quality &value)
AssetPropertyValue & WithValue(Variant &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetPropertyValue & WithQuality(Quality &&value)
AWS_IOTSITEWISE_API AssetPropertyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetPropertyValue & WithTimestamp(TimeInNanos &&value)
Aws::Utils::Json::JsonValue JsonValue