AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AggregatedValue.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/iotsitewise/model/Quality.h>
10#include <aws/iotsitewise/model/Aggregates.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
35 {
36 public:
37 AWS_IOTSITEWISE_API AggregatedValue() = default;
38 AWS_IOTSITEWISE_API AggregatedValue(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API AggregatedValue& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
48 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
49 template<typename TimestampT = Aws::Utils::DateTime>
50 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
51 template<typename TimestampT = Aws::Utils::DateTime>
52 AggregatedValue& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
54
56
59 inline Quality GetQuality() const { return m_quality; }
60 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
61 inline void SetQuality(Quality value) { m_qualityHasBeenSet = true; m_quality = value; }
62 inline AggregatedValue& WithQuality(Quality value) { SetQuality(value); return *this;}
64
66
69 inline const Aggregates& GetValue() const { return m_value; }
70 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
71 template<typename ValueT = Aggregates>
72 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
73 template<typename ValueT = Aggregates>
74 AggregatedValue& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
76 private:
77
78 Aws::Utils::DateTime m_timestamp{};
79 bool m_timestampHasBeenSet = false;
80
81 Quality m_quality{Quality::NOT_SET};
82 bool m_qualityHasBeenSet = false;
83
84 Aggregates m_value;
85 bool m_valueHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace IoTSiteWise
90} // namespace Aws
AggregatedValue & WithValue(ValueT &&value)
AggregatedValue & WithQuality(Quality value)
AWS_IOTSITEWISE_API AggregatedValue()=default
AWS_IOTSITEWISE_API AggregatedValue(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API AggregatedValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregatedValue & WithTimestamp(TimestampT &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetTimestamp() const
Aws::Utils::Json::JsonValue JsonValue