AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TimeSeriesDataPoint.h
1
6#pragma once
7#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSAllocator.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 TimestreamQuery
23{
24namespace Model
25{
26 class Datum;
27
38 {
39 public:
40 AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint() = default;
43 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetTime() const { return m_time; }
51 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
52 template<typename TimeT = Aws::String>
53 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
54 template<typename TimeT = Aws::String>
55 TimeSeriesDataPoint& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
57
59
62 inline const Datum& GetValue() const{
63 return *m_value;
64 }
65 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
66 template<typename ValueT = Datum>
67 void SetValue(ValueT&& value) {
68 m_valueHasBeenSet = true;
69 m_value = Aws::MakeShared<Datum>("TimeSeriesDataPoint", std::forward<ValueT>(value));
70 }
71 template<typename ValueT = Datum>
72 TimeSeriesDataPoint& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
74 private:
75
76 Aws::String m_time;
77 bool m_timeHasBeenSet = false;
78
79 std::shared_ptr<Datum> m_value;
80 bool m_valueHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace TimestreamQuery
85} // namespace Aws
AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint()=default
TimeSeriesDataPoint & WithValue(ValueT &&value)
AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint(Aws::Utils::Json::JsonView jsonValue)
TimeSeriesDataPoint & WithTime(TimeT &&value)
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue