AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KnowledgeBaseRetrievalResult.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/RetrievalResultContent.h>
9#include <aws/bedrock-agent-runtime/model/RetrievalResultLocation.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/Document.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgentRuntime
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult();
43 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const RetrievalResultContent& GetContent() const{ return m_content; }
53 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
54 inline void SetContent(const RetrievalResultContent& value) { m_contentHasBeenSet = true; m_content = value; }
55 inline void SetContent(RetrievalResultContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
56 inline KnowledgeBaseRetrievalResult& WithContent(const RetrievalResultContent& value) { SetContent(value); return *this;}
57 inline KnowledgeBaseRetrievalResult& WithContent(RetrievalResultContent&& value) { SetContent(std::move(value)); return *this;}
59
61
64 inline const RetrievalResultLocation& GetLocation() const{ return m_location; }
65 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
66 inline void SetLocation(const RetrievalResultLocation& value) { m_locationHasBeenSet = true; m_location = value; }
67 inline void SetLocation(RetrievalResultLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
69 inline KnowledgeBaseRetrievalResult& WithLocation(RetrievalResultLocation&& value) { SetLocation(std::move(value)); return *this;}
71
73
79 inline const Aws::Map<Aws::String, Aws::Utils::Document>& GetMetadata() const{ return m_metadata; }
80 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
81 inline void SetMetadata(const Aws::Map<Aws::String, Aws::Utils::Document>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
82 inline void SetMetadata(Aws::Map<Aws::String, Aws::Utils::Document>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
85 inline KnowledgeBaseRetrievalResult& AddMetadata(const Aws::String& key, const Aws::Utils::Document& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
86 inline KnowledgeBaseRetrievalResult& AddMetadata(Aws::String&& key, const Aws::Utils::Document& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
87 inline KnowledgeBaseRetrievalResult& AddMetadata(const Aws::String& key, Aws::Utils::Document&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
88 inline KnowledgeBaseRetrievalResult& AddMetadata(Aws::String&& key, Aws::Utils::Document&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
89 inline KnowledgeBaseRetrievalResult& AddMetadata(const char* key, Aws::Utils::Document&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
90 inline KnowledgeBaseRetrievalResult& AddMetadata(const char* key, const Aws::Utils::Document& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
92
94
97 inline double GetScore() const{ return m_score; }
98 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
99 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
100 inline KnowledgeBaseRetrievalResult& WithScore(double value) { SetScore(value); return *this;}
102 private:
103
104 RetrievalResultContent m_content;
105 bool m_contentHasBeenSet = false;
106
107 RetrievalResultLocation m_location;
108 bool m_locationHasBeenSet = false;
109
111 bool m_metadataHasBeenSet = false;
112
113 double m_score;
114 bool m_scoreHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace BedrockAgentRuntime
119} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::Utils::Document > & GetMetadata() const
KnowledgeBaseRetrievalResult & AddMetadata(const char *key, const Aws::Utils::Document &value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult & operator=(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseRetrievalResult & WithLocation(RetrievalResultLocation &&value)
KnowledgeBaseRetrievalResult & WithContent(const RetrievalResultContent &value)
KnowledgeBaseRetrievalResult & AddMetadata(Aws::String &&key, Aws::Utils::Document &&value)
KnowledgeBaseRetrievalResult & WithMetadata(Aws::Map< Aws::String, Aws::Utils::Document > &&value)
void SetMetadata(const Aws::Map< Aws::String, Aws::Utils::Document > &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
KnowledgeBaseRetrievalResult & WithContent(RetrievalResultContent &&value)
KnowledgeBaseRetrievalResult & WithMetadata(const Aws::Map< Aws::String, Aws::Utils::Document > &value)
KnowledgeBaseRetrievalResult & AddMetadata(const Aws::String &key, const Aws::Utils::Document &value)
KnowledgeBaseRetrievalResult & AddMetadata(Aws::String &&key, const Aws::Utils::Document &value)
KnowledgeBaseRetrievalResult & AddMetadata(const Aws::String &key, Aws::Utils::Document &&value)
KnowledgeBaseRetrievalResult & AddMetadata(const char *key, Aws::Utils::Document &&value)
void SetMetadata(Aws::Map< Aws::String, Aws::Utils::Document > &&value)
KnowledgeBaseRetrievalResult & WithLocation(const RetrievalResultLocation &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