AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Facet.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/Kendra_EXPORTS.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
34class Facet {
35 public:
36 AWS_KENDRA_API Facet() = default;
37 AWS_KENDRA_API Facet(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KENDRA_API Facet& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetDocumentAttributeKey() const { return m_documentAttributeKey; }
46 inline bool DocumentAttributeKeyHasBeenSet() const { return m_documentAttributeKeyHasBeenSet; }
47 template <typename DocumentAttributeKeyT = Aws::String>
48 void SetDocumentAttributeKey(DocumentAttributeKeyT&& value) {
49 m_documentAttributeKeyHasBeenSet = true;
50 m_documentAttributeKey = std::forward<DocumentAttributeKeyT>(value);
51 }
52 template <typename DocumentAttributeKeyT = Aws::String>
53 Facet& WithDocumentAttributeKey(DocumentAttributeKeyT&& value) {
54 SetDocumentAttributeKey(std::forward<DocumentAttributeKeyT>(value));
55 return *this;
56 }
58
60
72 inline const Aws::Vector<Facet>& GetFacets() const { return m_facets; }
73 inline bool FacetsHasBeenSet() const { return m_facetsHasBeenSet; }
74 template <typename FacetsT = Aws::Vector<Facet>>
75 void SetFacets(FacetsT&& value) {
76 m_facetsHasBeenSet = true;
77 m_facets = std::forward<FacetsT>(value);
78 }
79 template <typename FacetsT = Aws::Vector<Facet>>
80 Facet& WithFacets(FacetsT&& value) {
81 SetFacets(std::forward<FacetsT>(value));
82 return *this;
83 }
84 template <typename FacetsT = Facet>
85 Facet& AddFacets(FacetsT&& value) {
86 m_facetsHasBeenSet = true;
87 m_facets.emplace_back(std::forward<FacetsT>(value));
88 return *this;
89 }
91
93
98 inline int GetMaxResults() const { return m_maxResults; }
99 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
100 inline void SetMaxResults(int value) {
101 m_maxResultsHasBeenSet = true;
102 m_maxResults = value;
103 }
104 inline Facet& WithMaxResults(int value) {
105 SetMaxResults(value);
106 return *this;
107 }
109 private:
110 Aws::String m_documentAttributeKey;
111
112 Aws::Vector<Facet> m_facets;
113
114 int m_maxResults{0};
115 bool m_documentAttributeKeyHasBeenSet = false;
116 bool m_facetsHasBeenSet = false;
117 bool m_maxResultsHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace kendra
122} // namespace Aws
void SetFacets(FacetsT &&value)
Definition Facet.h:75
AWS_KENDRA_API Facet()=default
Facet & WithMaxResults(int value)
Definition Facet.h:104
bool FacetsHasBeenSet() const
Definition Facet.h:73
Facet & WithDocumentAttributeKey(DocumentAttributeKeyT &&value)
Definition Facet.h:53
const Aws::String & GetDocumentAttributeKey() const
Definition Facet.h:45
void SetDocumentAttributeKey(DocumentAttributeKeyT &&value)
Definition Facet.h:48
Facet & AddFacets(FacetsT &&value)
Definition Facet.h:85
Facet & WithFacets(FacetsT &&value)
Definition Facet.h:80
int GetMaxResults() const
Definition Facet.h:98
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMaxResults(int value)
Definition Facet.h:100
AWS_KENDRA_API Facet & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DocumentAttributeKeyHasBeenSet() const
Definition Facet.h:46
bool MaxResultsHasBeenSet() const
Definition Facet.h:99
const Aws::Vector< Facet > & GetFacets() const
Definition Facet.h:72
AWS_KENDRA_API Facet(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue