AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TableCell.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace kendra {
20namespace Model {
21
28class TableCell {
29 public:
30 AWS_KENDRA_API TableCell() = default;
31 AWS_KENDRA_API TableCell(Aws::Utils::Json::JsonView jsonValue);
33 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetValue() const { return m_value; }
41 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
42 template <typename ValueT = Aws::String>
43 void SetValue(ValueT&& value) {
44 m_valueHasBeenSet = true;
45 m_value = std::forward<ValueT>(value);
46 }
47 template <typename ValueT = Aws::String>
48 TableCell& WithValue(ValueT&& value) {
49 SetValue(std::forward<ValueT>(value));
50 return *this;
51 }
53
55
60 inline bool GetTopAnswer() const { return m_topAnswer; }
61 inline bool TopAnswerHasBeenSet() const { return m_topAnswerHasBeenSet; }
62 inline void SetTopAnswer(bool value) {
63 m_topAnswerHasBeenSet = true;
64 m_topAnswer = value;
65 }
66 inline TableCell& WithTopAnswer(bool value) {
67 SetTopAnswer(value);
68 return *this;
69 }
71
73
77 inline bool GetHighlighted() const { return m_highlighted; }
78 inline bool HighlightedHasBeenSet() const { return m_highlightedHasBeenSet; }
79 inline void SetHighlighted(bool value) {
80 m_highlightedHasBeenSet = true;
81 m_highlighted = value;
82 }
83 inline TableCell& WithHighlighted(bool value) {
84 SetHighlighted(value);
85 return *this;
86 }
88
90
94 inline bool GetHeader() const { return m_header; }
95 inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; }
96 inline void SetHeader(bool value) {
97 m_headerHasBeenSet = true;
98 m_header = value;
99 }
100 inline TableCell& WithHeader(bool value) {
101 SetHeader(value);
102 return *this;
103 }
105 private:
106 Aws::String m_value;
107
108 bool m_topAnswer{false};
109
110 bool m_highlighted{false};
111
112 bool m_header{false};
113 bool m_valueHasBeenSet = false;
114 bool m_topAnswerHasBeenSet = false;
115 bool m_highlightedHasBeenSet = false;
116 bool m_headerHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace kendra
121} // namespace Aws
TableCell & WithHighlighted(bool value)
Definition TableCell.h:83
const Aws::String & GetValue() const
Definition TableCell.h:40
bool HighlightedHasBeenSet() const
Definition TableCell.h:78
AWS_KENDRA_API TableCell & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API TableCell(Aws::Utils::Json::JsonView jsonValue)
void SetHeader(bool value)
Definition TableCell.h:96
void SetHighlighted(bool value)
Definition TableCell.h:79
void SetTopAnswer(bool value)
Definition TableCell.h:62
TableCell & WithHeader(bool value)
Definition TableCell.h:100
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValue(ValueT &&value)
Definition TableCell.h:43
bool TopAnswerHasBeenSet() const
Definition TableCell.h:61
TableCell & WithValue(ValueT &&value)
Definition TableCell.h:48
AWS_KENDRA_API TableCell()=default
TableCell & WithTopAnswer(bool value)
Definition TableCell.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue