AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
DataPoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/forecastquery/ForecastQueryService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ForecastQueryService {
20namespace Model {
21
28class DataPoint {
29 public:
30 AWS_FORECASTQUERYSERVICE_API DataPoint() = default;
31 AWS_FORECASTQUERYSERVICE_API DataPoint(Aws::Utils::Json::JsonView jsonValue);
32 AWS_FORECASTQUERYSERVICE_API DataPoint& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_FORECASTQUERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetTimestamp() const { return m_timestamp; }
40 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
41 template <typename TimestampT = Aws::String>
42 void SetTimestamp(TimestampT&& value) {
43 m_timestampHasBeenSet = true;
44 m_timestamp = std::forward<TimestampT>(value);
45 }
46 template <typename TimestampT = Aws::String>
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::String 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 ForecastQueryService
78} // namespace Aws
AWS_FORECASTQUERYSERVICE_API DataPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
DataPoint & WithTimestamp(TimestampT &&value)
Definition DataPoint.h:47
const Aws::String & GetTimestamp() const
Definition DataPoint.h:39
AWS_FORECASTQUERYSERVICE_API DataPoint(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(TimestampT &&value)
Definition DataPoint.h:42
DataPoint & WithValue(double value)
Definition DataPoint.h:63
AWS_FORECASTQUERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FORECASTQUERYSERVICE_API DataPoint()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue