AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TableExcerpt.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/TableRow.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
33 public:
34 AWS_KENDRA_API TableExcerpt() = default;
35 AWS_KENDRA_API TableExcerpt(Aws::Utils::Json::JsonView jsonValue);
37 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<TableRow>& GetRows() const { return m_rows; }
44 inline bool RowsHasBeenSet() const { return m_rowsHasBeenSet; }
45 template <typename RowsT = Aws::Vector<TableRow>>
46 void SetRows(RowsT&& value) {
47 m_rowsHasBeenSet = true;
48 m_rows = std::forward<RowsT>(value);
49 }
50 template <typename RowsT = Aws::Vector<TableRow>>
51 TableExcerpt& WithRows(RowsT&& value) {
52 SetRows(std::forward<RowsT>(value));
53 return *this;
54 }
55 template <typename RowsT = TableRow>
56 TableExcerpt& AddRows(RowsT&& value) {
57 m_rowsHasBeenSet = true;
58 m_rows.emplace_back(std::forward<RowsT>(value));
59 return *this;
60 }
62
64
67 inline int GetTotalNumberOfRows() const { return m_totalNumberOfRows; }
68 inline bool TotalNumberOfRowsHasBeenSet() const { return m_totalNumberOfRowsHasBeenSet; }
69 inline void SetTotalNumberOfRows(int value) {
70 m_totalNumberOfRowsHasBeenSet = true;
71 m_totalNumberOfRows = value;
72 }
75 return *this;
76 }
78 private:
80
81 int m_totalNumberOfRows{0};
82 bool m_rowsHasBeenSet = false;
83 bool m_totalNumberOfRowsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace kendra
88} // 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