AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DataPoint.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PI
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_PI_API DataPoint() = default;
39
40
42
46 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
47 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
48 template<typename TimestampT = Aws::Utils::DateTime>
49 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
50 template<typename TimestampT = Aws::Utils::DateTime>
51 DataPoint& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
53
55
58 inline double GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
61 inline DataPoint& WithValue(double value) { SetValue(value); return *this;}
63 private:
64
65 Aws::Utils::DateTime m_timestamp{};
66 bool m_timestampHasBeenSet = false;
67
68 double m_value{0.0};
69 bool m_valueHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace PI
74} // namespace Aws
AWS_PI_API DataPoint()=default
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PI_API DataPoint(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(TimestampT &&value)
Definition DataPoint.h:49
AWS_PI_API DataPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValue(double value)
Definition DataPoint.h:60
bool ValueHasBeenSet() const
Definition DataPoint.h:59
const Aws::Utils::DateTime & GetTimestamp() const
Definition DataPoint.h:46
bool TimestampHasBeenSet() const
Definition DataPoint.h:47
DataPoint & WithValue(double value)
Definition DataPoint.h:61
double GetValue() const
Definition DataPoint.h:58
DataPoint & WithTimestamp(TimestampT &&value)
Definition DataPoint.h:51
Aws::Utils::Json::JsonValue JsonValue