AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticRetrieveResultEvent.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/Citation.h>
9#include <aws/context/model/RetrievedContext.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/crt/cbor/Cbor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace Context {
23namespace Model {
24
32 public:
33 AWS_CONTEXT_API AgenticRetrieveResultEvent() = default;
34 AWS_CONTEXT_API AgenticRetrieveResultEvent(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API AgenticRetrieveResultEvent& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
44 inline const Aws::Vector<RetrievedContext>& GetRetrievedContext() const { return m_retrievedContext; }
45 inline bool RetrievedContextHasBeenSet() const { return m_retrievedContextHasBeenSet; }
46 template <typename RetrievedContextT = Aws::Vector<RetrievedContext>>
47 void SetRetrievedContext(RetrievedContextT&& value) {
48 m_retrievedContextHasBeenSet = true;
49 m_retrievedContext = std::forward<RetrievedContextT>(value);
50 }
51 template <typename RetrievedContextT = Aws::Vector<RetrievedContext>>
53 SetRetrievedContext(std::forward<RetrievedContextT>(value));
54 return *this;
55 }
56 template <typename RetrievedContextT = RetrievedContext>
57 AgenticRetrieveResultEvent& AddRetrievedContext(RetrievedContextT&& value) {
58 m_retrievedContextHasBeenSet = true;
59 m_retrievedContext.emplace_back(std::forward<RetrievedContextT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetAnswer() const { return m_answer; }
69 inline bool AnswerHasBeenSet() const { return m_answerHasBeenSet; }
70 template <typename AnswerT = Aws::String>
71 void SetAnswer(AnswerT&& value) {
72 m_answerHasBeenSet = true;
73 m_answer = std::forward<AnswerT>(value);
74 }
75 template <typename AnswerT = Aws::String>
77 SetAnswer(std::forward<AnswerT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::Vector<Citation>& GetCitations() const { return m_citations; }
88 inline bool CitationsHasBeenSet() const { return m_citationsHasBeenSet; }
89 template <typename CitationsT = Aws::Vector<Citation>>
90 void SetCitations(CitationsT&& value) {
91 m_citationsHasBeenSet = true;
92 m_citations = std::forward<CitationsT>(value);
93 }
94 template <typename CitationsT = Aws::Vector<Citation>>
96 SetCitations(std::forward<CitationsT>(value));
97 return *this;
98 }
99 template <typename CitationsT = Citation>
101 m_citationsHasBeenSet = true;
102 m_citations.emplace_back(std::forward<CitationsT>(value));
103 return *this;
104 }
106 private:
107 Aws::Vector<RetrievedContext> m_retrievedContext;
108
109 Aws::String m_answer;
110
111 Aws::Vector<Citation> m_citations;
112 bool m_retrievedContextHasBeenSet = false;
113 bool m_answerHasBeenSet = false;
114 bool m_citationsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Context
119} // namespace Aws
const Aws::Vector< Citation > & GetCitations() const
AgenticRetrieveResultEvent & AddRetrievedContext(RetrievedContextT &&value)
AgenticRetrieveResultEvent & WithAnswer(AnswerT &&value)
AgenticRetrieveResultEvent & AddCitations(CitationsT &&value)
AWS_CONTEXT_API AgenticRetrieveResultEvent(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticRetrieveResultEvent & WithCitations(CitationsT &&value)
AWS_CONTEXT_API AgenticRetrieveResultEvent()=default
const Aws::Vector< RetrievedContext > & GetRetrievedContext() const
AWS_CONTEXT_API AgenticRetrieveResultEvent & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticRetrieveResultEvent & WithRetrievedContext(RetrievedContextT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector