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>
67 template <
typename DocumentIdT = Aws::String>
69 m_documentIdHasBeenSet =
true;
70 m_documentId = std::forward<DocumentIdT>(value);
72 template <
typename DocumentIdT = Aws::String>
85 template <
typename LocationT = RetrievalResultLocation>
87 m_locationHasBeenSet =
true;
88 m_location = std::forward<LocationT>(value);
90 template <
typename LocationT = RetrievalResultLocation>
106 template <
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
108 m_metadataHasBeenSet =
true;
109 m_metadata = std::forward<MetadataT>(value);
111 template <
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
116 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::Utils::Document>
118 m_metadataHasBeenSet =
true;
119 m_metadata.emplace(std::forward<MetadataKeyT>(
key), std::forward<MetadataValueT>(value));
131 m_scoreHasBeenSet =
true;
149 bool m_contentHasBeenSet =
false;
150 bool m_documentIdHasBeenSet =
false;
151 bool m_locationHasBeenSet =
false;
152 bool m_metadataHasBeenSet =
false;
153 bool m_scoreHasBeenSet =
false;
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult(Aws::Utils::Json::JsonView jsonValue)
void SetDocumentId(DocumentIdT &&value)
bool ContentHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult()=default
const Aws::Map< Aws::String, Aws::Utils::Document > & GetMetadata() const
KnowledgeBaseRetrievalResult & WithScore(double value)
const Aws::String & GetDocumentId() const
KnowledgeBaseRetrievalResult & WithDocumentId(DocumentIdT &&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)
bool DocumentIdHasBeenSet() const
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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue