AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
AgenticRetrieveTraceResultItem.h
1
6#pragma once
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>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime {
24namespace Model {
25
32 public:
33 AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveTraceResultItem() = default;
36 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const RetrievalContent& GetContent() const { return m_content; }
43 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
44 template <typename ContentT = RetrievalContent>
45 void SetContent(ContentT&& value) {
46 m_contentHasBeenSet = true;
47 m_content = std::forward<ContentT>(value);
48 }
49 template <typename ContentT = RetrievalContent>
51 SetContent(std::forward<ContentT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Map<Aws::String, Aws::Utils::Document>& GetMetadata() const { return m_metadata; }
61 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
62 template <typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
63 void SetMetadata(MetadataT&& value) {
64 m_metadataHasBeenSet = true;
65 m_metadata = std::forward<MetadataT>(value);
66 }
67 template <typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
69 SetMetadata(std::forward<MetadataT>(value));
70 return *this;
71 }
72 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::Utils::Document>
74 m_metadataHasBeenSet = true;
75 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
76 return *this;
77 }
79
81
84 inline const AgenticRetrieveSourceRetriever& GetSourceRetriever() const { return m_sourceRetriever; }
85 inline bool SourceRetrieverHasBeenSet() const { return m_sourceRetrieverHasBeenSet; }
86 template <typename SourceRetrieverT = AgenticRetrieveSourceRetriever>
88 m_sourceRetrieverHasBeenSet = true;
89 m_sourceRetriever = std::forward<SourceRetrieverT>(value);
90 }
91 template <typename SourceRetrieverT = AgenticRetrieveSourceRetriever>
93 SetSourceRetriever(std::forward<SourceRetrieverT>(value));
94 return *this;
95 }
97 private:
98 RetrievalContent m_content;
99
101
102 AgenticRetrieveSourceRetriever m_sourceRetriever;
103 bool m_contentHasBeenSet = false;
104 bool m_metadataHasBeenSet = false;
105 bool m_sourceRetrieverHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace BedrockAgentRuntime
110} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveTraceResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AgenticRetrieveTraceResultItem & WithMetadata(MetadataT &&value)
AgenticRetrieveTraceResultItem & WithSourceRetriever(SourceRetrieverT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveTraceResultItem()=default
const Aws::Map< Aws::String, Aws::Utils::Document > & GetMetadata() const
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveTraceResultItem(Aws::Utils::Json::JsonView jsonValue)
AgenticRetrieveTraceResultItem & AddMetadata(MetadataKeyT &&key, MetadataValueT &&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
Aws::Utils::Json::JsonValue JsonValue