AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
AgenticRetrieveGeneratedResponse.h
1
6#pragma once
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>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveGeneratedResponse() = default;
35 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAnswer() const { return m_answer; }
42 inline bool AnswerHasBeenSet() const { return m_answerHasBeenSet; }
43 template <typename AnswerT = Aws::String>
44 void SetAnswer(AnswerT&& value) {
45 m_answerHasBeenSet = true;
46 m_answer = std::forward<AnswerT>(value);
47 }
48 template <typename AnswerT = Aws::String>
50 SetAnswer(std::forward<AnswerT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<AgenticRetrieveCitation>& GetCitations() const { return m_citations; }
60 inline bool CitationsHasBeenSet() const { return m_citationsHasBeenSet; }
61 template <typename CitationsT = Aws::Vector<AgenticRetrieveCitation>>
62 void SetCitations(CitationsT&& value) {
63 m_citationsHasBeenSet = true;
64 m_citations = std::forward<CitationsT>(value);
65 }
66 template <typename CitationsT = Aws::Vector<AgenticRetrieveCitation>>
68 SetCitations(std::forward<CitationsT>(value));
69 return *this;
70 }
71 template <typename CitationsT = AgenticRetrieveCitation>
73 m_citationsHasBeenSet = true;
74 m_citations.emplace_back(std::forward<CitationsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_answer;
80
82 bool m_answerHasBeenSet = false;
83 bool m_citationsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace BedrockAgentRuntime
88} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveGeneratedResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
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)
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