AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
RetrievalResultLocation.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/RetrievalResultConfluenceLocation.h>
9#include <aws/bedrock-agent-runtime/model/RetrievalResultCustomDocumentLocation.h>
10#include <aws/bedrock-agent-runtime/model/RetrievalResultGoogleDriveLocation.h>
11#include <aws/bedrock-agent-runtime/model/RetrievalResultKendraDocumentLocation.h>
12#include <aws/bedrock-agent-runtime/model/RetrievalResultLocationType.h>
13#include <aws/bedrock-agent-runtime/model/RetrievalResultOneDriveLocation.h>
14#include <aws/bedrock-agent-runtime/model/RetrievalResultS3Location.h>
15#include <aws/bedrock-agent-runtime/model/RetrievalResultSalesforceLocation.h>
16#include <aws/bedrock-agent-runtime/model/RetrievalResultSharePointLocation.h>
17#include <aws/bedrock-agent-runtime/model/RetrievalResultSqlLocation.h>
18#include <aws/bedrock-agent-runtime/model/RetrievalResultWebLocation.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace BedrockAgentRuntime {
30namespace Model {
31
46 public:
47 AWS_BEDROCKAGENTRUNTIME_API RetrievalResultLocation() = default;
50 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
51
53
56 inline const RetrievalResultConfluenceLocation& GetConfluenceLocation() const { return m_confluenceLocation; }
57 inline bool ConfluenceLocationHasBeenSet() const { return m_confluenceLocationHasBeenSet; }
58 template <typename ConfluenceLocationT = RetrievalResultConfluenceLocation>
60 m_confluenceLocationHasBeenSet = true;
61 m_confluenceLocation = std::forward<ConfluenceLocationT>(value);
62 }
63 template <typename ConfluenceLocationT = RetrievalResultConfluenceLocation>
65 SetConfluenceLocation(std::forward<ConfluenceLocationT>(value));
66 return *this;
67 }
69
71
74 inline const RetrievalResultCustomDocumentLocation& GetCustomDocumentLocation() const { return m_customDocumentLocation; }
75 inline bool CustomDocumentLocationHasBeenSet() const { return m_customDocumentLocationHasBeenSet; }
76 template <typename CustomDocumentLocationT = RetrievalResultCustomDocumentLocation>
78 m_customDocumentLocationHasBeenSet = true;
79 m_customDocumentLocation = std::forward<CustomDocumentLocationT>(value);
80 }
81 template <typename CustomDocumentLocationT = RetrievalResultCustomDocumentLocation>
83 SetCustomDocumentLocation(std::forward<CustomDocumentLocationT>(value));
84 return *this;
85 }
87
89
92 inline const RetrievalResultGoogleDriveLocation& GetGoogleDriveLocation() const { return m_googleDriveLocation; }
93 inline bool GoogleDriveLocationHasBeenSet() const { return m_googleDriveLocationHasBeenSet; }
94 template <typename GoogleDriveLocationT = RetrievalResultGoogleDriveLocation>
96 m_googleDriveLocationHasBeenSet = true;
97 m_googleDriveLocation = std::forward<GoogleDriveLocationT>(value);
98 }
99 template <typename GoogleDriveLocationT = RetrievalResultGoogleDriveLocation>
101 SetGoogleDriveLocation(std::forward<GoogleDriveLocationT>(value));
102 return *this;
103 }
105
107
110 inline const RetrievalResultKendraDocumentLocation& GetKendraDocumentLocation() const { return m_kendraDocumentLocation; }
111 inline bool KendraDocumentLocationHasBeenSet() const { return m_kendraDocumentLocationHasBeenSet; }
112 template <typename KendraDocumentLocationT = RetrievalResultKendraDocumentLocation>
114 m_kendraDocumentLocationHasBeenSet = true;
115 m_kendraDocumentLocation = std::forward<KendraDocumentLocationT>(value);
116 }
117 template <typename KendraDocumentLocationT = RetrievalResultKendraDocumentLocation>
119 SetKendraDocumentLocation(std::forward<KendraDocumentLocationT>(value));
120 return *this;
121 }
123
125
128 inline const RetrievalResultOneDriveLocation& GetOneDriveLocation() const { return m_oneDriveLocation; }
129 inline bool OneDriveLocationHasBeenSet() const { return m_oneDriveLocationHasBeenSet; }
130 template <typename OneDriveLocationT = RetrievalResultOneDriveLocation>
132 m_oneDriveLocationHasBeenSet = true;
133 m_oneDriveLocation = std::forward<OneDriveLocationT>(value);
134 }
135 template <typename OneDriveLocationT = RetrievalResultOneDriveLocation>
137 SetOneDriveLocation(std::forward<OneDriveLocationT>(value));
138 return *this;
139 }
141
143
146 inline const RetrievalResultS3Location& GetS3Location() const { return m_s3Location; }
147 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
148 template <typename S3LocationT = RetrievalResultS3Location>
150 m_s3LocationHasBeenSet = true;
151 m_s3Location = std::forward<S3LocationT>(value);
152 }
153 template <typename S3LocationT = RetrievalResultS3Location>
155 SetS3Location(std::forward<S3LocationT>(value));
156 return *this;
157 }
159
161
164 inline const RetrievalResultSalesforceLocation& GetSalesforceLocation() const { return m_salesforceLocation; }
165 inline bool SalesforceLocationHasBeenSet() const { return m_salesforceLocationHasBeenSet; }
166 template <typename SalesforceLocationT = RetrievalResultSalesforceLocation>
168 m_salesforceLocationHasBeenSet = true;
169 m_salesforceLocation = std::forward<SalesforceLocationT>(value);
170 }
171 template <typename SalesforceLocationT = RetrievalResultSalesforceLocation>
173 SetSalesforceLocation(std::forward<SalesforceLocationT>(value));
174 return *this;
175 }
177
179
182 inline const RetrievalResultSharePointLocation& GetSharePointLocation() const { return m_sharePointLocation; }
183 inline bool SharePointLocationHasBeenSet() const { return m_sharePointLocationHasBeenSet; }
184 template <typename SharePointLocationT = RetrievalResultSharePointLocation>
186 m_sharePointLocationHasBeenSet = true;
187 m_sharePointLocation = std::forward<SharePointLocationT>(value);
188 }
189 template <typename SharePointLocationT = RetrievalResultSharePointLocation>
191 SetSharePointLocation(std::forward<SharePointLocationT>(value));
192 return *this;
193 }
195
197
200 inline const RetrievalResultSqlLocation& GetSqlLocation() const { return m_sqlLocation; }
201 inline bool SqlLocationHasBeenSet() const { return m_sqlLocationHasBeenSet; }
202 template <typename SqlLocationT = RetrievalResultSqlLocation>
204 m_sqlLocationHasBeenSet = true;
205 m_sqlLocation = std::forward<SqlLocationT>(value);
206 }
207 template <typename SqlLocationT = RetrievalResultSqlLocation>
209 SetSqlLocation(std::forward<SqlLocationT>(value));
210 return *this;
211 }
213
215
218 inline RetrievalResultLocationType GetType() const { return m_type; }
219 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
221 m_typeHasBeenSet = true;
222 m_type = value;
223 }
225 SetType(value);
226 return *this;
227 }
229
231
234 inline const RetrievalResultWebLocation& GetWebLocation() const { return m_webLocation; }
235 inline bool WebLocationHasBeenSet() const { return m_webLocationHasBeenSet; }
236 template <typename WebLocationT = RetrievalResultWebLocation>
238 m_webLocationHasBeenSet = true;
239 m_webLocation = std::forward<WebLocationT>(value);
240 }
241 template <typename WebLocationT = RetrievalResultWebLocation>
243 SetWebLocation(std::forward<WebLocationT>(value));
244 return *this;
245 }
247 private:
248 RetrievalResultConfluenceLocation m_confluenceLocation;
249
250 RetrievalResultCustomDocumentLocation m_customDocumentLocation;
251
252 RetrievalResultGoogleDriveLocation m_googleDriveLocation;
253
254 RetrievalResultKendraDocumentLocation m_kendraDocumentLocation;
255
256 RetrievalResultOneDriveLocation m_oneDriveLocation;
257
258 RetrievalResultS3Location m_s3Location;
259
260 RetrievalResultSalesforceLocation m_salesforceLocation;
261
262 RetrievalResultSharePointLocation m_sharePointLocation;
263
264 RetrievalResultSqlLocation m_sqlLocation;
265
267
268 RetrievalResultWebLocation m_webLocation;
269 bool m_confluenceLocationHasBeenSet = false;
270 bool m_customDocumentLocationHasBeenSet = false;
271 bool m_googleDriveLocationHasBeenSet = false;
272 bool m_kendraDocumentLocationHasBeenSet = false;
273 bool m_oneDriveLocationHasBeenSet = false;
274 bool m_s3LocationHasBeenSet = false;
275 bool m_salesforceLocationHasBeenSet = false;
276 bool m_sharePointLocationHasBeenSet = false;
277 bool m_sqlLocationHasBeenSet = false;
278 bool m_typeHasBeenSet = false;
279 bool m_webLocationHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace BedrockAgentRuntime
284} // namespace Aws
RetrievalResultLocation & WithOneDriveLocation(OneDriveLocationT &&value)
RetrievalResultLocation & WithWebLocation(WebLocationT &&value)
RetrievalResultLocation & WithSalesforceLocation(SalesforceLocationT &&value)
RetrievalResultLocation & WithType(RetrievalResultLocationType value)
const RetrievalResultWebLocation & GetWebLocation() const
RetrievalResultLocation & WithGoogleDriveLocation(GoogleDriveLocationT &&value)
const RetrievalResultGoogleDriveLocation & GetGoogleDriveLocation() const
const RetrievalResultConfluenceLocation & GetConfluenceLocation() const
void SetCustomDocumentLocation(CustomDocumentLocationT &&value)
const RetrievalResultSharePointLocation & GetSharePointLocation() const
RetrievalResultLocation & WithConfluenceLocation(ConfluenceLocationT &&value)
RetrievalResultLocation & WithSqlLocation(SqlLocationT &&value)
const RetrievalResultSalesforceLocation & GetSalesforceLocation() const
AWS_BEDROCKAGENTRUNTIME_API RetrievalResultLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
const RetrievalResultCustomDocumentLocation & GetCustomDocumentLocation() const
AWS_BEDROCKAGENTRUNTIME_API RetrievalResultLocation(Aws::Utils::Json::JsonView jsonValue)
RetrievalResultLocation & WithSharePointLocation(SharePointLocationT &&value)
RetrievalResultLocation & WithCustomDocumentLocation(CustomDocumentLocationT &&value)
const RetrievalResultSqlLocation & GetSqlLocation() const
RetrievalResultLocation & WithS3Location(S3LocationT &&value)
RetrievalResultLocation & WithKendraDocumentLocation(KendraDocumentLocationT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const RetrievalResultOneDriveLocation & GetOneDriveLocation() const
const RetrievalResultKendraDocumentLocation & GetKendraDocumentLocation() const
AWS_BEDROCKAGENTRUNTIME_API RetrievalResultLocation()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue