7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AgenticRetrieveSourceRetriever.h>
9#include <aws/bedrock-agent-runtime/model/RetrievalContent.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 {
45 template <
typename ContentT = RetrievalContent>
47 m_contentHasBeenSet =
true;
48 m_content = std::forward<ContentT>(value);
50 template <
typename ContentT = RetrievalContent>
63 template <
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
65 m_metadataHasBeenSet =
true;
66 m_metadata = std::forward<MetadataT>(value);
68 template <
typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
73 template <
typename MetadataKeyT = Aws::String,
typename MetadataValueT = Aws::Utils::Document>
75 m_metadataHasBeenSet =
true;
76 m_metadata.emplace(std::forward<MetadataKeyT>(
key), std::forward<MetadataValueT>(value));
87 template <
typename SourceRetrieverT = AgenticRetrieveSourceRetriever>
89 m_sourceRetrieverHasBeenSet =
true;
90 m_sourceRetriever = std::forward<SourceRetrieverT>(value);
92 template <
typename SourceRetrieverT = AgenticRetrieveSourceRetriever>
104 bool m_contentHasBeenSet =
false;
105 bool m_metadataHasBeenSet =
false;
106 bool m_sourceRetrieverHasBeenSet =
false;
void SetContent(ContentT &&value)
void SetSourceRetriever(SourceRetrieverT &&value)
const Aws::Map< Aws::String, Aws::Utils::Document > & GetMetadata() const
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveResultItem()=default
AgenticRetrieveResultItem & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
bool MetadataHasBeenSet() const
bool ContentHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveResultItem(Aws::Utils::Json::JsonView jsonValue)
void SetMetadata(MetadataT &&value)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const RetrievalContent & GetContent() const
AgenticRetrieveResultItem & WithSourceRetriever(SourceRetrieverT &&value)
AgenticRetrieveResultItem & WithMetadata(MetadataT &&value)
bool SourceRetrieverHasBeenSet() const
const AgenticRetrieveSourceRetriever & GetSourceRetriever() const
AgenticRetrieveResultItem & WithContent(ContentT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() 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