AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RetrieveAndGenerateResult.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent-runtime/model/GuadrailAction.h>
10#include <aws/bedrock-agent-runtime/model/RetrieveAndGenerateOutput.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/bedrock-agent-runtime/model/Citation.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace BedrockAgentRuntime
28{
29namespace Model
30{
32 {
33 public:
34 AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateResult() = default;
37
38
40
44 inline const Aws::Vector<Citation>& GetCitations() const { return m_citations; }
45 template<typename CitationsT = Aws::Vector<Citation>>
46 void SetCitations(CitationsT&& value) { m_citationsHasBeenSet = true; m_citations = std::forward<CitationsT>(value); }
47 template<typename CitationsT = Aws::Vector<Citation>>
48 RetrieveAndGenerateResult& WithCitations(CitationsT&& value) { SetCitations(std::forward<CitationsT>(value)); return *this;}
49 template<typename CitationsT = Citation>
50 RetrieveAndGenerateResult& AddCitations(CitationsT&& value) { m_citationsHasBeenSet = true; m_citations.emplace_back(std::forward<CitationsT>(value)); return *this; }
52
54
57 inline GuadrailAction GetGuardrailAction() const { return m_guardrailAction; }
58 inline void SetGuardrailAction(GuadrailAction value) { m_guardrailActionHasBeenSet = true; m_guardrailAction = value; }
61
63
66 inline const RetrieveAndGenerateOutput& GetOutput() const { return m_output; }
67 template<typename OutputT = RetrieveAndGenerateOutput>
68 void SetOutput(OutputT&& value) { m_outputHasBeenSet = true; m_output = std::forward<OutputT>(value); }
69 template<typename OutputT = RetrieveAndGenerateOutput>
70 RetrieveAndGenerateResult& WithOutput(OutputT&& value) { SetOutput(std::forward<OutputT>(value)); return *this;}
72
74
82 inline const Aws::String& GetSessionId() const { return m_sessionId; }
83 template<typename SessionIdT = Aws::String>
84 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
85 template<typename SessionIdT = Aws::String>
86 RetrieveAndGenerateResult& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template<typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
94 template<typename RequestIdT = Aws::String>
95 RetrieveAndGenerateResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
97 private:
98
99 Aws::Vector<Citation> m_citations;
100 bool m_citationsHasBeenSet = false;
101
102 GuadrailAction m_guardrailAction{GuadrailAction::NOT_SET};
103 bool m_guardrailActionHasBeenSet = false;
104
105 RetrieveAndGenerateOutput m_output;
106 bool m_outputHasBeenSet = false;
107
108 Aws::String m_sessionId;
109 bool m_sessionIdHasBeenSet = false;
110
111 Aws::String m_requestId;
112 bool m_requestIdHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace BedrockAgentRuntime
117} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue