AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
KnowledgeBaseFlowNodeConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/GuardrailConfiguration.h>
9#include <aws/bedrock-agent/model/KnowledgeBaseOrchestrationConfiguration.h>
10#include <aws/bedrock-agent/model/KnowledgeBasePromptTemplate.h>
11#include <aws/bedrock-agent/model/PromptInferenceConfiguration.h>
12#include <aws/bedrock-agent/model/VectorSearchRerankingConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgent {
25namespace Model {
26
39 public:
40 AWS_BEDROCKAGENT_API KnowledgeBaseFlowNodeConfiguration() = default;
43 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
50 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
51 template <typename KnowledgeBaseIdT = Aws::String>
53 m_knowledgeBaseIdHasBeenSet = true;
54 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
55 }
56 template <typename KnowledgeBaseIdT = Aws::String>
58 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
59 return *this;
60 }
62
64
70 inline const Aws::String& GetModelId() const { return m_modelId; }
71 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
72 template <typename ModelIdT = Aws::String>
73 void SetModelId(ModelIdT&& value) {
74 m_modelIdHasBeenSet = true;
75 m_modelId = std::forward<ModelIdT>(value);
76 }
77 template <typename ModelIdT = Aws::String>
79 SetModelId(std::forward<ModelIdT>(value));
80 return *this;
81 }
83
85
89 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
90 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
91 template <typename GuardrailConfigurationT = GuardrailConfiguration>
93 m_guardrailConfigurationHasBeenSet = true;
94 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
95 }
96 template <typename GuardrailConfigurationT = GuardrailConfiguration>
98 SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value));
99 return *this;
100 }
102
104
107 inline int GetNumberOfResults() const { return m_numberOfResults; }
108 inline bool NumberOfResultsHasBeenSet() const { return m_numberOfResultsHasBeenSet; }
109 inline void SetNumberOfResults(int value) {
110 m_numberOfResultsHasBeenSet = true;
111 m_numberOfResults = value;
112 }
114 SetNumberOfResults(value);
115 return *this;
116 }
118
120
124 inline const KnowledgeBasePromptTemplate& GetPromptTemplate() const { return m_promptTemplate; }
125 inline bool PromptTemplateHasBeenSet() const { return m_promptTemplateHasBeenSet; }
126 template <typename PromptTemplateT = KnowledgeBasePromptTemplate>
128 m_promptTemplateHasBeenSet = true;
129 m_promptTemplate = std::forward<PromptTemplateT>(value);
130 }
131 template <typename PromptTemplateT = KnowledgeBasePromptTemplate>
133 SetPromptTemplate(std::forward<PromptTemplateT>(value));
134 return *this;
135 }
137
139
142 inline const PromptInferenceConfiguration& GetInferenceConfiguration() const { return m_inferenceConfiguration; }
143 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
144 template <typename InferenceConfigurationT = PromptInferenceConfiguration>
146 m_inferenceConfigurationHasBeenSet = true;
147 m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value);
148 }
149 template <typename InferenceConfigurationT = PromptInferenceConfiguration>
151 SetInferenceConfiguration(std::forward<InferenceConfigurationT>(value));
152 return *this;
153 }
155
157
161 inline const VectorSearchRerankingConfiguration& GetRerankingConfiguration() const { return m_rerankingConfiguration; }
162 inline bool RerankingConfigurationHasBeenSet() const { return m_rerankingConfigurationHasBeenSet; }
163 template <typename RerankingConfigurationT = VectorSearchRerankingConfiguration>
165 m_rerankingConfigurationHasBeenSet = true;
166 m_rerankingConfiguration = std::forward<RerankingConfigurationT>(value);
167 }
168 template <typename RerankingConfigurationT = VectorSearchRerankingConfiguration>
170 SetRerankingConfiguration(std::forward<RerankingConfigurationT>(value));
171 return *this;
172 }
174
176
180 inline const KnowledgeBaseOrchestrationConfiguration& GetOrchestrationConfiguration() const { return m_orchestrationConfiguration; }
181 inline bool OrchestrationConfigurationHasBeenSet() const { return m_orchestrationConfigurationHasBeenSet; }
182 template <typename OrchestrationConfigurationT = KnowledgeBaseOrchestrationConfiguration>
184 m_orchestrationConfigurationHasBeenSet = true;
185 m_orchestrationConfiguration = std::forward<OrchestrationConfigurationT>(value);
186 }
187 template <typename OrchestrationConfigurationT = KnowledgeBaseOrchestrationConfiguration>
189 SetOrchestrationConfiguration(std::forward<OrchestrationConfigurationT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_knowledgeBaseId;
195
196 Aws::String m_modelId;
197
198 GuardrailConfiguration m_guardrailConfiguration;
199
200 int m_numberOfResults{0};
201
202 KnowledgeBasePromptTemplate m_promptTemplate;
203
204 PromptInferenceConfiguration m_inferenceConfiguration;
205
206 VectorSearchRerankingConfiguration m_rerankingConfiguration;
207
208 KnowledgeBaseOrchestrationConfiguration m_orchestrationConfiguration;
209 bool m_knowledgeBaseIdHasBeenSet = false;
210 bool m_modelIdHasBeenSet = false;
211 bool m_guardrailConfigurationHasBeenSet = false;
212 bool m_numberOfResultsHasBeenSet = false;
213 bool m_promptTemplateHasBeenSet = false;
214 bool m_inferenceConfigurationHasBeenSet = false;
215 bool m_rerankingConfigurationHasBeenSet = false;
216 bool m_orchestrationConfigurationHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace BedrockAgent
221} // namespace Aws
KnowledgeBaseFlowNodeConfiguration & WithModelId(ModelIdT &&value)
AWS_BEDROCKAGENT_API KnowledgeBaseFlowNodeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseFlowNodeConfiguration & WithRerankingConfiguration(RerankingConfigurationT &&value)
const VectorSearchRerankingConfiguration & GetRerankingConfiguration() const
AWS_BEDROCKAGENT_API KnowledgeBaseFlowNodeConfiguration()=default
AWS_BEDROCKAGENT_API KnowledgeBaseFlowNodeConfiguration(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseFlowNodeConfiguration & WithPromptTemplate(PromptTemplateT &&value)
KnowledgeBaseFlowNodeConfiguration & WithOrchestrationConfiguration(OrchestrationConfigurationT &&value)
KnowledgeBaseFlowNodeConfiguration & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBaseFlowNodeConfiguration & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
const KnowledgeBaseOrchestrationConfiguration & GetOrchestrationConfiguration() const
KnowledgeBaseFlowNodeConfiguration & WithInferenceConfiguration(InferenceConfigurationT &&value)
AWS_BEDROCKAGENT_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
Aws::Utils::Json::JsonValue JsonValue