AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
Row.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTTwinMaker {
21namespace Model {
22
28class Row {
29 public:
30 AWS_IOTTWINMAKER_API Row() = default;
31 AWS_IOTTWINMAKER_API Row(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTTWINMAKER_API Row& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Aws::Utils::Document>& GetRowData() const { return m_rowData; }
40 inline bool RowDataHasBeenSet() const { return m_rowDataHasBeenSet; }
41 template <typename RowDataT = Aws::Vector<Aws::Utils::Document>>
42 void SetRowData(RowDataT&& value) {
43 m_rowDataHasBeenSet = true;
44 m_rowData = std::forward<RowDataT>(value);
45 }
46 template <typename RowDataT = Aws::Vector<Aws::Utils::Document>>
47 Row& WithRowData(RowDataT&& value) {
48 SetRowData(std::forward<RowDataT>(value));
49 return *this;
50 }
51 template <typename RowDataT = Aws::Utils::Document>
52 Row& AddRowData(RowDataT&& value) {
53 m_rowDataHasBeenSet = true;
54 m_rowData.emplace_back(std::forward<RowDataT>(value));
55 return *this;
56 }
58 private:
60 bool m_rowDataHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace IoTTwinMaker
65} // namespace Aws
Row & WithRowData(RowDataT &&value)
Definition Row.h:47
AWS_IOTTWINMAKER_API Row()=default
AWS_IOTTWINMAKER_API Row(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Utils::Document > & GetRowData() const
Definition Row.h:39
Row & AddRowData(RowDataT &&value)
Definition Row.h:52
bool RowDataHasBeenSet() const
Definition Row.h:40
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRowData(RowDataT &&value)
Definition Row.h:42
AWS_IOTTWINMAKER_API Row & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue