AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
TableExcerpt.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/model/TableRow.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 kendra
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_KENDRA_API TableExcerpt() = default;
40 AWS_KENDRA_API TableExcerpt(Aws::Utils::Json::JsonView jsonValue);
42 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<TableRow>& GetRows() const { return m_rows; }
50 inline bool RowsHasBeenSet() const { return m_rowsHasBeenSet; }
51 template<typename RowsT = Aws::Vector<TableRow>>
52 void SetRows(RowsT&& value) { m_rowsHasBeenSet = true; m_rows = std::forward<RowsT>(value); }
53 template<typename RowsT = Aws::Vector<TableRow>>
54 TableExcerpt& WithRows(RowsT&& value) { SetRows(std::forward<RowsT>(value)); return *this;}
55 template<typename RowsT = TableRow>
56 TableExcerpt& AddRows(RowsT&& value) { m_rowsHasBeenSet = true; m_rows.emplace_back(std::forward<RowsT>(value)); return *this; }
58
60
63 inline int GetTotalNumberOfRows() const { return m_totalNumberOfRows; }
64 inline bool TotalNumberOfRowsHasBeenSet() const { return m_totalNumberOfRowsHasBeenSet; }
65 inline void SetTotalNumberOfRows(int value) { m_totalNumberOfRowsHasBeenSet = true; m_totalNumberOfRows = value; }
66 inline TableExcerpt& WithTotalNumberOfRows(int value) { SetTotalNumberOfRows(value); return *this;}
68 private:
69
71 bool m_rowsHasBeenSet = false;
72
73 int m_totalNumberOfRows{0};
74 bool m_totalNumberOfRowsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace kendra
79} // namespace Aws
TableExcerpt & WithTotalNumberOfRows(int value)
AWS_KENDRA_API TableExcerpt & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API TableExcerpt()=default
TableExcerpt & WithRows(RowsT &&value)
AWS_KENDRA_API TableExcerpt(Aws::Utils::Json::JsonView jsonValue)
TableExcerpt & AddRows(RowsT &&value)
const Aws::Vector< TableRow > & GetRows() const
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue