AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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