AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TimeSeriesDataPoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSAllocator.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace TimestreamQuery {
21namespace Model {
22class Datum;
23
34 public:
35 AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint() = default;
38 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetTime() const { return m_time; }
45 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
46 template <typename TimeT = Aws::String>
47 void SetTime(TimeT&& value) {
48 m_timeHasBeenSet = true;
49 m_time = std::forward<TimeT>(value);
50 }
51 template <typename TimeT = Aws::String>
53 SetTime(std::forward<TimeT>(value));
54 return *this;
55 }
57
59
62 inline const Datum& GetValue() const { return *m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 template <typename ValueT = Datum>
65 void SetValue(ValueT&& value) {
66 m_valueHasBeenSet = true;
67 m_value = Aws::MakeShared<Datum>("TimeSeriesDataPoint", std::forward<ValueT>(value));
68 }
69 template <typename ValueT = Datum>
71 SetValue(std::forward<ValueT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_time;
77
78 std::shared_ptr<Datum> m_value;
79 bool m_timeHasBeenSet = false;
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