7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AgenticRetrieveCitation.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
21namespace BedrockAgentRuntime {
43 template <
typename AnswerT = Aws::String>
45 m_answerHasBeenSet =
true;
46 m_answer = std::forward<AnswerT>(value);
48 template <
typename AnswerT = Aws::String>
61 template <
typename CitationsT = Aws::Vector<AgenticRetrieveCitation>>
63 m_citationsHasBeenSet =
true;
64 m_citations = std::forward<CitationsT>(value);
66 template <
typename CitationsT = Aws::Vector<AgenticRetrieveCitation>>
71 template <
typename CitationsT = AgenticRetrieveCitation>
73 m_citationsHasBeenSet =
true;
74 m_citations.emplace_back(std::forward<CitationsT>(value));
82 bool m_answerHasBeenSet =
false;
83 bool m_citationsHasBeenSet =
false;
bool AnswerHasBeenSet() const
AgenticRetrieveGeneratedResponse & WithAnswer(AnswerT &&value)
bool CitationsHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveGeneratedResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCitations(CitationsT &&value)
const Aws::Vector< AgenticRetrieveCitation > & GetCitations() const
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveGeneratedResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveGeneratedResponse()=default
AgenticRetrieveGeneratedResponse & AddCitations(CitationsT &&value)
AgenticRetrieveGeneratedResponse & WithCitations(CitationsT &&value)
void SetAnswer(AnswerT &&value)
const Aws::String & GetAnswer() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
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