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
97 inline double GetScore()
const{
return m_score; }
99 inline void SetScore(
double value) { m_scoreHasBeenSet =
true; m_score = value; }
105 bool m_contentHasBeenSet =
false;
108 bool m_locationHasBeenSet =
false;
111 bool m_metadataHasBeenSet =
false;
114 bool m_scoreHasBeenSet =
false;
void SetContent(RetrievalResultContent &&value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult(Aws::Utils::Json::JsonView jsonValue)
bool ContentHasBeenSet() const
void SetContent(const RetrievalResultContent &value)
const Aws::Map< Aws::String, Aws::Utils::Document > & GetMetadata() const
KnowledgeBaseRetrievalResult & WithScore(double value)
bool ScoreHasBeenSet() const
KnowledgeBaseRetrievalResult & AddMetadata(const char *key, const Aws::Utils::Document &value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScore(double value)
KnowledgeBaseRetrievalResult & WithLocation(RetrievalResultLocation &&value)
KnowledgeBaseRetrievalResult & WithContent(const RetrievalResultContent &value)
const RetrievalResultLocation & GetLocation() const
void SetLocation(RetrievalResultLocation &&value)
void SetLocation(const RetrievalResultLocation &value)
KnowledgeBaseRetrievalResult & AddMetadata(Aws::String &&key, Aws::Utils::Document &&value)
KnowledgeBaseRetrievalResult & WithMetadata(Aws::Map< Aws::String, Aws::Utils::Document > &&value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrievalResult()
void SetMetadata(const Aws::Map< Aws::String, Aws::Utils::Document > &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
bool MetadataHasBeenSet() const
bool LocationHasBeenSet() const
const RetrievalResultContent & GetContent() 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