AWS SDK for C++  1.9.106
AWS SDK for C++
Datum.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <memory>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace TimestreamQuery
26 {
27 namespace Model
28 {
29  class Row;
30 
38  {
39  public:
40  Datum();
44 
45 
50  inline const Aws::String& GetScalarValue() const{ return m_scalarValue; }
51 
56  inline bool ScalarValueHasBeenSet() const { return m_scalarValueHasBeenSet; }
57 
62  inline void SetScalarValue(const Aws::String& value) { m_scalarValueHasBeenSet = true; m_scalarValue = value; }
63 
68  inline void SetScalarValue(Aws::String&& value) { m_scalarValueHasBeenSet = true; m_scalarValue = std::move(value); }
69 
74  inline void SetScalarValue(const char* value) { m_scalarValueHasBeenSet = true; m_scalarValue.assign(value); }
75 
80  inline Datum& WithScalarValue(const Aws::String& value) { SetScalarValue(value); return *this;}
81 
86  inline Datum& WithScalarValue(Aws::String&& value) { SetScalarValue(std::move(value)); return *this;}
87 
92  inline Datum& WithScalarValue(const char* value) { SetScalarValue(value); return *this;}
93 
94 
98  inline const Aws::Vector<TimeSeriesDataPoint>& GetTimeSeriesValue() const{ return m_timeSeriesValue; }
99 
103  inline bool TimeSeriesValueHasBeenSet() const { return m_timeSeriesValueHasBeenSet; }
104 
108  inline void SetTimeSeriesValue(const Aws::Vector<TimeSeriesDataPoint>& value) { m_timeSeriesValueHasBeenSet = true; m_timeSeriesValue = value; }
109 
113  inline void SetTimeSeriesValue(Aws::Vector<TimeSeriesDataPoint>&& value) { m_timeSeriesValueHasBeenSet = true; m_timeSeriesValue = std::move(value); }
114 
118  inline Datum& WithTimeSeriesValue(const Aws::Vector<TimeSeriesDataPoint>& value) { SetTimeSeriesValue(value); return *this;}
119 
123  inline Datum& WithTimeSeriesValue(Aws::Vector<TimeSeriesDataPoint>&& value) { SetTimeSeriesValue(std::move(value)); return *this;}
124 
128  inline Datum& AddTimeSeriesValue(const TimeSeriesDataPoint& value) { m_timeSeriesValueHasBeenSet = true; m_timeSeriesValue.push_back(value); return *this; }
129 
133  inline Datum& AddTimeSeriesValue(TimeSeriesDataPoint&& value) { m_timeSeriesValueHasBeenSet = true; m_timeSeriesValue.push_back(std::move(value)); return *this; }
134 
135 
139  inline const Aws::Vector<Datum>& GetArrayValue() const{ return m_arrayValue; }
140 
144  inline bool ArrayValueHasBeenSet() const { return m_arrayValueHasBeenSet; }
145 
149  inline void SetArrayValue(const Aws::Vector<Datum>& value) { m_arrayValueHasBeenSet = true; m_arrayValue = value; }
150 
154  inline void SetArrayValue(Aws::Vector<Datum>&& value) { m_arrayValueHasBeenSet = true; m_arrayValue = std::move(value); }
155 
159  inline Datum& WithArrayValue(const Aws::Vector<Datum>& value) { SetArrayValue(value); return *this;}
160 
164  inline Datum& WithArrayValue(Aws::Vector<Datum>&& value) { SetArrayValue(std::move(value)); return *this;}
165 
169  inline Datum& AddArrayValue(const Datum& value) { m_arrayValueHasBeenSet = true; m_arrayValue.push_back(value); return *this; }
170 
174  inline Datum& AddArrayValue(Datum&& value) { m_arrayValueHasBeenSet = true; m_arrayValue.push_back(std::move(value)); return *this; }
175 
176 
180  const Row& GetRowValue() const;
181 
185  bool RowValueHasBeenSet() const;
186 
190  void SetRowValue(const Row& value);
191 
195  void SetRowValue(Row&& value);
196 
200  Datum& WithRowValue(const Row& value);
201 
205  Datum& WithRowValue(Row&& value);
206 
207 
211  inline bool GetNullValue() const{ return m_nullValue; }
212 
216  inline bool NullValueHasBeenSet() const { return m_nullValueHasBeenSet; }
217 
221  inline void SetNullValue(bool value) { m_nullValueHasBeenSet = true; m_nullValue = value; }
222 
226  inline Datum& WithNullValue(bool value) { SetNullValue(value); return *this;}
227 
228  private:
229 
230  Aws::String m_scalarValue;
231  bool m_scalarValueHasBeenSet;
232 
233  Aws::Vector<TimeSeriesDataPoint> m_timeSeriesValue;
234  bool m_timeSeriesValueHasBeenSet;
235 
236  Aws::Vector<Datum> m_arrayValue;
237  bool m_arrayValueHasBeenSet;
238 
239  std::shared_ptr<Row> m_rowValue;
240  bool m_rowValueHasBeenSet;
241 
242  bool m_nullValue;
243  bool m_nullValueHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace TimestreamQuery
248 } // namespace Aws
Aws::TimestreamQuery::Model::Datum::Datum
Datum(Aws::Utils::Json::JsonView jsonValue)
Aws::TimestreamQuery::Model::Datum
Definition: Datum.h:38
AWS_TIMESTREAMQUERY_API
#define AWS_TIMESTREAMQUERY_API
Definition: TimestreamQuery_EXPORTS.h:28
Aws::TimestreamQuery::Model::Datum::WithNullValue
Datum & WithNullValue(bool value)
Definition: Datum.h:226
Aws::TimestreamQuery::Model::Datum::AddTimeSeriesValue
Datum & AddTimeSeriesValue(TimeSeriesDataPoint &&value)
Definition: Datum.h:133
Aws::TimestreamQuery::Model::Datum::WithRowValue
Datum & WithRowValue(const Row &value)
Aws::TimestreamQuery::Model::Datum::WithArrayValue
Datum & WithArrayValue(Aws::Vector< Datum > &&value)
Definition: Datum.h:164
Aws::TimestreamQuery::Model::Datum::SetArrayValue
void SetArrayValue(Aws::Vector< Datum > &&value)
Definition: Datum.h:154
Aws::TimestreamQuery::Model::Datum::WithTimeSeriesValue
Datum & WithTimeSeriesValue(const Aws::Vector< TimeSeriesDataPoint > &value)
Definition: Datum.h:118
Aws::TimestreamQuery::Model::Datum::SetArrayValue
void SetArrayValue(const Aws::Vector< Datum > &value)
Definition: Datum.h:149
Aws::TimestreamQuery::Model::Datum::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::TimestreamQuery::Model::Datum::ArrayValueHasBeenSet
bool ArrayValueHasBeenSet() const
Definition: Datum.h:144
Aws::TimestreamQuery::Model::Datum::GetArrayValue
const Aws::Vector< Datum > & GetArrayValue() const
Definition: Datum.h:139
Aws::TimestreamQuery::Model::Datum::SetRowValue
void SetRowValue(Row &&value)
Aws::TimestreamQuery::Model::Datum::NullValueHasBeenSet
bool NullValueHasBeenSet() const
Definition: Datum.h:216
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::TimestreamQuery::Model::Datum::TimeSeriesValueHasBeenSet
bool TimeSeriesValueHasBeenSet() const
Definition: Datum.h:103
AWSVector.h
Aws::TimestreamQuery::Model::TimeSeriesDataPoint
Definition: TimeSeriesDataPoint.h:38
Aws::TimestreamQuery::Model::Datum::WithScalarValue
Datum & WithScalarValue(Aws::String &&value)
Definition: Datum.h:86
TimestreamQuery_EXPORTS.h
Aws::TimestreamQuery::Model::Datum::WithRowValue
Datum & WithRowValue(Row &&value)
Aws::TimestreamQuery::Model::Datum::AddTimeSeriesValue
Datum & AddTimeSeriesValue(const TimeSeriesDataPoint &value)
Definition: Datum.h:128
Aws::TimestreamQuery::Model::Datum::AddArrayValue
Datum & AddArrayValue(const Datum &value)
Definition: Datum.h:169
TimeSeriesDataPoint.h
Aws::TimestreamQuery::Model::Datum::Datum
Datum()
Aws::TimestreamQuery::Model::Datum::WithArrayValue
Datum & WithArrayValue(const Aws::Vector< Datum > &value)
Definition: Datum.h:159
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::TimestreamQuery::Model::Datum::SetRowValue
void SetRowValue(const Row &value)
Aws::TimestreamQuery::Model::Datum::operator=
Datum & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::TimestreamQuery::Model::Datum::WithTimeSeriesValue
Datum & WithTimeSeriesValue(Aws::Vector< TimeSeriesDataPoint > &&value)
Definition: Datum.h:123
Aws::TimestreamQuery::Model::Datum::GetRowValue
const Row & GetRowValue() const
Datum.h
Aws::TimestreamQuery::Model::Datum::AddArrayValue
Datum & AddArrayValue(Datum &&value)
Definition: Datum.h:174
Aws::TimestreamQuery::Model::Row
Definition: Row.h:33
Aws::TimestreamQuery::Model::Datum::SetScalarValue
void SetScalarValue(const char *value)
Definition: Datum.h:74
Aws
Definition: AccessManagementClient.h:15
Aws::TimestreamQuery::Model::Datum::SetTimeSeriesValue
void SetTimeSeriesValue(const Aws::Vector< TimeSeriesDataPoint > &value)
Definition: Datum.h:108
Aws::TimestreamQuery::Model::Datum::WithScalarValue
Datum & WithScalarValue(const char *value)
Definition: Datum.h:92
Aws::TimestreamQuery::Model::Datum::GetNullValue
bool GetNullValue() const
Definition: Datum.h:211
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::TimestreamQuery::Model::Datum::WithScalarValue
Datum & WithScalarValue(const Aws::String &value)
Definition: Datum.h:80
Aws::TimestreamQuery::Model::Datum::RowValueHasBeenSet
bool RowValueHasBeenSet() const
Aws::TimestreamQuery::Model::Datum::GetScalarValue
const Aws::String & GetScalarValue() const
Definition: Datum.h:50
Aws::TimestreamQuery::Model::Datum::SetScalarValue
void SetScalarValue(const Aws::String &value)
Definition: Datum.h:62
Aws::TimestreamQuery::Model::Datum::SetNullValue
void SetNullValue(bool value)
Definition: Datum.h:221
Aws::TimestreamQuery::Model::Datum::ScalarValueHasBeenSet
bool ScalarValueHasBeenSet() const
Definition: Datum.h:56
Aws::TimestreamQuery::Model::Datum::GetTimeSeriesValue
const Aws::Vector< TimeSeriesDataPoint > & GetTimeSeriesValue() const
Definition: Datum.h:98
Aws::TimestreamQuery::Model::Datum::SetTimeSeriesValue
void SetTimeSeriesValue(Aws::Vector< TimeSeriesDataPoint > &&value)
Definition: Datum.h:113
Aws::TimestreamQuery::Model::Datum::SetScalarValue
void SetScalarValue(Aws::String &&value)
Definition: Datum.h:68