AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
FacetResult.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#include <aws/kendra/model/DocumentAttributeValueCountPair.h>
11#include <aws/kendra/model/DocumentAttributeValueType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace kendra {
23namespace Model {
24class DocumentAttributeValueCountPair;
25
33 public:
34 AWS_KENDRA_API FacetResult() = default;
35 AWS_KENDRA_API FacetResult(Aws::Utils::Json::JsonView jsonValue);
37 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetDocumentAttributeKey() const { return m_documentAttributeKey; }
45 inline bool DocumentAttributeKeyHasBeenSet() const { return m_documentAttributeKeyHasBeenSet; }
46 template <typename DocumentAttributeKeyT = Aws::String>
47 void SetDocumentAttributeKey(DocumentAttributeKeyT&& value) {
48 m_documentAttributeKeyHasBeenSet = true;
49 m_documentAttributeKey = std::forward<DocumentAttributeKeyT>(value);
50 }
51 template <typename DocumentAttributeKeyT = Aws::String>
52 FacetResult& WithDocumentAttributeKey(DocumentAttributeKeyT&& value) {
53 SetDocumentAttributeKey(std::forward<DocumentAttributeKeyT>(value));
54 return *this;
55 }
57
59
63 inline DocumentAttributeValueType GetDocumentAttributeValueType() const { return m_documentAttributeValueType; }
64 inline bool DocumentAttributeValueTypeHasBeenSet() const { return m_documentAttributeValueTypeHasBeenSet; }
66 m_documentAttributeValueTypeHasBeenSet = true;
67 m_documentAttributeValueType = value;
68 }
71 return *this;
72 }
74
76
81 return m_documentAttributeValueCountPairs;
82 }
83 inline bool DocumentAttributeValueCountPairsHasBeenSet() const { return m_documentAttributeValueCountPairsHasBeenSet; }
84 template <typename DocumentAttributeValueCountPairsT = Aws::Vector<DocumentAttributeValueCountPair>>
85 void SetDocumentAttributeValueCountPairs(DocumentAttributeValueCountPairsT&& value) {
86 m_documentAttributeValueCountPairsHasBeenSet = true;
87 m_documentAttributeValueCountPairs = std::forward<DocumentAttributeValueCountPairsT>(value);
88 }
89 template <typename DocumentAttributeValueCountPairsT = Aws::Vector<DocumentAttributeValueCountPair>>
90 FacetResult& WithDocumentAttributeValueCountPairs(DocumentAttributeValueCountPairsT&& value) {
91 SetDocumentAttributeValueCountPairs(std::forward<DocumentAttributeValueCountPairsT>(value));
92 return *this;
93 }
94 template <typename DocumentAttributeValueCountPairsT = DocumentAttributeValueCountPair>
95 FacetResult& AddDocumentAttributeValueCountPairs(DocumentAttributeValueCountPairsT&& value) {
96 m_documentAttributeValueCountPairsHasBeenSet = true;
97 m_documentAttributeValueCountPairs.emplace_back(std::forward<DocumentAttributeValueCountPairsT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_documentAttributeKey;
103 bool m_documentAttributeKeyHasBeenSet = false;
104
106 bool m_documentAttributeValueTypeHasBeenSet = false;
107
108 Aws::Vector<DocumentAttributeValueCountPair> m_documentAttributeValueCountPairs;
109 bool m_documentAttributeValueCountPairsHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace kendra
114} // namespace Aws
FacetResult & WithDocumentAttributeValueType(DocumentAttributeValueType value)
Definition FacetResult.h:69
bool DocumentAttributeValueTypeHasBeenSet() const
Definition FacetResult.h:64
AWS_KENDRA_API FacetResult(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API FacetResult & operator=(Aws::Utils::Json::JsonView jsonValue)
FacetResult & AddDocumentAttributeValueCountPairs(DocumentAttributeValueCountPairsT &&value)
Definition FacetResult.h:95
void SetDocumentAttributeValueCountPairs(DocumentAttributeValueCountPairsT &&value)
Definition FacetResult.h:85
bool DocumentAttributeKeyHasBeenSet() const
Definition FacetResult.h:45
FacetResult & WithDocumentAttributeValueCountPairs(DocumentAttributeValueCountPairsT &&value)
Definition FacetResult.h:90
const Aws::String & GetDocumentAttributeKey() const
Definition FacetResult.h:44
const Aws::Vector< DocumentAttributeValueCountPair > & GetDocumentAttributeValueCountPairs() const
Definition FacetResult.h:80
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDocumentAttributeKey(DocumentAttributeKeyT &&value)
Definition FacetResult.h:47
AWS_KENDRA_API FacetResult()=default
DocumentAttributeValueType GetDocumentAttributeValueType() const
Definition FacetResult.h:63
void SetDocumentAttributeValueType(DocumentAttributeValueType value)
Definition FacetResult.h:65
FacetResult & WithDocumentAttributeKey(DocumentAttributeKeyT &&value)
Definition FacetResult.h:52
bool DocumentAttributeValueCountPairsHasBeenSet() const
Definition FacetResult.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue