7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchmemory/OpenSearchMemory_EXPORTS.h>
10#include <aws/opensearchmemory/model/SystemMetadata.h>
21namespace OpenSearchMemory {
46 template <
typename EventIdT = Aws::String>
48 m_eventIdHasBeenSet =
true;
49 m_eventId = std::forward<EventIdT>(value);
51 template <
typename EventIdT = Aws::String>
64 inline double GetScore()
const {
return m_score; }
67 m_scoreHasBeenSet =
true;
86 template <
typename SystemMetadataT = SystemMetadata>
88 m_systemMetadataHasBeenSet =
true;
89 m_systemMetadata = std::forward<SystemMetadataT>(value);
91 template <
typename SystemMetadataT = SystemMetadata>
105 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
107 m_metadataHasBeenSet =
true;
108 m_metadata = std::forward<MetadataT>(value);
110 template <
typename MetadataT = Aws::Map<Aws::String, Aws::String>>
115 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::String>
117 m_metadataHasBeenSet =
true;
118 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
129 template <
typename MatchedContentT = Aws::String>
131 m_matchedContentHasBeenSet =
true;
132 m_matchedContent = std::forward<MatchedContentT>(value);
134 template <
typename MatchedContentT = Aws::String>
145 SystemMetadata m_systemMetadata;
150 bool m_eventIdHasBeenSet =
false;
151 bool m_scoreHasBeenSet =
false;
152 bool m_systemMetadataHasBeenSet =
false;
153 bool m_metadataHasBeenSet =
false;
154 bool m_matchedContentHasBeenSet =
false;
AWS_OPENSEARCHMEMORY_API EventSearchSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEventId() const
void SetScore(double value)
bool ScoreHasBeenSet() const
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
bool SystemMetadataHasBeenSet() const
bool MetadataHasBeenSet() const
EventSearchSummary & WithMetadata(MetadataT &&value)
void SetMetadata(MetadataT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
AWS_OPENSEARCHMEMORY_API EventSearchSummary()=default
void SetMatchedContent(MatchedContentT &&value)
EventSearchSummary & WithSystemMetadata(SystemMetadataT &&value)
EventSearchSummary & WithScore(double value)
void SetEventId(EventIdT &&value)
bool MatchedContentHasBeenSet() const
AWS_OPENSEARCHMEMORY_API EventSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
bool EventIdHasBeenSet() const
EventSearchSummary & WithEventId(EventIdT &&value)
void SetSystemMetadata(SystemMetadataT &&value)
EventSearchSummary & WithMatchedContent(MatchedContentT &&value)
EventSearchSummary & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
const SystemMetadata & GetSystemMetadata() const
const Aws::String & GetMatchedContent() const
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
Aws::Utils::Json::JsonValue JsonValue