AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/PromptInferenceConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock-agent/model/KnowledgeBaseOrchestrationConfiguration.h>
12#include <aws/bedrock-agent/model/KnowledgeBasePromptTemplate.h>
13#include <aws/bedrock-agent/model/VectorSearchRerankingConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgent
27{
28namespace Model
29{
30
43 {
44 public:
45 AWS_BEDROCKAGENT_API KnowledgeBaseFlowNodeConfiguration() = default;
48 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
57 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
58 template<typename GuardrailConfigurationT = GuardrailConfiguration>
59 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
60 template<typename GuardrailConfigurationT = GuardrailConfiguration>
61 KnowledgeBaseFlowNodeConfiguration& WithGuardrailConfiguration(GuardrailConfigurationT&& value) { SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value)); return *this;}
63
65
68 inline const PromptInferenceConfiguration& GetInferenceConfiguration() const { return m_inferenceConfiguration; }
69 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
70 template<typename InferenceConfigurationT = PromptInferenceConfiguration>
71 void SetInferenceConfiguration(InferenceConfigurationT&& value) { m_inferenceConfigurationHasBeenSet = true; m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value); }
72 template<typename InferenceConfigurationT = PromptInferenceConfiguration>
73 KnowledgeBaseFlowNodeConfiguration& WithInferenceConfiguration(InferenceConfigurationT&& value) { SetInferenceConfiguration(std::forward<InferenceConfigurationT>(value)); return *this;}
75
77
80 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
81 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
82 template<typename KnowledgeBaseIdT = Aws::String>
83 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
84 template<typename KnowledgeBaseIdT = Aws::String>
85 KnowledgeBaseFlowNodeConfiguration& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
87
89
95 inline const Aws::String& GetModelId() const { return m_modelId; }
96 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
97 template<typename ModelIdT = Aws::String>
98 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet = true; m_modelId = std::forward<ModelIdT>(value); }
99 template<typename ModelIdT = Aws::String>
100 KnowledgeBaseFlowNodeConfiguration& WithModelId(ModelIdT&& value) { SetModelId(std::forward<ModelIdT>(value)); return *this;}
102
104
107 inline int GetNumberOfResults() const { return m_numberOfResults; }
108 inline bool NumberOfResultsHasBeenSet() const { return m_numberOfResultsHasBeenSet; }
109 inline void SetNumberOfResults(int value) { m_numberOfResultsHasBeenSet = true; m_numberOfResults = value; }
112
114
118 inline const KnowledgeBaseOrchestrationConfiguration& GetOrchestrationConfiguration() const { return m_orchestrationConfiguration; }
119 inline bool OrchestrationConfigurationHasBeenSet() const { return m_orchestrationConfigurationHasBeenSet; }
120 template<typename OrchestrationConfigurationT = KnowledgeBaseOrchestrationConfiguration>
121 void SetOrchestrationConfiguration(OrchestrationConfigurationT&& value) { m_orchestrationConfigurationHasBeenSet = true; m_orchestrationConfiguration = std::forward<OrchestrationConfigurationT>(value); }
122 template<typename OrchestrationConfigurationT = KnowledgeBaseOrchestrationConfiguration>
123 KnowledgeBaseFlowNodeConfiguration& WithOrchestrationConfiguration(OrchestrationConfigurationT&& value) { SetOrchestrationConfiguration(std::forward<OrchestrationConfigurationT>(value)); return *this;}
125
127
131 inline const KnowledgeBasePromptTemplate& GetPromptTemplate() const { return m_promptTemplate; }
132 inline bool PromptTemplateHasBeenSet() const { return m_promptTemplateHasBeenSet; }
133 template<typename PromptTemplateT = KnowledgeBasePromptTemplate>
134 void SetPromptTemplate(PromptTemplateT&& value) { m_promptTemplateHasBeenSet = true; m_promptTemplate = std::forward<PromptTemplateT>(value); }
135 template<typename PromptTemplateT = KnowledgeBasePromptTemplate>
136 KnowledgeBaseFlowNodeConfiguration& WithPromptTemplate(PromptTemplateT&& value) { SetPromptTemplate(std::forward<PromptTemplateT>(value)); return *this;}
138
140
144 inline const VectorSearchRerankingConfiguration& GetRerankingConfiguration() const { return m_rerankingConfiguration; }
145 inline bool RerankingConfigurationHasBeenSet() const { return m_rerankingConfigurationHasBeenSet; }
146 template<typename RerankingConfigurationT = VectorSearchRerankingConfiguration>
147 void SetRerankingConfiguration(RerankingConfigurationT&& value) { m_rerankingConfigurationHasBeenSet = true; m_rerankingConfiguration = std::forward<RerankingConfigurationT>(value); }
148 template<typename RerankingConfigurationT = VectorSearchRerankingConfiguration>
149 KnowledgeBaseFlowNodeConfiguration& WithRerankingConfiguration(RerankingConfigurationT&& value) { SetRerankingConfiguration(std::forward<RerankingConfigurationT>(value)); return *this;}
151 private:
152
153 GuardrailConfiguration m_guardrailConfiguration;
154 bool m_guardrailConfigurationHasBeenSet = false;
155
156 PromptInferenceConfiguration m_inferenceConfiguration;
157 bool m_inferenceConfigurationHasBeenSet = false;
158
159 Aws::String m_knowledgeBaseId;
160 bool m_knowledgeBaseIdHasBeenSet = false;
161
162 Aws::String m_modelId;
163 bool m_modelIdHasBeenSet = false;
164
165 int m_numberOfResults{0};
166 bool m_numberOfResultsHasBeenSet = false;
167
168 KnowledgeBaseOrchestrationConfiguration m_orchestrationConfiguration;
169 bool m_orchestrationConfigurationHasBeenSet = false;
170
171 KnowledgeBasePromptTemplate m_promptTemplate;
172 bool m_promptTemplateHasBeenSet = false;
173
174 VectorSearchRerankingConfiguration m_rerankingConfiguration;
175 bool m_rerankingConfigurationHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace BedrockAgent
180} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue