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 {
51 template <
typename ContentT = RetrievalResultContent>
53 m_contentHasBeenSet =
true;
54 m_content = std::forward<ContentT>(value);
56 template <
typename ContentT = RetrievalResultContent>
69 template <
typename LocationT = RetrievalResultLocation>
71 m_locationHasBeenSet =
true;
72 m_location = std::forward<LocationT>(value);
74 template <
typename LocationT = RetrievalResultLocation>
90 template <
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
92 m_metadataHasBeenSet =
true;
93 m_metadata = std::forward<MetadataT>(value);
95 template <
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
100 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::Utils::Document>
102 m_metadataHasBeenSet =
true;
103 m_metadata.emplace(std::forward<MetadataKeyT>(
key), std::forward<MetadataValueT>(value));
113 bool m_contentHasBeenSet =
false;
114 bool m_locationHasBeenSet =
false;
115 bool m_metadataHasBeenSet =
false;
void SetMetadata(MetadataT &&value)
bool LocationHasBeenSet() const
const RetrievalResultLocation & GetLocation() const
const RetrievalResultContent & GetContent() const
void SetContent(ContentT &&value)
RetrievedReference & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrievedReference()=default
RetrievedReference & WithContent(ContentT &&value)
void SetLocation(LocationT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrievedReference(Aws::Utils::Json::JsonView jsonValue)
RetrievedReference & WithLocation(LocationT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrievedReference & operator=(Aws::Utils::Json::JsonView jsonValue)
RetrievedReference & WithMetadata(MetadataT &&value)
bool ContentHasBeenSet() const
bool MetadataHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::Utils::Document > & GetMetadata() const
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