AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RetrieveAndGenerateResult.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/Citation.h>
9#include <aws/bedrock-agent-runtime/model/GuadrailAction.h>
10#include <aws/bedrock-agent-runtime/model/RetrieveAndGenerateOutput.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
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgentRuntime {
27namespace Model {
29 public:
30 AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateResult() = default;
33
35
39 inline const Aws::Vector<Citation>& GetCitations() const { return m_citations; }
40 template <typename CitationsT = Aws::Vector<Citation>>
41 void SetCitations(CitationsT&& value) {
42 m_citationsHasBeenSet = true;
43 m_citations = std::forward<CitationsT>(value);
44 }
45 template <typename CitationsT = Aws::Vector<Citation>>
47 SetCitations(std::forward<CitationsT>(value));
48 return *this;
49 }
50 template <typename CitationsT = Citation>
52 m_citationsHasBeenSet = true;
53 m_citations.emplace_back(std::forward<CitationsT>(value));
54 return *this;
55 }
57
59
62 inline GuadrailAction GetGuardrailAction() const { return m_guardrailAction; }
64 m_guardrailActionHasBeenSet = true;
65 m_guardrailAction = value;
66 }
68 SetGuardrailAction(value);
69 return *this;
70 }
72
74
77 inline const RetrieveAndGenerateOutput& GetOutput() const { return m_output; }
78 template <typename OutputT = RetrieveAndGenerateOutput>
79 void SetOutput(OutputT&& value) {
80 m_outputHasBeenSet = true;
81 m_output = std::forward<OutputT>(value);
82 }
83 template <typename OutputT = RetrieveAndGenerateOutput>
85 SetOutput(std::forward<OutputT>(value));
86 return *this;
87 }
89
91
99 inline const Aws::String& GetSessionId() const { return m_sessionId; }
100 template <typename SessionIdT = Aws::String>
101 void SetSessionId(SessionIdT&& value) {
102 m_sessionIdHasBeenSet = true;
103 m_sessionId = std::forward<SessionIdT>(value);
104 }
105 template <typename SessionIdT = Aws::String>
107 SetSessionId(std::forward<SessionIdT>(value));
108 return *this;
109 }
111
113
114 inline const Aws::String& GetRequestId() const { return m_requestId; }
115 template <typename RequestIdT = Aws::String>
116 void SetRequestId(RequestIdT&& value) {
117 m_requestIdHasBeenSet = true;
118 m_requestId = std::forward<RequestIdT>(value);
119 }
120 template <typename RequestIdT = Aws::String>
122 SetRequestId(std::forward<RequestIdT>(value));
123 return *this;
124 }
126 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
127
128 private:
129 Aws::Vector<Citation> m_citations;
130
131 GuadrailAction m_guardrailAction{GuadrailAction::NOT_SET};
132
133 RetrieveAndGenerateOutput m_output;
134
135 Aws::String m_sessionId;
136
137 Aws::String m_requestId;
138 Aws::Http::HttpResponseCode m_HttpResponseCode;
139 bool m_citationsHasBeenSet = false;
140 bool m_guardrailActionHasBeenSet = false;
141 bool m_outputHasBeenSet = false;
142 bool m_sessionIdHasBeenSet = false;
143 bool m_requestIdHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace BedrockAgentRuntime
148} // namespace Aws
RetrieveAndGenerateResult & WithCitations(CitationsT &&value)
RetrieveAndGenerateResult & WithRequestId(RequestIdT &&value)
RetrieveAndGenerateResult & WithGuardrailAction(GuadrailAction value)
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateResult()=default
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RetrieveAndGenerateResult & WithSessionId(SessionIdT &&value)
RetrieveAndGenerateResult & AddCitations(CitationsT &&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