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>
25namespace BedrockAgentRuntime
54 template<
typename ContentT = RetrievalResultContent>
55 void SetContent(ContentT&& value) { m_contentHasBeenSet =
true; m_content = std::forward<ContentT>(value); }
56 template<
typename ContentT = RetrievalResultContent>
66 template<
typename LocationT = RetrievalResultLocation>
67 void SetLocation(LocationT&& value) { m_locationHasBeenSet =
true; m_location = std::forward<LocationT>(value); }
68 template<
typename LocationT = RetrievalResultLocation>
81 template<
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
82 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet =
true; m_metadata = std::forward<MetadataT>(value); }
83 template<
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
85 template<
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::Utils::Document>
87 m_metadataHasBeenSet =
true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
return *
this;
95 inline double GetScore()
const {
return m_score; }
97 inline void SetScore(
double value) { m_scoreHasBeenSet =
true; m_score = value; }
103 bool m_contentHasBeenSet =
false;
106 bool m_locationHasBeenSet =
false;
109 bool m_metadataHasBeenSet =
false;
112 bool m_scoreHasBeenSet =
false;
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult(Aws::Utils::Json::JsonView jsonValue)
bool ContentHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult()=default
const Aws::Map< Aws::String, Aws::Utils::Document > & GetMetadata() const
KnowledgeBaseRetrievalResult & WithScore(double value)
bool ScoreHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMetadata(MetadataT &&value)
void SetScore(double value)
void SetContent(ContentT &&value)
KnowledgeBaseRetrievalResult & WithLocation(LocationT &&value)
const RetrievalResultLocation & GetLocation() const
void SetLocation(LocationT &&value)
KnowledgeBaseRetrievalResult & WithMetadata(MetadataT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
bool MetadataHasBeenSet() const
bool LocationHasBeenSet() const
const RetrievalResultContent & GetContent() const
KnowledgeBaseRetrievalResult & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
KnowledgeBaseRetrievalResult & WithContent(ContentT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue