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>
23namespace OpenSearchMemory {
45 template <
typename MemoryIdT = Aws::String>
47 m_memoryIdHasBeenSet =
true;
48 m_memoryId = std::forward<MemoryIdT>(value);
50 template <
typename MemoryIdT = Aws::String>
64 m_memoryTypeHasBeenSet =
true;
82 template <
typename StrategyNameT = Aws::String>
84 m_strategyNameHasBeenSet =
true;
85 m_strategyName = std::forward<StrategyNameT>(value);
87 template <
typename StrategyNameT = Aws::String>
100 template <
typename ContentT = Aws::String>
102 m_contentHasBeenSet =
true;
103 m_content = std::forward<ContentT>(value);
105 template <
typename ContentT = Aws::String>
121 m_scoreHasBeenSet =
true;
142 template <
typename SystemMetadataT = SystemMetadata>
144 m_systemMetadataHasBeenSet =
true;
145 m_systemMetadata = std::forward<SystemMetadataT>(value);
147 template <
typename SystemMetadataT = SystemMetadata>
161 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
163 m_metadataHasBeenSet =
true;
164 m_metadata = std::forward<MetadataT>(value);
166 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
171 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::String>
173 m_metadataHasBeenSet =
true;
174 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
190 template <
typename SourceEventIdsT = Aws::Vector<Aws::String>>
192 m_sourceEventIdsHasBeenSet =
true;
193 m_sourceEventIds = std::forward<SourceEventIdsT>(value);
195 template <
typename SourceEventIdsT = Aws::Vector<Aws::String>>
200 template <
typename SourceEventIdsT = Aws::String>
202 m_sourceEventIdsHasBeenSet =
true;
203 m_sourceEventIds.emplace_back(std::forward<SourceEventIdsT>(value));
218 SystemMetadata m_systemMetadata;
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;
MemorySearchSummary & WithSystemMetadata(SystemMetadataT &&value)
void SetStrategyName(StrategyNameT &&value)
bool ContentHasBeenSet() const
void SetMemoryId(MemoryIdT &&value)
MemorySearchSummary & WithSourceEventIds(SourceEventIdsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetMemoryType(MemoryType value)
MemoryType GetMemoryType() const
void SetSystemMetadata(SystemMetadataT &&value)
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHMEMORY_API MemorySearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
MemorySearchSummary & AddSourceEventIds(SourceEventIdsT &&value)
bool MetadataHasBeenSet() const
MemorySearchSummary & WithScore(double value)
MemorySearchSummary & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
MemorySearchSummary & WithMemoryId(MemoryIdT &&value)
bool SystemMetadataHasBeenSet() const
MemorySearchSummary & WithMetadata(MetadataT &&value)
void SetScore(double value)
bool ScoreHasBeenSet() const
const SystemMetadata & GetSystemMetadata() const
bool SourceEventIdsHasBeenSet() const
const Aws::String & GetStrategyName() const
const Aws::String & GetMemoryId() const
const Aws::String & GetContent() const
AWS_OPENSEARCHMEMORY_API MemorySearchSummary()=default
const Aws::Vector< Aws::String > & GetSourceEventIds() const
void SetContent(ContentT &&value)
void SetSourceEventIds(SourceEventIdsT &&value)
MemorySearchSummary & WithContent(ContentT &&value)
bool StrategyNameHasBeenSet() const
MemorySearchSummary & WithStrategyName(StrategyNameT &&value)
bool MemoryTypeHasBeenSet() const
bool MemoryIdHasBeenSet() const
AWS_OPENSEARCHMEMORY_API MemorySearchSummary(Aws::Utils::Json::JsonView jsonValue)
MemorySearchSummary & WithMemoryType(MemoryType value)
void SetMetadata(MetadataT &&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