AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
46 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
47 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
48 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
49 inline MetricDatum& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
50 inline MetricDatum& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
52
54
57 inline const MetricValue& GetValue() const{ return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 inline void SetValue(const MetricValue& value) { m_valueHasBeenSet = true; m_value = value; }
60 inline void SetValue(MetricValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
61 inline MetricDatum& WithValue(const MetricValue& value) { SetValue(value); return *this;}
62 inline MetricDatum& WithValue(MetricValue&& value) { SetValue(std::move(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(MetricValue &&value)
Definition MetricDatum.h:62
const Aws::Utils::DateTime & GetTimestamp() const
Definition MetricDatum.h:45
MetricDatum & WithValue(const MetricValue &value)
Definition MetricDatum.h:61
void SetValue(MetricValue &&value)
Definition MetricDatum.h:60
AWS_IOT_API MetricDatum & operator=(Aws::Utils::Json::JsonView jsonValue)
const MetricValue & GetValue() const
Definition MetricDatum.h:57
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition MetricDatum.h:48
void SetValue(const MetricValue &value)
Definition MetricDatum.h:59
AWS_IOT_API MetricDatum(Aws::Utils::Json::JsonView jsonValue)
MetricDatum & WithTimestamp(const Aws::Utils::DateTime &value)
Definition MetricDatum.h:49
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition MetricDatum.h:47
MetricDatum & WithTimestamp(Aws::Utils::DateTime &&value)
Definition MetricDatum.h:50
Aws::Utils::Json::JsonValue JsonValue