AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/RetrievalResultS3Location.h>
12#include <aws/bedrock-agent-runtime/model/RetrievalResultSalesforceLocation.h>
13#include <aws/bedrock-agent-runtime/model/RetrievalResultSharePointLocation.h>
14#include <aws/bedrock-agent-runtime/model/RetrievalResultSqlLocation.h>
15#include <aws/bedrock-agent-runtime/model/RetrievalResultLocationType.h>
16#include <aws/bedrock-agent-runtime/model/RetrievalResultWebLocation.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace BedrockAgentRuntime
30{
31namespace Model
32{
33
48 {
49 public:
50 AWS_BEDROCKAGENTRUNTIME_API RetrievalResultLocation() = default;
51 AWS_BEDROCKAGENTRUNTIME_API RetrievalResultLocation(Aws::Utils::Json::JsonView jsonValue);
52 AWS_BEDROCKAGENTRUNTIME_API RetrievalResultLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
53 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
60 inline const RetrievalResultConfluenceLocation& GetConfluenceLocation() const { return m_confluenceLocation; }
61 inline bool ConfluenceLocationHasBeenSet() const { return m_confluenceLocationHasBeenSet; }
62 template<typename ConfluenceLocationT = RetrievalResultConfluenceLocation>
63 void SetConfluenceLocation(ConfluenceLocationT&& value) { m_confluenceLocationHasBeenSet = true; m_confluenceLocation = std::forward<ConfluenceLocationT>(value); }
64 template<typename ConfluenceLocationT = RetrievalResultConfluenceLocation>
65 RetrievalResultLocation& WithConfluenceLocation(ConfluenceLocationT&& value) { SetConfluenceLocation(std::forward<ConfluenceLocationT>(value)); return *this;}
67
69
72 inline const RetrievalResultCustomDocumentLocation& GetCustomDocumentLocation() const { return m_customDocumentLocation; }
73 inline bool CustomDocumentLocationHasBeenSet() const { return m_customDocumentLocationHasBeenSet; }
74 template<typename CustomDocumentLocationT = RetrievalResultCustomDocumentLocation>
75 void SetCustomDocumentLocation(CustomDocumentLocationT&& value) { m_customDocumentLocationHasBeenSet = true; m_customDocumentLocation = std::forward<CustomDocumentLocationT>(value); }
76 template<typename CustomDocumentLocationT = RetrievalResultCustomDocumentLocation>
77 RetrievalResultLocation& WithCustomDocumentLocation(CustomDocumentLocationT&& value) { SetCustomDocumentLocation(std::forward<CustomDocumentLocationT>(value)); return *this;}
79
81
84 inline const RetrievalResultKendraDocumentLocation& GetKendraDocumentLocation() const { return m_kendraDocumentLocation; }
85 inline bool KendraDocumentLocationHasBeenSet() const { return m_kendraDocumentLocationHasBeenSet; }
86 template<typename KendraDocumentLocationT = RetrievalResultKendraDocumentLocation>
87 void SetKendraDocumentLocation(KendraDocumentLocationT&& value) { m_kendraDocumentLocationHasBeenSet = true; m_kendraDocumentLocation = std::forward<KendraDocumentLocationT>(value); }
88 template<typename KendraDocumentLocationT = RetrievalResultKendraDocumentLocation>
89 RetrievalResultLocation& WithKendraDocumentLocation(KendraDocumentLocationT&& value) { SetKendraDocumentLocation(std::forward<KendraDocumentLocationT>(value)); return *this;}
91
93
96 inline const RetrievalResultS3Location& GetS3Location() const { return m_s3Location; }
97 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
98 template<typename S3LocationT = RetrievalResultS3Location>
99 void SetS3Location(S3LocationT&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::forward<S3LocationT>(value); }
100 template<typename S3LocationT = RetrievalResultS3Location>
101 RetrievalResultLocation& WithS3Location(S3LocationT&& value) { SetS3Location(std::forward<S3LocationT>(value)); return *this;}
103
105
108 inline const RetrievalResultSalesforceLocation& GetSalesforceLocation() const { return m_salesforceLocation; }
109 inline bool SalesforceLocationHasBeenSet() const { return m_salesforceLocationHasBeenSet; }
110 template<typename SalesforceLocationT = RetrievalResultSalesforceLocation>
111 void SetSalesforceLocation(SalesforceLocationT&& value) { m_salesforceLocationHasBeenSet = true; m_salesforceLocation = std::forward<SalesforceLocationT>(value); }
112 template<typename SalesforceLocationT = RetrievalResultSalesforceLocation>
113 RetrievalResultLocation& WithSalesforceLocation(SalesforceLocationT&& value) { SetSalesforceLocation(std::forward<SalesforceLocationT>(value)); return *this;}
115
117
120 inline const RetrievalResultSharePointLocation& GetSharePointLocation() const { return m_sharePointLocation; }
121 inline bool SharePointLocationHasBeenSet() const { return m_sharePointLocationHasBeenSet; }
122 template<typename SharePointLocationT = RetrievalResultSharePointLocation>
123 void SetSharePointLocation(SharePointLocationT&& value) { m_sharePointLocationHasBeenSet = true; m_sharePointLocation = std::forward<SharePointLocationT>(value); }
124 template<typename SharePointLocationT = RetrievalResultSharePointLocation>
125 RetrievalResultLocation& WithSharePointLocation(SharePointLocationT&& value) { SetSharePointLocation(std::forward<SharePointLocationT>(value)); return *this;}
127
129
132 inline const RetrievalResultSqlLocation& GetSqlLocation() const { return m_sqlLocation; }
133 inline bool SqlLocationHasBeenSet() const { return m_sqlLocationHasBeenSet; }
134 template<typename SqlLocationT = RetrievalResultSqlLocation>
135 void SetSqlLocation(SqlLocationT&& value) { m_sqlLocationHasBeenSet = true; m_sqlLocation = std::forward<SqlLocationT>(value); }
136 template<typename SqlLocationT = RetrievalResultSqlLocation>
137 RetrievalResultLocation& WithSqlLocation(SqlLocationT&& value) { SetSqlLocation(std::forward<SqlLocationT>(value)); return *this;}
139
141
144 inline RetrievalResultLocationType GetType() const { return m_type; }
145 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
146 inline void SetType(RetrievalResultLocationType value) { m_typeHasBeenSet = true; m_type = value; }
149
151
154 inline const RetrievalResultWebLocation& GetWebLocation() const { return m_webLocation; }
155 inline bool WebLocationHasBeenSet() const { return m_webLocationHasBeenSet; }
156 template<typename WebLocationT = RetrievalResultWebLocation>
157 void SetWebLocation(WebLocationT&& value) { m_webLocationHasBeenSet = true; m_webLocation = std::forward<WebLocationT>(value); }
158 template<typename WebLocationT = RetrievalResultWebLocation>
159 RetrievalResultLocation& WithWebLocation(WebLocationT&& value) { SetWebLocation(std::forward<WebLocationT>(value)); return *this;}
161 private:
162
163 RetrievalResultConfluenceLocation m_confluenceLocation;
164 bool m_confluenceLocationHasBeenSet = false;
165
166 RetrievalResultCustomDocumentLocation m_customDocumentLocation;
167 bool m_customDocumentLocationHasBeenSet = false;
168
169 RetrievalResultKendraDocumentLocation m_kendraDocumentLocation;
170 bool m_kendraDocumentLocationHasBeenSet = false;
171
172 RetrievalResultS3Location m_s3Location;
173 bool m_s3LocationHasBeenSet = false;
174
175 RetrievalResultSalesforceLocation m_salesforceLocation;
176 bool m_salesforceLocationHasBeenSet = false;
177
178 RetrievalResultSharePointLocation m_sharePointLocation;
179 bool m_sharePointLocationHasBeenSet = false;
180
181 RetrievalResultSqlLocation m_sqlLocation;
182 bool m_sqlLocationHasBeenSet = false;
183
185 bool m_typeHasBeenSet = false;
186
187 RetrievalResultWebLocation m_webLocation;
188 bool m_webLocationHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace BedrockAgentRuntime
193} // namespace Aws
RetrievalResultLocation & WithWebLocation(WebLocationT &&value)
RetrievalResultLocation & WithSalesforceLocation(SalesforceLocationT &&value)
RetrievalResultLocation & WithType(RetrievalResultLocationType value)
const RetrievalResultWebLocation & GetWebLocation() const
const RetrievalResultS3Location & GetS3Location() 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
Aws::Utils::Json::JsonValue JsonValue