AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetData(const Aws::Vector<Datum>& value) { m_dataHasBeenSet = true; m_data = value; }
49 inline void SetData(Aws::Vector<Datum>&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
50 inline Row& WithData(const Aws::Vector<Datum>& value) { SetData(value); return *this;}
51 inline Row& WithData(Aws::Vector<Datum>&& value) { SetData(std::move(value)); return *this;}
52 inline Row& AddData(const Datum& value) { m_dataHasBeenSet = true; m_data.push_back(value); return *this; }
53 inline Row& AddData(Datum&& value) { m_dataHasBeenSet = true; m_data.push_back(std::move(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(const Aws::Vector< Datum > &value)
Definition Row.h:50
void SetData(Aws::Vector< Datum > &&value)
Definition Row.h:49
Row & AddData(Datum &&value)
Definition Row.h:53
void SetData(const Aws::Vector< Datum > &value)
Definition Row.h:48
const Aws::Vector< Datum > & GetData() const
Definition Row.h:46
AWS_IOTSITEWISE_API Row(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Row()
Row & WithData(Aws::Vector< Datum > &&value)
Definition Row.h:51
Row & AddData(const Datum &value)
Definition Row.h:52
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
bool DataHasBeenSet() const
Definition Row.h:47
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue