AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
TableCell.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace kendra
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_KENDRA_API TableCell() = default;
36 AWS_KENDRA_API TableCell(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetValue() const { return m_value; }
47 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
48 template<typename ValueT = Aws::String>
49 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
50 template<typename ValueT = Aws::String>
51 TableCell& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
53
55
60 inline bool GetTopAnswer() const { return m_topAnswer; }
61 inline bool TopAnswerHasBeenSet() const { return m_topAnswerHasBeenSet; }
62 inline void SetTopAnswer(bool value) { m_topAnswerHasBeenSet = true; m_topAnswer = value; }
63 inline TableCell& WithTopAnswer(bool value) { SetTopAnswer(value); return *this;}
65
67
71 inline bool GetHighlighted() const { return m_highlighted; }
72 inline bool HighlightedHasBeenSet() const { return m_highlightedHasBeenSet; }
73 inline void SetHighlighted(bool value) { m_highlightedHasBeenSet = true; m_highlighted = value; }
74 inline TableCell& WithHighlighted(bool value) { SetHighlighted(value); return *this;}
76
78
82 inline bool GetHeader() const { return m_header; }
83 inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; }
84 inline void SetHeader(bool value) { m_headerHasBeenSet = true; m_header = value; }
85 inline TableCell& WithHeader(bool value) { SetHeader(value); return *this;}
87 private:
88
89 Aws::String m_value;
90 bool m_valueHasBeenSet = false;
91
92 bool m_topAnswer{false};
93 bool m_topAnswerHasBeenSet = false;
94
95 bool m_highlighted{false};
96 bool m_highlightedHasBeenSet = false;
97
98 bool m_header{false};
99 bool m_headerHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace kendra
104} // namespace Aws
TableCell & WithHighlighted(bool value)
Definition TableCell.h:74
const Aws::String & GetValue() const
Definition TableCell.h:46
bool HighlightedHasBeenSet() const
Definition TableCell.h:72
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:84
void SetHighlighted(bool value)
Definition TableCell.h:73
void SetTopAnswer(bool value)
Definition TableCell.h:62
TableCell & WithHeader(bool value)
Definition TableCell.h:85
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValue(ValueT &&value)
Definition TableCell.h:49
bool TopAnswerHasBeenSet() const
Definition TableCell.h:61
TableCell & WithValue(ValueT &&value)
Definition TableCell.h:51
AWS_KENDRA_API TableCell()=default
TableCell & WithTopAnswer(bool value)
Definition TableCell.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue