AWS SDK for C++

AWS SDK for C++ Version 1.11.764

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/RetrievalResultKendraDocumentLocation.h>
11#include <aws/bedrock-agent-runtime/model/RetrievalResultLocationType.h>
12#include <aws/bedrock-agent-runtime/model/RetrievalResultS3Location.h>
13#include <aws/bedrock-agent-runtime/model/RetrievalResultSalesforceLocation.h>
14#include <aws/bedrock-agent-runtime/model/RetrievalResultSharePointLocation.h>
15#include <aws/bedrock-agent-runtime/model/RetrievalResultSqlLocation.h>
16#include <aws/bedrock-agent-runtime/model/RetrievalResultWebLocation.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace BedrockAgentRuntime {
28namespace Model {
29
44 public:
45 AWS_BEDROCKAGENTRUNTIME_API RetrievalResultLocation() = default;
48 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
49
51
54 inline const RetrievalResultConfluenceLocation& GetConfluenceLocation() const { return m_confluenceLocation; }
55 inline bool ConfluenceLocationHasBeenSet() const { return m_confluenceLocationHasBeenSet; }
56 template <typename ConfluenceLocationT = RetrievalResultConfluenceLocation>
58 m_confluenceLocationHasBeenSet = true;
59 m_confluenceLocation = std::forward<ConfluenceLocationT>(value);
60 }
61 template <typename ConfluenceLocationT = RetrievalResultConfluenceLocation>
63 SetConfluenceLocation(std::forward<ConfluenceLocationT>(value));
64 return *this;
65 }
67
69
72 inline const RetrievalResultCustomDocumentLocation& GetCustomDocumentLocation() const { return m_customDocumentLocation; }
73 inline bool CustomDocumentLocationHasBeenSet() const { return m_customDocumentLocationHasBeenSet; }
74 template <typename CustomDocumentLocationT = RetrievalResultCustomDocumentLocation>
76 m_customDocumentLocationHasBeenSet = true;
77 m_customDocumentLocation = std::forward<CustomDocumentLocationT>(value);
78 }
79 template <typename CustomDocumentLocationT = RetrievalResultCustomDocumentLocation>
81 SetCustomDocumentLocation(std::forward<CustomDocumentLocationT>(value));
82 return *this;
83 }
85
87
90 inline const RetrievalResultKendraDocumentLocation& GetKendraDocumentLocation() const { return m_kendraDocumentLocation; }
91 inline bool KendraDocumentLocationHasBeenSet() const { return m_kendraDocumentLocationHasBeenSet; }
92 template <typename KendraDocumentLocationT = RetrievalResultKendraDocumentLocation>
94 m_kendraDocumentLocationHasBeenSet = true;
95 m_kendraDocumentLocation = std::forward<KendraDocumentLocationT>(value);
96 }
97 template <typename KendraDocumentLocationT = RetrievalResultKendraDocumentLocation>
99 SetKendraDocumentLocation(std::forward<KendraDocumentLocationT>(value));
100 return *this;
101 }
103
105
108 inline const RetrievalResultS3Location& GetS3Location() const { return m_s3Location; }
109 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
110 template <typename S3LocationT = RetrievalResultS3Location>
112 m_s3LocationHasBeenSet = true;
113 m_s3Location = std::forward<S3LocationT>(value);
114 }
115 template <typename S3LocationT = RetrievalResultS3Location>
117 SetS3Location(std::forward<S3LocationT>(value));
118 return *this;
119 }
121
123
126 inline const RetrievalResultSalesforceLocation& GetSalesforceLocation() const { return m_salesforceLocation; }
127 inline bool SalesforceLocationHasBeenSet() const { return m_salesforceLocationHasBeenSet; }
128 template <typename SalesforceLocationT = RetrievalResultSalesforceLocation>
130 m_salesforceLocationHasBeenSet = true;
131 m_salesforceLocation = std::forward<SalesforceLocationT>(value);
132 }
133 template <typename SalesforceLocationT = RetrievalResultSalesforceLocation>
135 SetSalesforceLocation(std::forward<SalesforceLocationT>(value));
136 return *this;
137 }
139
141
144 inline const RetrievalResultSharePointLocation& GetSharePointLocation() const { return m_sharePointLocation; }
145 inline bool SharePointLocationHasBeenSet() const { return m_sharePointLocationHasBeenSet; }
146 template <typename SharePointLocationT = RetrievalResultSharePointLocation>
148 m_sharePointLocationHasBeenSet = true;
149 m_sharePointLocation = std::forward<SharePointLocationT>(value);
150 }
151 template <typename SharePointLocationT = RetrievalResultSharePointLocation>
153 SetSharePointLocation(std::forward<SharePointLocationT>(value));
154 return *this;
155 }
157
159
162 inline const RetrievalResultSqlLocation& GetSqlLocation() const { return m_sqlLocation; }
163 inline bool SqlLocationHasBeenSet() const { return m_sqlLocationHasBeenSet; }
164 template <typename SqlLocationT = RetrievalResultSqlLocation>
166 m_sqlLocationHasBeenSet = true;
167 m_sqlLocation = std::forward<SqlLocationT>(value);
168 }
169 template <typename SqlLocationT = RetrievalResultSqlLocation>
171 SetSqlLocation(std::forward<SqlLocationT>(value));
172 return *this;
173 }
175
177
180 inline RetrievalResultLocationType GetType() const { return m_type; }
181 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
183 m_typeHasBeenSet = true;
184 m_type = value;
185 }
187 SetType(value);
188 return *this;
189 }
191
193
196 inline const RetrievalResultWebLocation& GetWebLocation() const { return m_webLocation; }
197 inline bool WebLocationHasBeenSet() const { return m_webLocationHasBeenSet; }
198 template <typename WebLocationT = RetrievalResultWebLocation>
200 m_webLocationHasBeenSet = true;
201 m_webLocation = std::forward<WebLocationT>(value);
202 }
203 template <typename WebLocationT = RetrievalResultWebLocation>
205 SetWebLocation(std::forward<WebLocationT>(value));
206 return *this;
207 }
209 private:
210 RetrievalResultConfluenceLocation m_confluenceLocation;
211
212 RetrievalResultCustomDocumentLocation m_customDocumentLocation;
213
214 RetrievalResultKendraDocumentLocation m_kendraDocumentLocation;
215
216 RetrievalResultS3Location m_s3Location;
217
218 RetrievalResultSalesforceLocation m_salesforceLocation;
219
220 RetrievalResultSharePointLocation m_sharePointLocation;
221
222 RetrievalResultSqlLocation m_sqlLocation;
223
225
226 RetrievalResultWebLocation m_webLocation;
227 bool m_confluenceLocationHasBeenSet = false;
228 bool m_customDocumentLocationHasBeenSet = false;
229 bool m_kendraDocumentLocationHasBeenSet = false;
230 bool m_s3LocationHasBeenSet = false;
231 bool m_salesforceLocationHasBeenSet = false;
232 bool m_sharePointLocationHasBeenSet = false;
233 bool m_sqlLocationHasBeenSet = false;
234 bool m_typeHasBeenSet = false;
235 bool m_webLocationHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace BedrockAgentRuntime
240} // namespace Aws
RetrievalResultLocation & WithWebLocation(WebLocationT &&value)
RetrievalResultLocation & WithSalesforceLocation(SalesforceLocationT &&value)
RetrievalResultLocation & WithType(RetrievalResultLocationType value)
const RetrievalResultWebLocation & GetWebLocation() 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)
void SetKendraDocumentLocation(KendraDocumentLocationT &&value)
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 RetrievalResultKendraDocumentLocation & GetKendraDocumentLocation() const
AWS_BEDROCKAGENTRUNTIME_API RetrievalResultLocation()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue