AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Row.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/Datum.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 IoTSiteWise
23{
24namespace Model
25{
26 class Datum;
27
33 class Row
34 {
35 public:
36 AWS_IOTSITEWISE_API Row() = default;
37 AWS_IOTSITEWISE_API Row(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTSITEWISE_API Row& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Datum>& GetData() const { return m_data; }
47 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
48 template<typename DataT = Aws::Vector<Datum>>
49 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
50 template<typename DataT = Aws::Vector<Datum>>
51 Row& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
52 template<typename DataT = Datum>
53 Row& AddData(DataT&& value) { m_dataHasBeenSet = true; m_data.emplace_back(std::forward<DataT>(value)); return *this; }
55 private:
56
57 Aws::Vector<Datum> m_data;
58 bool m_dataHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace IoTSiteWise
63} // namespace Aws
AWS_IOTSITEWISE_API Row & operator=(Aws::Utils::Json::JsonView jsonValue)
Row & WithData(DataT &&value)
Definition Row.h:51
void SetData(DataT &&value)
Definition Row.h:49
AWS_IOTSITEWISE_API Row()=default
const Aws::Vector< Datum > & GetData() const
Definition Row.h:46
AWS_IOTSITEWISE_API Row(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
bool DataHasBeenSet() const
Definition Row.h:47
Row & AddData(DataT &&value)
Definition Row.h:53
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue