AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
46 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
47 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
48 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
49 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
50 inline DataPoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
51 inline DataPoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(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;
69 bool m_valueHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace PI
74} // namespace Aws
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
DataPoint & WithTimestamp(const Aws::Utils::DateTime &value)
Definition DataPoint.h:50
AWS_PI_API DataPoint(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition DataPoint.h:48
AWS_PI_API DataPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValue(double value)
Definition DataPoint.h:60
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition DataPoint.h:49
DataPoint & WithTimestamp(Aws::Utils::DateTime &&value)
Definition DataPoint.h:51
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
Aws::Utils::Json::JsonValue JsonValue