AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
KnowledgeBaseRetrieveAndGenerateConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GenerationConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent-runtime/model/OrchestrationConfiguration.h>
11#include <aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime
25{
26namespace Model
27{
28
42 {
43 public:
44 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrieveAndGenerateConfiguration() = default;
47 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const GenerationConfiguration& GetGenerationConfiguration() const { return m_generationConfiguration; }
56 inline bool GenerationConfigurationHasBeenSet() const { return m_generationConfigurationHasBeenSet; }
57 template<typename GenerationConfigurationT = GenerationConfiguration>
58 void SetGenerationConfiguration(GenerationConfigurationT&& value) { m_generationConfigurationHasBeenSet = true; m_generationConfiguration = std::forward<GenerationConfigurationT>(value); }
59 template<typename GenerationConfigurationT = GenerationConfiguration>
60 KnowledgeBaseRetrieveAndGenerateConfiguration& WithGenerationConfiguration(GenerationConfigurationT&& value) { SetGenerationConfiguration(std::forward<GenerationConfigurationT>(value)); return *this;}
62
64
67 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
68 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
69 template<typename KnowledgeBaseIdT = Aws::String>
70 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
71 template<typename KnowledgeBaseIdT = Aws::String>
72 KnowledgeBaseRetrieveAndGenerateConfiguration& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
74
76
81 inline const Aws::String& GetModelArn() const { return m_modelArn; }
82 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
83 template<typename ModelArnT = Aws::String>
84 void SetModelArn(ModelArnT&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::forward<ModelArnT>(value); }
85 template<typename ModelArnT = Aws::String>
86 KnowledgeBaseRetrieveAndGenerateConfiguration& WithModelArn(ModelArnT&& value) { SetModelArn(std::forward<ModelArnT>(value)); return *this;}
88
90
94 inline const OrchestrationConfiguration& GetOrchestrationConfiguration() const { return m_orchestrationConfiguration; }
95 inline bool OrchestrationConfigurationHasBeenSet() const { return m_orchestrationConfigurationHasBeenSet; }
96 template<typename OrchestrationConfigurationT = OrchestrationConfiguration>
97 void SetOrchestrationConfiguration(OrchestrationConfigurationT&& value) { m_orchestrationConfigurationHasBeenSet = true; m_orchestrationConfiguration = std::forward<OrchestrationConfigurationT>(value); }
98 template<typename OrchestrationConfigurationT = OrchestrationConfiguration>
99 KnowledgeBaseRetrieveAndGenerateConfiguration& WithOrchestrationConfiguration(OrchestrationConfigurationT&& value) { SetOrchestrationConfiguration(std::forward<OrchestrationConfigurationT>(value)); return *this;}
101
103
107 inline const KnowledgeBaseRetrievalConfiguration& GetRetrievalConfiguration() const { return m_retrievalConfiguration; }
108 inline bool RetrievalConfigurationHasBeenSet() const { return m_retrievalConfigurationHasBeenSet; }
109 template<typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
110 void SetRetrievalConfiguration(RetrievalConfigurationT&& value) { m_retrievalConfigurationHasBeenSet = true; m_retrievalConfiguration = std::forward<RetrievalConfigurationT>(value); }
111 template<typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
112 KnowledgeBaseRetrieveAndGenerateConfiguration& WithRetrievalConfiguration(RetrievalConfigurationT&& value) { SetRetrievalConfiguration(std::forward<RetrievalConfigurationT>(value)); return *this;}
114 private:
115
116 GenerationConfiguration m_generationConfiguration;
117 bool m_generationConfigurationHasBeenSet = false;
118
119 Aws::String m_knowledgeBaseId;
120 bool m_knowledgeBaseIdHasBeenSet = false;
121
122 Aws::String m_modelArn;
123 bool m_modelArnHasBeenSet = false;
124
125 OrchestrationConfiguration m_orchestrationConfiguration;
126 bool m_orchestrationConfigurationHasBeenSet = false;
127
128 KnowledgeBaseRetrievalConfiguration m_retrievalConfiguration;
129 bool m_retrievalConfigurationHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace BedrockAgentRuntime
134} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
KnowledgeBaseRetrieveAndGenerateConfiguration & WithGenerationConfiguration(GenerationConfigurationT &&value)
KnowledgeBaseRetrieveAndGenerateConfiguration & WithOrchestrationConfiguration(OrchestrationConfigurationT &&value)
KnowledgeBaseRetrieveAndGenerateConfiguration & WithRetrievalConfiguration(RetrievalConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrieveAndGenerateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseRetrieveAndGenerateConfiguration & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrieveAndGenerateConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue