AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
Search.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace kendra {
17namespace Model {
18
25class Search {
26 public:
27 AWS_KENDRA_API Search() = default;
28 AWS_KENDRA_API Search(Aws::Utils::Json::JsonView jsonValue);
29 AWS_KENDRA_API Search& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline bool GetFacetable() const { return m_facetable; }
38 inline bool FacetableHasBeenSet() const { return m_facetableHasBeenSet; }
39 inline void SetFacetable(bool value) {
40 m_facetableHasBeenSet = true;
41 m_facetable = value;
42 }
43 inline Search& WithFacetable(bool value) {
44 SetFacetable(value);
45 return *this;
46 }
48
50
57 inline bool GetSearchable() const { return m_searchable; }
58 inline bool SearchableHasBeenSet() const { return m_searchableHasBeenSet; }
59 inline void SetSearchable(bool value) {
60 m_searchableHasBeenSet = true;
61 m_searchable = value;
62 }
63 inline Search& WithSearchable(bool value) {
64 SetSearchable(value);
65 return *this;
66 }
68
70
74 inline bool GetDisplayable() const { return m_displayable; }
75 inline bool DisplayableHasBeenSet() const { return m_displayableHasBeenSet; }
76 inline void SetDisplayable(bool value) {
77 m_displayableHasBeenSet = true;
78 m_displayable = value;
79 }
80 inline Search& WithDisplayable(bool value) {
81 SetDisplayable(value);
82 return *this;
83 }
85
87
93 inline bool GetSortable() const { return m_sortable; }
94 inline bool SortableHasBeenSet() const { return m_sortableHasBeenSet; }
95 inline void SetSortable(bool value) {
96 m_sortableHasBeenSet = true;
97 m_sortable = value;
98 }
99 inline Search& WithSortable(bool value) {
100 SetSortable(value);
101 return *this;
102 }
104 private:
105 bool m_facetable{false};
106
107 bool m_searchable{false};
108
109 bool m_displayable{false};
110
111 bool m_sortable{false};
112 bool m_facetableHasBeenSet = false;
113 bool m_searchableHasBeenSet = false;
114 bool m_displayableHasBeenSet = false;
115 bool m_sortableHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace kendra
120} // namespace Aws
void SetSearchable(bool value)
Definition Search.h:59
Search & WithDisplayable(bool value)
Definition Search.h:80
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
bool DisplayableHasBeenSet() const
Definition Search.h:75
AWS_KENDRA_API Search(Aws::Utils::Json::JsonView jsonValue)
bool FacetableHasBeenSet() const
Definition Search.h:38
bool GetFacetable() const
Definition Search.h:37
bool SearchableHasBeenSet() const
Definition Search.h:58
void SetDisplayable(bool value)
Definition Search.h:76
Search & WithSearchable(bool value)
Definition Search.h:63
Search & WithFacetable(bool value)
Definition Search.h:43
bool GetSearchable() const
Definition Search.h:57
bool SortableHasBeenSet() const
Definition Search.h:94
void SetFacetable(bool value)
Definition Search.h:39
AWS_KENDRA_API Search & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Search()=default
Search & WithSortable(bool value)
Definition Search.h:99
void SetSortable(bool value)
Definition Search.h:95
bool GetSortable() const
Definition Search.h:93
bool GetDisplayable() const
Definition Search.h:74
Aws::Utils::Json::JsonValue JsonValue