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
57 template<
typename ContentT = RetrievalResultContent>
58 void SetContent(ContentT&& value) { m_contentHasBeenSet =
true; m_content = std::forward<ContentT>(value); }
59 template<
typename ContentT = RetrievalResultContent>
69 template<
typename LocationT = RetrievalResultLocation>
70 void SetLocation(LocationT&& value) { m_locationHasBeenSet =
true; m_location = std::forward<LocationT>(value); }
71 template<
typename LocationT = RetrievalResultLocation>
84 template<
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
85 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet =
true; m_metadata = std::forward<MetadataT>(value); }
86 template<
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
88 template<
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::Utils::Document>
90 m_metadataHasBeenSet =
true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
return *
this;
96 bool m_contentHasBeenSet =
false;
99 bool m_locationHasBeenSet =
false;
102 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::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue