AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
Datapoint.h
1
6#pragma once
7#include <aws/autoscaling-plans/AutoScalingPlans_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AutoScalingPlans {
20namespace Model {
21
28class Datapoint {
29 public:
30 AWS_AUTOSCALINGPLANS_API Datapoint() = default;
31 AWS_AUTOSCALINGPLANS_API Datapoint(Aws::Utils::Json::JsonView jsonValue);
32 AWS_AUTOSCALINGPLANS_API Datapoint& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
40 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
41 template <typename TimestampT = Aws::Utils::DateTime>
42 void SetTimestamp(TimestampT&& value) {
43 m_timestampHasBeenSet = true;
44 m_timestamp = std::forward<TimestampT>(value);
45 }
46 template <typename TimestampT = Aws::Utils::DateTime>
47 Datapoint& WithTimestamp(TimestampT&& value) {
48 SetTimestamp(std::forward<TimestampT>(value));
49 return *this;
50 }
52
54
57 inline double GetValue() const { return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 inline void SetValue(double value) {
60 m_valueHasBeenSet = true;
61 m_value = value;
62 }
63 inline Datapoint& WithValue(double value) {
64 SetValue(value);
65 return *this;
66 }
68 private:
69 Aws::Utils::DateTime m_timestamp{};
70
71 double m_value{0.0};
72 bool m_timestampHasBeenSet = false;
73 bool m_valueHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace AutoScalingPlans
78} // namespace Aws
const Aws::Utils::DateTime & GetTimestamp() const
Definition Datapoint.h:39
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AUTOSCALINGPLANS_API Datapoint()=default
Datapoint & WithTimestamp(TimestampT &&value)
Definition Datapoint.h:47
Datapoint & WithValue(double value)
Definition Datapoint.h:63
AWS_AUTOSCALINGPLANS_API Datapoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(TimestampT &&value)
Definition Datapoint.h:42
AWS_AUTOSCALINGPLANS_API Datapoint(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue