AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContent(const RetrievalResultContent& value) { m_contentHasBeenSet = true; m_content = value; }
58 inline void SetContent(RetrievalResultContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
59 inline RetrievedReference& WithContent(const RetrievalResultContent& value) { SetContent(value); return *this;}
60 inline RetrievedReference& WithContent(RetrievalResultContent&& value) { SetContent(std::move(value)); return *this;}
62
64
67 inline const RetrievalResultLocation& GetLocation() const{ return m_location; }
68 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
69 inline void SetLocation(const RetrievalResultLocation& value) { m_locationHasBeenSet = true; m_location = value; }
70 inline void SetLocation(RetrievalResultLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
71 inline RetrievedReference& WithLocation(const RetrievalResultLocation& value) { SetLocation(value); return *this;}
72 inline RetrievedReference& WithLocation(RetrievalResultLocation&& value) { SetLocation(std::move(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 inline void SetMetadata(const Aws::Map<Aws::String, Aws::Utils::Document>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
85 inline void SetMetadata(Aws::Map<Aws::String, Aws::Utils::Document>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
88 inline RetrievedReference& AddMetadata(const Aws::String& key, const Aws::Utils::Document& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
89 inline RetrievedReference& AddMetadata(Aws::String&& key, const Aws::Utils::Document& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
90 inline RetrievedReference& AddMetadata(const Aws::String& key, Aws::Utils::Document&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
91 inline RetrievedReference& AddMetadata(Aws::String&& key, Aws::Utils::Document&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
92 inline RetrievedReference& AddMetadata(const char* key, Aws::Utils::Document&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
93 inline RetrievedReference& AddMetadata(const char* key, const Aws::Utils::Document& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
95 private:
96
97 RetrievalResultContent m_content;
98 bool m_contentHasBeenSet = false;
99
100 RetrievalResultLocation m_location;
101 bool m_locationHasBeenSet = false;
102
104 bool m_metadataHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace BedrockAgentRuntime
109} // namespace Aws
RetrievedReference & AddMetadata(const char *key, Aws::Utils::Document &&value)
RetrievedReference & AddMetadata(Aws::String &&key, Aws::Utils::Document &&value)
void SetLocation(const RetrievalResultLocation &value)
RetrievedReference & WithLocation(RetrievalResultLocation &&value)
RetrievedReference & AddMetadata(const Aws::String &key, Aws::Utils::Document &&value)
void SetMetadata(Aws::Map< Aws::String, Aws::Utils::Document > &&value)
const RetrievalResultLocation & GetLocation() const
const RetrievalResultContent & GetContent() const
void SetContent(const RetrievalResultContent &value)
void SetMetadata(const Aws::Map< Aws::String, Aws::Utils::Document > &value)
RetrievedReference & WithContent(const RetrievalResultContent &value)
RetrievedReference & AddMetadata(const Aws::String &key, const Aws::Utils::Document &value)
RetrievedReference & WithContent(RetrievalResultContent &&value)
RetrievedReference & WithLocation(const RetrievalResultLocation &value)
AWS_BEDROCKAGENTRUNTIME_API RetrievedReference(Aws::Utils::Json::JsonView jsonValue)
RetrievedReference & AddMetadata(Aws::String &&key, const Aws::Utils::Document &value)
AWS_BEDROCKAGENTRUNTIME_API RetrievedReference & operator=(Aws::Utils::Json::JsonView jsonValue)
RetrievedReference & WithMetadata(const Aws::Map< Aws::String, Aws::Utils::Document > &value)
RetrievedReference & AddMetadata(const char *key, const Aws::Utils::Document &value)
AWS_BEDROCKAGENTRUNTIME_API RetrievedReference()
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::Utils::Document > & GetMetadata() const
RetrievedReference & WithMetadata(Aws::Map< Aws::String, Aws::Utils::Document > &&value)
void SetLocation(RetrievalResultLocation &&value)
void SetContent(RetrievalResultContent &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue