AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
EventSearchSummary.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/opensearchmemory/OpenSearchMemory_EXPORTS.h>
10#include <aws/opensearchmemory/model/SystemMetadata.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchMemory {
22namespace Model {
23
33 public:
34 AWS_OPENSEARCHMEMORY_API EventSearchSummary() = default;
35 AWS_OPENSEARCHMEMORY_API EventSearchSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHMEMORY_API EventSearchSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetEventId() const { return m_eventId; }
45 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
46 template <typename EventIdT = Aws::String>
47 void SetEventId(EventIdT&& value) {
48 m_eventIdHasBeenSet = true;
49 m_eventId = std::forward<EventIdT>(value);
50 }
51 template <typename EventIdT = Aws::String>
52 EventSearchSummary& WithEventId(EventIdT&& value) {
53 SetEventId(std::forward<EventIdT>(value));
54 return *this;
55 }
57
59
64 inline double GetScore() const { return m_score; }
65 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
66 inline void SetScore(double value) {
67 m_scoreHasBeenSet = true;
68 m_score = value;
69 }
70 inline EventSearchSummary& WithScore(double value) {
71 SetScore(value);
72 return *this;
73 }
75
77
84 inline const SystemMetadata& GetSystemMetadata() const { return m_systemMetadata; }
85 inline bool SystemMetadataHasBeenSet() const { return m_systemMetadataHasBeenSet; }
86 template <typename SystemMetadataT = SystemMetadata>
87 void SetSystemMetadata(SystemMetadataT&& value) {
88 m_systemMetadataHasBeenSet = true;
89 m_systemMetadata = std::forward<SystemMetadataT>(value);
90 }
91 template <typename SystemMetadataT = SystemMetadata>
92 EventSearchSummary& WithSystemMetadata(SystemMetadataT&& value) {
93 SetSystemMetadata(std::forward<SystemMetadataT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
104 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
105 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
106 void SetMetadata(MetadataT&& value) {
107 m_metadataHasBeenSet = true;
108 m_metadata = std::forward<MetadataT>(value);
109 }
110 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
111 EventSearchSummary& WithMetadata(MetadataT&& value) {
112 SetMetadata(std::forward<MetadataT>(value));
113 return *this;
114 }
115 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
116 EventSearchSummary& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
117 m_metadataHasBeenSet = true;
118 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetMatchedContent() const { return m_matchedContent; }
128 inline bool MatchedContentHasBeenSet() const { return m_matchedContentHasBeenSet; }
129 template <typename MatchedContentT = Aws::String>
130 void SetMatchedContent(MatchedContentT&& value) {
131 m_matchedContentHasBeenSet = true;
132 m_matchedContent = std::forward<MatchedContentT>(value);
133 }
134 template <typename MatchedContentT = Aws::String>
135 EventSearchSummary& WithMatchedContent(MatchedContentT&& value) {
136 SetMatchedContent(std::forward<MatchedContentT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_eventId;
142
143 double m_score{0.0};
144
145 SystemMetadata m_systemMetadata;
146
148
149 Aws::String m_matchedContent;
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;
155};
156
157} // namespace Model
158} // namespace OpenSearchMemory
159} // namespace Aws
AWS_OPENSEARCHMEMORY_API EventSearchSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
EventSearchSummary & WithMetadata(MetadataT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
AWS_OPENSEARCHMEMORY_API EventSearchSummary()=default
EventSearchSummary & WithSystemMetadata(SystemMetadataT &&value)
EventSearchSummary & WithScore(double value)
AWS_OPENSEARCHMEMORY_API EventSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
EventSearchSummary & WithEventId(EventIdT &&value)
EventSearchSummary & WithMatchedContent(MatchedContentT &&value)
EventSearchSummary & AddMetadata(MetadataKeyT &&key, MetadataValueT &&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
Aws::Utils::Json::JsonValue JsonValue