AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CitationLocation.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/DocumentCharLocation.h>
9#include <aws/bedrock-runtime/model/DocumentChunkLocation.h>
10#include <aws/bedrock-runtime/model/DocumentPageLocation.h>
11#include <aws/bedrock-runtime/model/SearchResultLocation.h>
12#include <aws/bedrock-runtime/model/WebLocation.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockRuntime {
24namespace Model {
25
35 public:
36 AWS_BEDROCKRUNTIME_API CitationLocation() = default;
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const WebLocation& GetWeb() const { return m_web; }
46 inline bool WebHasBeenSet() const { return m_webHasBeenSet; }
47 template <typename WebT = WebLocation>
48 void SetWeb(WebT&& value) {
49 m_webHasBeenSet = true;
50 m_web = std::forward<WebT>(value);
51 }
52 template <typename WebT = WebLocation>
54 SetWeb(std::forward<WebT>(value));
55 return *this;
56 }
58
60
64 inline const DocumentCharLocation& GetDocumentChar() const { return m_documentChar; }
65 inline bool DocumentCharHasBeenSet() const { return m_documentCharHasBeenSet; }
66 template <typename DocumentCharT = DocumentCharLocation>
68 m_documentCharHasBeenSet = true;
69 m_documentChar = std::forward<DocumentCharT>(value);
70 }
71 template <typename DocumentCharT = DocumentCharLocation>
73 SetDocumentChar(std::forward<DocumentCharT>(value));
74 return *this;
75 }
77
79
83 inline const DocumentPageLocation& GetDocumentPage() const { return m_documentPage; }
84 inline bool DocumentPageHasBeenSet() const { return m_documentPageHasBeenSet; }
85 template <typename DocumentPageT = DocumentPageLocation>
87 m_documentPageHasBeenSet = true;
88 m_documentPage = std::forward<DocumentPageT>(value);
89 }
90 template <typename DocumentPageT = DocumentPageLocation>
92 SetDocumentPage(std::forward<DocumentPageT>(value));
93 return *this;
94 }
96
98
103 inline const DocumentChunkLocation& GetDocumentChunk() const { return m_documentChunk; }
104 inline bool DocumentChunkHasBeenSet() const { return m_documentChunkHasBeenSet; }
105 template <typename DocumentChunkT = DocumentChunkLocation>
107 m_documentChunkHasBeenSet = true;
108 m_documentChunk = std::forward<DocumentChunkT>(value);
109 }
110 template <typename DocumentChunkT = DocumentChunkLocation>
112 SetDocumentChunk(std::forward<DocumentChunkT>(value));
113 return *this;
114 }
116
118
122 inline const SearchResultLocation& GetSearchResultLocation() const { return m_searchResultLocation; }
123 inline bool SearchResultLocationHasBeenSet() const { return m_searchResultLocationHasBeenSet; }
124 template <typename SearchResultLocationT = SearchResultLocation>
126 m_searchResultLocationHasBeenSet = true;
127 m_searchResultLocation = std::forward<SearchResultLocationT>(value);
128 }
129 template <typename SearchResultLocationT = SearchResultLocation>
131 SetSearchResultLocation(std::forward<SearchResultLocationT>(value));
132 return *this;
133 }
135 private:
136 WebLocation m_web;
137
138 DocumentCharLocation m_documentChar;
139
140 DocumentPageLocation m_documentPage;
141
142 DocumentChunkLocation m_documentChunk;
143
144 SearchResultLocation m_searchResultLocation;
145 bool m_webHasBeenSet = false;
146 bool m_documentCharHasBeenSet = false;
147 bool m_documentPageHasBeenSet = false;
148 bool m_documentChunkHasBeenSet = false;
149 bool m_searchResultLocationHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace BedrockRuntime
154} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
CitationLocation & WithWeb(WebT &&value)
CitationLocation & WithDocumentChar(DocumentCharT &&value)
CitationLocation & WithDocumentPage(DocumentPageT &&value)
CitationLocation & WithDocumentChunk(DocumentChunkT &&value)
AWS_BEDROCKRUNTIME_API CitationLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
const DocumentChunkLocation & GetDocumentChunk() const
const DocumentPageLocation & GetDocumentPage() const
AWS_BEDROCKRUNTIME_API CitationLocation(Aws::Utils::Json::JsonView jsonValue)
const DocumentCharLocation & GetDocumentChar() const
const SearchResultLocation & GetSearchResultLocation() const
void SetSearchResultLocation(SearchResultLocationT &&value)
void SetDocumentChunk(DocumentChunkT &&value)
CitationLocation & WithSearchResultLocation(SearchResultLocationT &&value)
AWS_BEDROCKRUNTIME_API CitationLocation()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue