AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RetrieveResult.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GuadrailAction.h>
9#include <aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalResult.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgentRuntime {
26namespace Model {
28 public:
29 AWS_BEDROCKAGENTRUNTIME_API RetrieveResult() = default;
32
34
37 inline GuadrailAction GetGuardrailAction() const { return m_guardrailAction; }
39 m_guardrailActionHasBeenSet = true;
40 m_guardrailAction = value;
41 }
43 SetGuardrailAction(value);
44 return *this;
45 }
47
49
54 inline const Aws::String& GetNextToken() const { return m_nextToken; }
55 template <typename NextTokenT = Aws::String>
56 void SetNextToken(NextTokenT&& value) {
57 m_nextTokenHasBeenSet = true;
58 m_nextToken = std::forward<NextTokenT>(value);
59 }
60 template <typename NextTokenT = Aws::String>
62 SetNextToken(std::forward<NextTokenT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Vector<KnowledgeBaseRetrievalResult>& GetRetrievalResults() const { return m_retrievalResults; }
72 template <typename RetrievalResultsT = Aws::Vector<KnowledgeBaseRetrievalResult>>
74 m_retrievalResultsHasBeenSet = true;
75 m_retrievalResults = std::forward<RetrievalResultsT>(value);
76 }
77 template <typename RetrievalResultsT = Aws::Vector<KnowledgeBaseRetrievalResult>>
79 SetRetrievalResults(std::forward<RetrievalResultsT>(value));
80 return *this;
81 }
82 template <typename RetrievalResultsT = KnowledgeBaseRetrievalResult>
84 m_retrievalResultsHasBeenSet = true;
85 m_retrievalResults.emplace_back(std::forward<RetrievalResultsT>(value));
86 return *this;
87 }
89
91
92 inline const Aws::String& GetRequestId() const { return m_requestId; }
93 template <typename RequestIdT = Aws::String>
94 void SetRequestId(RequestIdT&& value) {
95 m_requestIdHasBeenSet = true;
96 m_requestId = std::forward<RequestIdT>(value);
97 }
98 template <typename RequestIdT = Aws::String>
100 SetRequestId(std::forward<RequestIdT>(value));
101 return *this;
102 }
104 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
105
106 private:
107 GuadrailAction m_guardrailAction{GuadrailAction::NOT_SET};
108
109 Aws::String m_nextToken;
110
112
113 Aws::String m_requestId;
114 Aws::Http::HttpResponseCode m_HttpResponseCode;
115 bool m_guardrailActionHasBeenSet = false;
116 bool m_nextTokenHasBeenSet = false;
117 bool m_retrievalResultsHasBeenSet = false;
118 bool m_requestIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace BedrockAgentRuntime
123} // namespace Aws
RetrieveResult & WithRetrievalResults(RetrievalResultsT &&value)
RetrieveResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< KnowledgeBaseRetrievalResult > & GetRetrievalResults() const
RetrieveResult & AddRetrievalResults(RetrievalResultsT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrieveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRetrievalResults(RetrievalResultsT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrieveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
RetrieveResult & WithGuardrailAction(GuadrailAction value)
AWS_BEDROCKAGENTRUNTIME_API RetrieveResult()=default
RetrieveResult & WithRequestId(RequestIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue