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/Document.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
23namespace BedrockAgentRuntime {
48 template <
typename ContentT = RetrievalResultContent>
50 m_contentHasBeenSet =
true;
51 m_content = std::forward<ContentT>(value);
53 template <
typename ContentT = RetrievalResultContent>
66 template <
typename LocationT = RetrievalResultLocation>
68 m_locationHasBeenSet =
true;
69 m_location = std::forward<LocationT>(value);
71 template <
typename LocationT = RetrievalResultLocation>
87 template <
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
89 m_metadataHasBeenSet =
true;
90 m_metadata = std::forward<MetadataT>(value);
92 template <
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
97 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::Utils::Document>
99 m_metadataHasBeenSet =
true;
100 m_metadata.emplace(std::forward<MetadataKeyT>(
key), std::forward<MetadataValueT>(value));
112 m_scoreHasBeenSet =
true;
128 bool m_contentHasBeenSet =
false;
129 bool m_locationHasBeenSet =
false;
130 bool m_metadataHasBeenSet =
false;
131 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue