AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Datum.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/timestream-query/model/TimeSeriesDataPoint.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12#include <memory>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace TimestreamQuery
25{
26namespace Model
27{
28 class Row;
29 class TimeSeriesDataPoint;
30
37 class Datum
38 {
39 public:
40 AWS_TIMESTREAMQUERY_API Datum();
41 AWS_TIMESTREAMQUERY_API Datum(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TIMESTREAMQUERY_API Datum& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetScalarValue() const{ return m_scalarValue; }
52 inline bool ScalarValueHasBeenSet() const { return m_scalarValueHasBeenSet; }
53 inline void SetScalarValue(const Aws::String& value) { m_scalarValueHasBeenSet = true; m_scalarValue = value; }
54 inline void SetScalarValue(Aws::String&& value) { m_scalarValueHasBeenSet = true; m_scalarValue = std::move(value); }
55 inline void SetScalarValue(const char* value) { m_scalarValueHasBeenSet = true; m_scalarValue.assign(value); }
56 inline Datum& WithScalarValue(const Aws::String& value) { SetScalarValue(value); return *this;}
57 inline Datum& WithScalarValue(Aws::String&& value) { SetScalarValue(std::move(value)); return *this;}
58 inline Datum& WithScalarValue(const char* value) { SetScalarValue(value); return *this;}
60
62
65 inline const Aws::Vector<TimeSeriesDataPoint>& GetTimeSeriesValue() const{ return m_timeSeriesValue; }
66 inline bool TimeSeriesValueHasBeenSet() const { return m_timeSeriesValueHasBeenSet; }
67 inline void SetTimeSeriesValue(const Aws::Vector<TimeSeriesDataPoint>& value) { m_timeSeriesValueHasBeenSet = true; m_timeSeriesValue = value; }
68 inline void SetTimeSeriesValue(Aws::Vector<TimeSeriesDataPoint>&& value) { m_timeSeriesValueHasBeenSet = true; m_timeSeriesValue = std::move(value); }
70 inline Datum& WithTimeSeriesValue(Aws::Vector<TimeSeriesDataPoint>&& value) { SetTimeSeriesValue(std::move(value)); return *this;}
71 inline Datum& AddTimeSeriesValue(const TimeSeriesDataPoint& value) { m_timeSeriesValueHasBeenSet = true; m_timeSeriesValue.push_back(value); return *this; }
72 inline Datum& AddTimeSeriesValue(TimeSeriesDataPoint&& value) { m_timeSeriesValueHasBeenSet = true; m_timeSeriesValue.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::Vector<Datum>& GetArrayValue() const{ return m_arrayValue; }
80 inline bool ArrayValueHasBeenSet() const { return m_arrayValueHasBeenSet; }
81 inline void SetArrayValue(const Aws::Vector<Datum>& value) { m_arrayValueHasBeenSet = true; m_arrayValue = value; }
82 inline void SetArrayValue(Aws::Vector<Datum>&& value) { m_arrayValueHasBeenSet = true; m_arrayValue = std::move(value); }
83 inline Datum& WithArrayValue(const Aws::Vector<Datum>& value) { SetArrayValue(value); return *this;}
84 inline Datum& WithArrayValue(Aws::Vector<Datum>&& value) { SetArrayValue(std::move(value)); return *this;}
85 inline Datum& AddArrayValue(const Datum& value) { m_arrayValueHasBeenSet = true; m_arrayValue.push_back(value); return *this; }
86 inline Datum& AddArrayValue(Datum&& value) { m_arrayValueHasBeenSet = true; m_arrayValue.push_back(std::move(value)); return *this; }
88
90
93 AWS_TIMESTREAMQUERY_API const Row& GetRowValue() const;
94 AWS_TIMESTREAMQUERY_API bool RowValueHasBeenSet() const;
95 AWS_TIMESTREAMQUERY_API void SetRowValue(const Row& value);
96 AWS_TIMESTREAMQUERY_API void SetRowValue(Row&& value);
97 AWS_TIMESTREAMQUERY_API Datum& WithRowValue(const Row& value);
98 AWS_TIMESTREAMQUERY_API Datum& WithRowValue(Row&& value);
100
102
105 inline bool GetNullValue() const{ return m_nullValue; }
106 inline bool NullValueHasBeenSet() const { return m_nullValueHasBeenSet; }
107 inline void SetNullValue(bool value) { m_nullValueHasBeenSet = true; m_nullValue = value; }
108 inline Datum& WithNullValue(bool value) { SetNullValue(value); return *this;}
110 private:
111
112 Aws::String m_scalarValue;
113 bool m_scalarValueHasBeenSet = false;
114
115 Aws::Vector<TimeSeriesDataPoint> m_timeSeriesValue;
116 bool m_timeSeriesValueHasBeenSet = false;
117
118 Aws::Vector<Datum> m_arrayValue;
119 bool m_arrayValueHasBeenSet = false;
120
121 std::shared_ptr<Row> m_rowValue;
122 bool m_rowValueHasBeenSet = false;
123
124 bool m_nullValue;
125 bool m_nullValueHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace TimestreamQuery
130} // namespace Aws
AWS_TIMESTREAMQUERY_API Datum & WithRowValue(const Row &value)
AWS_TIMESTREAMQUERY_API Datum & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMQUERY_API void SetRowValue(Row &&value)
const Aws::String & GetScalarValue() const
Definition Datum.h:51
Datum & WithNullValue(bool value)
Definition Datum.h:108
void SetScalarValue(const Aws::String &value)
Definition Datum.h:53
void SetScalarValue(const char *value)
Definition Datum.h:55
Datum & WithArrayValue(Aws::Vector< Datum > &&value)
Definition Datum.h:84
void SetArrayValue(Aws::Vector< Datum > &&value)
Definition Datum.h:82
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
Datum & WithTimeSeriesValue(Aws::Vector< TimeSeriesDataPoint > &&value)
Definition Datum.h:70
AWS_TIMESTREAMQUERY_API const Row & GetRowValue() const
Datum & WithArrayValue(const Aws::Vector< Datum > &value)
Definition Datum.h:83
Datum & WithTimeSeriesValue(const Aws::Vector< TimeSeriesDataPoint > &value)
Definition Datum.h:69
Datum & AddArrayValue(Datum &&value)
Definition Datum.h:86
bool TimeSeriesValueHasBeenSet() const
Definition Datum.h:66
Datum & WithScalarValue(Aws::String &&value)
Definition Datum.h:57
void SetScalarValue(Aws::String &&value)
Definition Datum.h:54
void SetNullValue(bool value)
Definition Datum.h:107
void SetTimeSeriesValue(const Aws::Vector< TimeSeriesDataPoint > &value)
Definition Datum.h:67
AWS_TIMESTREAMQUERY_API Datum(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Datum > & GetArrayValue() const
Definition Datum.h:79
Datum & AddArrayValue(const Datum &value)
Definition Datum.h:85
bool ScalarValueHasBeenSet() const
Definition Datum.h:52
Datum & WithScalarValue(const Aws::String &value)
Definition Datum.h:56
Datum & AddTimeSeriesValue(const TimeSeriesDataPoint &value)
Definition Datum.h:71
bool ArrayValueHasBeenSet() const
Definition Datum.h:80
void SetArrayValue(const Aws::Vector< Datum > &value)
Definition Datum.h:81
AWS_TIMESTREAMQUERY_API bool RowValueHasBeenSet() const
Datum & WithScalarValue(const char *value)
Definition Datum.h:58
AWS_TIMESTREAMQUERY_API Datum & WithRowValue(Row &&value)
AWS_TIMESTREAMQUERY_API void SetRowValue(const Row &value)
const Aws::Vector< TimeSeriesDataPoint > & GetTimeSeriesValue() const
Definition Datum.h:65
Datum & AddTimeSeriesValue(TimeSeriesDataPoint &&value)
Definition Datum.h:72
void SetTimeSeriesValue(Aws::Vector< TimeSeriesDataPoint > &&value)
Definition Datum.h:68
AWS_TIMESTREAMQUERY_API Datum()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue