AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/Document.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgentRuntime
26{
27namespace Model
28{
29
43 {
44 public:
45 AWS_BEDROCKAGENTRUNTIME_API RetrievedReference() = default;
46 AWS_BEDROCKAGENTRUNTIME_API RetrievedReference(Aws::Utils::Json::JsonView jsonValue);
47 AWS_BEDROCKAGENTRUNTIME_API RetrievedReference& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const RetrievalResultContent& GetContent() const { return m_content; }
56 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
57 template<typename ContentT = RetrievalResultContent>
58 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
59 template<typename ContentT = RetrievalResultContent>
60 RetrievedReference& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
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) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
71 template<typename LocationT = RetrievalResultLocation>
72 RetrievedReference& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
74
76
82 inline const Aws::Map<Aws::String, Aws::Utils::Document>& GetMetadata() const { return m_metadata; }
83 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
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>>
87 RetrievedReference& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
88 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::Utils::Document>
89 RetrievedReference& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
90 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
91 }
93 private:
94
95 RetrievalResultContent m_content;
96 bool m_contentHasBeenSet = false;
97
98 RetrievalResultLocation m_location;
99 bool m_locationHasBeenSet = false;
100
102 bool m_metadataHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace BedrockAgentRuntime
107} // 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::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue