AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
KnowledgeBaseFlowNodeConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent/model/GuardrailConfiguration.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/bedrock-agent/model/KnowledgeBaseOrchestrationConfiguration.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
55 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
56 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
57 template<typename KnowledgeBaseIdT = Aws::String>
58 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
59 template<typename KnowledgeBaseIdT = Aws::String>
60 KnowledgeBaseFlowNodeConfiguration& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
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) { m_modelIdHasBeenSet = true; m_modelId = std::forward<ModelIdT>(value); }
74 template<typename ModelIdT = Aws::String>
75 KnowledgeBaseFlowNodeConfiguration& WithModelId(ModelIdT&& value) { SetModelId(std::forward<ModelIdT>(value)); return *this;}
77
79
83 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
84 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
85 template<typename GuardrailConfigurationT = GuardrailConfiguration>
86 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
87 template<typename GuardrailConfigurationT = GuardrailConfiguration>
88 KnowledgeBaseFlowNodeConfiguration& WithGuardrailConfiguration(GuardrailConfigurationT&& value) { SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value)); return *this;}
90
92
95 inline int GetNumberOfResults() const { return m_numberOfResults; }
96 inline bool NumberOfResultsHasBeenSet() const { return m_numberOfResultsHasBeenSet; }
97 inline void SetNumberOfResults(int value) { m_numberOfResultsHasBeenSet = true; m_numberOfResults = value; }
100
102
106 inline const KnowledgeBasePromptTemplate& GetPromptTemplate() const { return m_promptTemplate; }
107 inline bool PromptTemplateHasBeenSet() const { return m_promptTemplateHasBeenSet; }
108 template<typename PromptTemplateT = KnowledgeBasePromptTemplate>
109 void SetPromptTemplate(PromptTemplateT&& value) { m_promptTemplateHasBeenSet = true; m_promptTemplate = std::forward<PromptTemplateT>(value); }
110 template<typename PromptTemplateT = KnowledgeBasePromptTemplate>
111 KnowledgeBaseFlowNodeConfiguration& WithPromptTemplate(PromptTemplateT&& value) { SetPromptTemplate(std::forward<PromptTemplateT>(value)); return *this;}
113
115
118 inline const PromptInferenceConfiguration& GetInferenceConfiguration() const { return m_inferenceConfiguration; }
119 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
120 template<typename InferenceConfigurationT = PromptInferenceConfiguration>
121 void SetInferenceConfiguration(InferenceConfigurationT&& value) { m_inferenceConfigurationHasBeenSet = true; m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value); }
122 template<typename InferenceConfigurationT = PromptInferenceConfiguration>
123 KnowledgeBaseFlowNodeConfiguration& WithInferenceConfiguration(InferenceConfigurationT&& value) { SetInferenceConfiguration(std::forward<InferenceConfigurationT>(value)); return *this;}
125
127
131 inline const VectorSearchRerankingConfiguration& GetRerankingConfiguration() const { return m_rerankingConfiguration; }
132 inline bool RerankingConfigurationHasBeenSet() const { return m_rerankingConfigurationHasBeenSet; }
133 template<typename RerankingConfigurationT = VectorSearchRerankingConfiguration>
134 void SetRerankingConfiguration(RerankingConfigurationT&& value) { m_rerankingConfigurationHasBeenSet = true; m_rerankingConfiguration = std::forward<RerankingConfigurationT>(value); }
135 template<typename RerankingConfigurationT = VectorSearchRerankingConfiguration>
136 KnowledgeBaseFlowNodeConfiguration& WithRerankingConfiguration(RerankingConfigurationT&& value) { SetRerankingConfiguration(std::forward<RerankingConfigurationT>(value)); return *this;}
138
140
144 inline const KnowledgeBaseOrchestrationConfiguration& GetOrchestrationConfiguration() const { return m_orchestrationConfiguration; }
145 inline bool OrchestrationConfigurationHasBeenSet() const { return m_orchestrationConfigurationHasBeenSet; }
146 template<typename OrchestrationConfigurationT = KnowledgeBaseOrchestrationConfiguration>
147 void SetOrchestrationConfiguration(OrchestrationConfigurationT&& value) { m_orchestrationConfigurationHasBeenSet = true; m_orchestrationConfiguration = std::forward<OrchestrationConfigurationT>(value); }
148 template<typename OrchestrationConfigurationT = KnowledgeBaseOrchestrationConfiguration>
149 KnowledgeBaseFlowNodeConfiguration& WithOrchestrationConfiguration(OrchestrationConfigurationT&& value) { SetOrchestrationConfiguration(std::forward<OrchestrationConfigurationT>(value)); return *this;}
151 private:
152
153 Aws::String m_knowledgeBaseId;
154 bool m_knowledgeBaseIdHasBeenSet = false;
155
156 Aws::String m_modelId;
157 bool m_modelIdHasBeenSet = false;
158
159 GuardrailConfiguration m_guardrailConfiguration;
160 bool m_guardrailConfigurationHasBeenSet = false;
161
162 int m_numberOfResults{0};
163 bool m_numberOfResultsHasBeenSet = false;
164
165 KnowledgeBasePromptTemplate m_promptTemplate;
166 bool m_promptTemplateHasBeenSet = false;
167
168 PromptInferenceConfiguration m_inferenceConfiguration;
169 bool m_inferenceConfigurationHasBeenSet = false;
170
171 VectorSearchRerankingConfiguration m_rerankingConfiguration;
172 bool m_rerankingConfigurationHasBeenSet = false;
173
174 KnowledgeBaseOrchestrationConfiguration m_orchestrationConfiguration;
175 bool m_orchestrationConfigurationHasBeenSet = 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