AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
MemorySearchSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearchmemory/OpenSearchMemory_EXPORTS.h>
11#include <aws/opensearchmemory/model/MemoryType.h>
12#include <aws/opensearchmemory/model/SystemMetadata.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchMemory {
24namespace Model {
25
33 public:
34 AWS_OPENSEARCHMEMORY_API MemorySearchSummary() = default;
35 AWS_OPENSEARCHMEMORY_API MemorySearchSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHMEMORY_API MemorySearchSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetMemoryId() const { return m_memoryId; }
44 inline bool MemoryIdHasBeenSet() const { return m_memoryIdHasBeenSet; }
45 template <typename MemoryIdT = Aws::String>
46 void SetMemoryId(MemoryIdT&& value) {
47 m_memoryIdHasBeenSet = true;
48 m_memoryId = std::forward<MemoryIdT>(value);
49 }
50 template <typename MemoryIdT = Aws::String>
51 MemorySearchSummary& WithMemoryId(MemoryIdT&& value) {
52 SetMemoryId(std::forward<MemoryIdT>(value));
53 return *this;
54 }
56
58
61 inline MemoryType GetMemoryType() const { return m_memoryType; }
62 inline bool MemoryTypeHasBeenSet() const { return m_memoryTypeHasBeenSet; }
63 inline void SetMemoryType(MemoryType value) {
64 m_memoryTypeHasBeenSet = true;
65 m_memoryType = value;
66 }
68 SetMemoryType(value);
69 return *this;
70 }
72
74
80 inline const Aws::String& GetStrategyName() const { return m_strategyName; }
81 inline bool StrategyNameHasBeenSet() const { return m_strategyNameHasBeenSet; }
82 template <typename StrategyNameT = Aws::String>
83 void SetStrategyName(StrategyNameT&& value) {
84 m_strategyNameHasBeenSet = true;
85 m_strategyName = std::forward<StrategyNameT>(value);
86 }
87 template <typename StrategyNameT = Aws::String>
88 MemorySearchSummary& WithStrategyName(StrategyNameT&& value) {
89 SetStrategyName(std::forward<StrategyNameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetContent() const { return m_content; }
99 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
100 template <typename ContentT = Aws::String>
101 void SetContent(ContentT&& value) {
102 m_contentHasBeenSet = true;
103 m_content = std::forward<ContentT>(value);
104 }
105 template <typename ContentT = Aws::String>
106 MemorySearchSummary& WithContent(ContentT&& value) {
107 SetContent(std::forward<ContentT>(value));
108 return *this;
109 }
111
113
118 inline double GetScore() const { return m_score; }
119 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
120 inline void SetScore(double value) {
121 m_scoreHasBeenSet = true;
122 m_score = value;
123 }
124 inline MemorySearchSummary& WithScore(double value) {
125 SetScore(value);
126 return *this;
127 }
129
131
140 inline const SystemMetadata& GetSystemMetadata() const { return m_systemMetadata; }
141 inline bool SystemMetadataHasBeenSet() const { return m_systemMetadataHasBeenSet; }
142 template <typename SystemMetadataT = SystemMetadata>
143 void SetSystemMetadata(SystemMetadataT&& value) {
144 m_systemMetadataHasBeenSet = true;
145 m_systemMetadata = std::forward<SystemMetadataT>(value);
146 }
147 template <typename SystemMetadataT = SystemMetadata>
148 MemorySearchSummary& WithSystemMetadata(SystemMetadataT&& value) {
149 SetSystemMetadata(std::forward<SystemMetadataT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
160 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
161 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
162 void SetMetadata(MetadataT&& value) {
163 m_metadataHasBeenSet = true;
164 m_metadata = std::forward<MetadataT>(value);
165 }
166 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
167 MemorySearchSummary& WithMetadata(MetadataT&& value) {
168 SetMetadata(std::forward<MetadataT>(value));
169 return *this;
170 }
171 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
172 MemorySearchSummary& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
173 m_metadataHasBeenSet = true;
174 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
175 return *this;
176 }
178
180
188 inline const Aws::Vector<Aws::String>& GetSourceEventIds() const { return m_sourceEventIds; }
189 inline bool SourceEventIdsHasBeenSet() const { return m_sourceEventIdsHasBeenSet; }
190 template <typename SourceEventIdsT = Aws::Vector<Aws::String>>
191 void SetSourceEventIds(SourceEventIdsT&& value) {
192 m_sourceEventIdsHasBeenSet = true;
193 m_sourceEventIds = std::forward<SourceEventIdsT>(value);
194 }
195 template <typename SourceEventIdsT = Aws::Vector<Aws::String>>
196 MemorySearchSummary& WithSourceEventIds(SourceEventIdsT&& value) {
197 SetSourceEventIds(std::forward<SourceEventIdsT>(value));
198 return *this;
199 }
200 template <typename SourceEventIdsT = Aws::String>
201 MemorySearchSummary& AddSourceEventIds(SourceEventIdsT&& value) {
202 m_sourceEventIdsHasBeenSet = true;
203 m_sourceEventIds.emplace_back(std::forward<SourceEventIdsT>(value));
204 return *this;
205 }
207 private:
208 Aws::String m_memoryId;
209
210 MemoryType m_memoryType{MemoryType::NOT_SET};
211
212 Aws::String m_strategyName;
213
214 Aws::String m_content;
215
216 double m_score{0.0};
217
218 SystemMetadata m_systemMetadata;
219
221
222 Aws::Vector<Aws::String> m_sourceEventIds;
223 bool m_memoryIdHasBeenSet = false;
224 bool m_memoryTypeHasBeenSet = false;
225 bool m_strategyNameHasBeenSet = false;
226 bool m_contentHasBeenSet = false;
227 bool m_scoreHasBeenSet = false;
228 bool m_systemMetadataHasBeenSet = false;
229 bool m_metadataHasBeenSet = false;
230 bool m_sourceEventIdsHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace OpenSearchMemory
235} // namespace Aws
MemorySearchSummary & WithSystemMetadata(SystemMetadataT &&value)
MemorySearchSummary & WithSourceEventIds(SourceEventIdsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHMEMORY_API MemorySearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
MemorySearchSummary & AddSourceEventIds(SourceEventIdsT &&value)
MemorySearchSummary & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
MemorySearchSummary & WithMemoryId(MemoryIdT &&value)
MemorySearchSummary & WithMetadata(MetadataT &&value)
AWS_OPENSEARCHMEMORY_API MemorySearchSummary()=default
const Aws::Vector< Aws::String > & GetSourceEventIds() const
MemorySearchSummary & WithContent(ContentT &&value)
MemorySearchSummary & WithStrategyName(StrategyNameT &&value)
AWS_OPENSEARCHMEMORY_API MemorySearchSummary(Aws::Utils::Json::JsonView jsonValue)
MemorySearchSummary & WithMemoryType(MemoryType value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue