AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricDatum.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/iot/model/MetricValue.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 IoT
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOT_API MetricDatum() = default;
39
40
42
45 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
46 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
47 template<typename TimestampT = Aws::Utils::DateTime>
48 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
49 template<typename TimestampT = Aws::Utils::DateTime>
50 MetricDatum& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
52
54
57 inline const MetricValue& GetValue() const { return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 template<typename ValueT = MetricValue>
60 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
61 template<typename ValueT = MetricValue>
62 MetricDatum& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
64 private:
65
66 Aws::Utils::DateTime m_timestamp{};
67 bool m_timestampHasBeenSet = false;
68
69 MetricValue m_value;
70 bool m_valueHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace IoT
75} // namespace Aws
MetricDatum & WithValue(ValueT &&value)
Definition MetricDatum.h:62
void SetTimestamp(TimestampT &&value)
Definition MetricDatum.h:48
const Aws::Utils::DateTime & GetTimestamp() const
Definition MetricDatum.h:45
AWS_IOT_API MetricDatum()=default
AWS_IOT_API MetricDatum & operator=(Aws::Utils::Json::JsonView jsonValue)
const MetricValue & GetValue() const
Definition MetricDatum.h:57
MetricDatum & WithTimestamp(TimestampT &&value)
Definition MetricDatum.h:50
AWS_IOT_API MetricDatum(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValue(ValueT &&value)
Definition MetricDatum.h:60
Aws::Utils::Json::JsonValue JsonValue