AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
37
38
40
44 inline const Aws::Vector<Citation>& GetCitations() const{ return m_citations; }
45 inline void SetCitations(const Aws::Vector<Citation>& value) { m_citations = value; }
46 inline void SetCitations(Aws::Vector<Citation>&& value) { m_citations = std::move(value); }
47 inline RetrieveAndGenerateResult& WithCitations(const Aws::Vector<Citation>& value) { SetCitations(value); return *this;}
48 inline RetrieveAndGenerateResult& WithCitations(Aws::Vector<Citation>&& value) { SetCitations(std::move(value)); return *this;}
49 inline RetrieveAndGenerateResult& AddCitations(const Citation& value) { m_citations.push_back(value); return *this; }
50 inline RetrieveAndGenerateResult& AddCitations(Citation&& value) { m_citations.push_back(std::move(value)); return *this; }
52
54
57 inline const GuadrailAction& GetGuardrailAction() const{ return m_guardrailAction; }
58 inline void SetGuardrailAction(const GuadrailAction& value) { m_guardrailAction = value; }
59 inline void SetGuardrailAction(GuadrailAction&& value) { m_guardrailAction = std::move(value); }
61 inline RetrieveAndGenerateResult& WithGuardrailAction(GuadrailAction&& value) { SetGuardrailAction(std::move(value)); return *this;}
63
65
68 inline const RetrieveAndGenerateOutput& GetOutput() const{ return m_output; }
69 inline void SetOutput(const RetrieveAndGenerateOutput& value) { m_output = value; }
70 inline void SetOutput(RetrieveAndGenerateOutput&& value) { m_output = std::move(value); }
71 inline RetrieveAndGenerateResult& WithOutput(const RetrieveAndGenerateOutput& value) { SetOutput(value); return *this;}
72 inline RetrieveAndGenerateResult& WithOutput(RetrieveAndGenerateOutput&& value) { SetOutput(std::move(value)); return *this;}
74
76
84 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
85 inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
86 inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
87 inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
88 inline RetrieveAndGenerateResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
89 inline RetrieveAndGenerateResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
90 inline RetrieveAndGenerateResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
92
94
95 inline const Aws::String& GetRequestId() const{ return m_requestId; }
96 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
97 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
98 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
99 inline RetrieveAndGenerateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
100 inline RetrieveAndGenerateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
101 inline RetrieveAndGenerateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
103 private:
104
105 Aws::Vector<Citation> m_citations;
106
107 GuadrailAction m_guardrailAction;
108
110
111 Aws::String m_sessionId;
112
113 Aws::String m_requestId;
114 };
115
116} // namespace Model
117} // namespace BedrockAgentRuntime
118} // namespace Aws
RetrieveAndGenerateResult & WithGuardrailAction(GuadrailAction &&value)
RetrieveAndGenerateResult & WithRequestId(const Aws::String &value)
RetrieveAndGenerateResult & WithOutput(RetrieveAndGenerateOutput &&value)
RetrieveAndGenerateResult & WithCitations(Aws::Vector< Citation > &&value)
RetrieveAndGenerateResult & WithSessionId(const Aws::String &value)
RetrieveAndGenerateResult & WithSessionId(const char *value)
RetrieveAndGenerateResult & WithOutput(const RetrieveAndGenerateOutput &value)
RetrieveAndGenerateResult & WithRequestId(Aws::String &&value)
RetrieveAndGenerateResult & WithSessionId(Aws::String &&value)
RetrieveAndGenerateResult & AddCitations(const Citation &value)
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RetrieveAndGenerateResult & WithRequestId(const char *value)
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RetrieveAndGenerateResult & AddCitations(Citation &&value)
RetrieveAndGenerateResult & WithCitations(const Aws::Vector< Citation > &value)
RetrieveAndGenerateResult & WithGuardrailAction(const GuadrailAction &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