AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RetrievedReference.h
1
6#pragma once
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>
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
39 public:
40 AWS_BEDROCKAGENTRUNTIME_API RetrievedReference() = default;
43 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const RetrievalResultContent& GetContent() const { return m_content; }
50 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
51 template <typename ContentT = RetrievalResultContent>
52 void SetContent(ContentT&& value) {
53 m_contentHasBeenSet = true;
54 m_content = std::forward<ContentT>(value);
55 }
56 template <typename ContentT = RetrievalResultContent>
58 SetContent(std::forward<ContentT>(value));
59 return *this;
60 }
62
64
67 inline const RetrievalResultLocation& GetLocation() const { return m_location; }
68 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
69 template <typename LocationT = RetrievalResultLocation>
70 void SetLocation(LocationT&& value) {
71 m_locationHasBeenSet = true;
72 m_location = std::forward<LocationT>(value);
73 }
74 template <typename LocationT = RetrievalResultLocation>
76 SetLocation(std::forward<LocationT>(value));
77 return *this;
78 }
80
82
88 inline const Aws::Map<Aws::String, Aws::Utils::Document>& GetMetadata() const { return m_metadata; }
89 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
90 template <typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
91 void SetMetadata(MetadataT&& value) {
92 m_metadataHasBeenSet = true;
93 m_metadata = std::forward<MetadataT>(value);
94 }
95 template <typename MetadataT = Aws::Map<Aws::String, Aws::Utils::Document>>
97 SetMetadata(std::forward<MetadataT>(value));
98 return *this;
99 }
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));
104 return *this;
105 }
107 private:
108 RetrievalResultContent m_content;
109
110 RetrievalResultLocation m_location;
111
113 bool m_contentHasBeenSet = false;
114 bool m_locationHasBeenSet = false;
115 bool m_metadataHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace BedrockAgentRuntime
120} // namespace Aws
const RetrievalResultLocation & GetLocation() const
const RetrievalResultContent & GetContent() const
RetrievedReference & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrievedReference()=default
RetrievedReference & WithContent(ContentT &&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)
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