AWS SDK for C++

AWS SDK for C++ Version 1.11.609

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#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 AutoScalingPlans
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_AUTOSCALINGPLANS_API Datapoint() = default;
36 AWS_AUTOSCALINGPLANS_API Datapoint(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AUTOSCALINGPLANS_API Datapoint& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
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 Datapoint& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
52
54
57 inline double GetValue() const { return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
60 inline Datapoint& WithValue(double value) { SetValue(value); return *this;}
62 private:
63
64 Aws::Utils::DateTime m_timestamp{};
65 bool m_timestampHasBeenSet = false;
66
67 double m_value{0.0};
68 bool m_valueHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace AutoScalingPlans
73} // namespace Aws
const Aws::Utils::DateTime & GetTimestamp() const
Definition Datapoint.h:45
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AUTOSCALINGPLANS_API Datapoint()=default
Datapoint & WithTimestamp(TimestampT &&value)
Definition Datapoint.h:50
Datapoint & WithValue(double value)
Definition Datapoint.h:60
AWS_AUTOSCALINGPLANS_API Datapoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(TimestampT &&value)
Definition Datapoint.h:48
AWS_AUTOSCALINGPLANS_API Datapoint(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue