AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
10#include <memory>
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();
41 AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint& operator=(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetTime(const Aws::String& value) { m_timeHasBeenSet = true; m_time = value; }
53 inline void SetTime(Aws::String&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
54 inline void SetTime(const char* value) { m_timeHasBeenSet = true; m_time.assign(value); }
55 inline TimeSeriesDataPoint& WithTime(const Aws::String& value) { SetTime(value); return *this;}
56 inline TimeSeriesDataPoint& WithTime(Aws::String&& value) { SetTime(std::move(value)); return *this;}
57 inline TimeSeriesDataPoint& WithTime(const char* value) { SetTime(value); return *this;}
59
61
64 AWS_TIMESTREAMQUERY_API const Datum& GetValue() const;
65 AWS_TIMESTREAMQUERY_API bool ValueHasBeenSet() const;
66 AWS_TIMESTREAMQUERY_API void SetValue(const Datum& value);
67 AWS_TIMESTREAMQUERY_API void SetValue(Datum&& value);
68 AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint& WithValue(const Datum& value);
69 AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint& WithValue(Datum&& value);
71 private:
72
73 Aws::String m_time;
74 bool m_timeHasBeenSet = false;
75
76 std::shared_ptr<Datum> m_value;
77 bool m_valueHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace TimestreamQuery
82} // namespace Aws
AWS_TIMESTREAMQUERY_API bool ValueHasBeenSet() const
TimeSeriesDataPoint & WithTime(const char *value)
AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint & WithValue(const Datum &value)
AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeSeriesDataPoint & WithTime(const Aws::String &value)
AWS_TIMESTREAMQUERY_API const Datum & GetValue() const
AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint(Aws::Utils::Json::JsonView jsonValue)
TimeSeriesDataPoint & WithTime(Aws::String &&value)
AWS_TIMESTREAMQUERY_API void SetValue(Datum &&value)
AWS_TIMESTREAMQUERY_API void SetValue(const Datum &value)
AWS_TIMESTREAMQUERY_API TimeSeriesDataPoint & WithValue(Datum &&value)
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue