AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticRetrieveResult.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/AuthorizationRequired.h>
9#include <aws/context/model/Citation.h>
10#include <aws/context/model/RetrievedContext.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/crt/cbor/Cbor.h>
15
16#include <utility>
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Cbor {
23class CborValue;
24} // namespace Cbor
25} // namespace Utils
26namespace Context {
27namespace Model {
37 public:
38 AWS_CONTEXT_API AgenticRetrieveResult() = default;
41
43
48 inline const Aws::Vector<RetrievedContext>& GetRetrievedContext() const { return m_retrievedContext; }
49 template <typename RetrievedContextT = Aws::Vector<RetrievedContext>>
50 void SetRetrievedContext(RetrievedContextT&& value) {
51 m_retrievedContextHasBeenSet = true;
52 m_retrievedContext = std::forward<RetrievedContextT>(value);
53 }
54 template <typename RetrievedContextT = Aws::Vector<RetrievedContext>>
55 AgenticRetrieveResult& WithRetrievedContext(RetrievedContextT&& value) {
56 SetRetrievedContext(std::forward<RetrievedContextT>(value));
57 return *this;
58 }
59 template <typename RetrievedContextT = RetrievedContext>
60 AgenticRetrieveResult& AddRetrievedContext(RetrievedContextT&& value) {
61 m_retrievedContextHasBeenSet = true;
62 m_retrievedContext.emplace_back(std::forward<RetrievedContextT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetAnswer() const { return m_answer; }
72 template <typename AnswerT = Aws::String>
73 void SetAnswer(AnswerT&& value) {
74 m_answerHasBeenSet = true;
75 m_answer = std::forward<AnswerT>(value);
76 }
77 template <typename AnswerT = Aws::String>
79 SetAnswer(std::forward<AnswerT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::Vector<Citation>& GetCitations() const { return m_citations; }
90 template <typename CitationsT = Aws::Vector<Citation>>
91 void SetCitations(CitationsT&& value) {
92 m_citationsHasBeenSet = true;
93 m_citations = std::forward<CitationsT>(value);
94 }
95 template <typename CitationsT = Aws::Vector<Citation>>
96 AgenticRetrieveResult& WithCitations(CitationsT&& value) {
97 SetCitations(std::forward<CitationsT>(value));
98 return *this;
99 }
100 template <typename CitationsT = Citation>
101 AgenticRetrieveResult& AddCitations(CitationsT&& value) {
102 m_citationsHasBeenSet = true;
103 m_citations.emplace_back(std::forward<CitationsT>(value));
104 return *this;
105 }
107
109
115 inline const AuthorizationRequired& GetAuthorizationRequired() const { return m_authorizationRequired; }
116 template <typename AuthorizationRequiredT = AuthorizationRequired>
117 void SetAuthorizationRequired(AuthorizationRequiredT&& value) {
118 m_authorizationRequiredHasBeenSet = true;
119 m_authorizationRequired = std::forward<AuthorizationRequiredT>(value);
120 }
121 template <typename AuthorizationRequiredT = AuthorizationRequired>
122 AgenticRetrieveResult& WithAuthorizationRequired(AuthorizationRequiredT&& value) {
123 SetAuthorizationRequired(std::forward<AuthorizationRequiredT>(value));
124 return *this;
125 }
127
129
130 inline const Aws::String& GetRequestId() const { return m_requestId; }
131 template <typename RequestIdT = Aws::String>
132 void SetRequestId(RequestIdT&& value) {
133 m_requestIdHasBeenSet = true;
134 m_requestId = std::forward<RequestIdT>(value);
135 }
136 template <typename RequestIdT = Aws::String>
138 SetRequestId(std::forward<RequestIdT>(value));
139 return *this;
140 }
142 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
143
144 private:
145 Aws::Vector<RetrievedContext> m_retrievedContext;
146
147 Aws::String m_answer;
148
149 Aws::Vector<Citation> m_citations;
150
151 AuthorizationRequired m_authorizationRequired;
152
153 Aws::String m_requestId;
154 Aws::Http::HttpResponseCode m_HttpResponseCode;
155 bool m_retrievedContextHasBeenSet = false;
156 bool m_answerHasBeenSet = false;
157 bool m_citationsHasBeenSet = false;
158 bool m_authorizationRequiredHasBeenSet = false;
159 bool m_requestIdHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Context
164} // namespace Aws
AgenticRetrieveResult & WithAuthorizationRequired(AuthorizationRequiredT &&value)
const AuthorizationRequired & GetAuthorizationRequired() const
const Aws::Vector< RetrievedContext > & GetRetrievedContext() const
AgenticRetrieveResult & WithAnswer(AnswerT &&value)
void SetAuthorizationRequired(AuthorizationRequiredT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AgenticRetrieveResult & WithRequestId(RequestIdT &&value)
AWS_CONTEXT_API AgenticRetrieveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AgenticRetrieveResult & AddRetrievedContext(RetrievedContextT &&value)
AgenticRetrieveResult & WithCitations(CitationsT &&value)
AgenticRetrieveResult & WithRetrievedContext(RetrievedContextT &&value)
AgenticRetrieveResult & AddCitations(CitationsT &&value)
AWS_CONTEXT_API AgenticRetrieveResult()=default
const Aws::Vector< Citation > & GetCitations() const
void SetRetrievedContext(RetrievedContextT &&value)
AWS_CONTEXT_API AgenticRetrieveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector