AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGenerationConfiguration(const GenerationConfiguration& value) { m_generationConfigurationHasBeenSet = true; m_generationConfiguration = value; }
58 inline void SetGenerationConfiguration(GenerationConfiguration&& value) { m_generationConfigurationHasBeenSet = true; m_generationConfiguration = std::move(value); }
62
64
67 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
68 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
69 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
70 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
71 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
76
78
83 inline const Aws::String& GetModelArn() const{ return m_modelArn; }
84 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
85 inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; }
86 inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); }
87 inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); }
89 inline KnowledgeBaseRetrieveAndGenerateConfiguration& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;}
90 inline KnowledgeBaseRetrieveAndGenerateConfiguration& WithModelArn(const char* value) { SetModelArn(value); return *this;}
92
94
98 inline const OrchestrationConfiguration& GetOrchestrationConfiguration() const{ return m_orchestrationConfiguration; }
99 inline bool OrchestrationConfigurationHasBeenSet() const { return m_orchestrationConfigurationHasBeenSet; }
100 inline void SetOrchestrationConfiguration(const OrchestrationConfiguration& value) { m_orchestrationConfigurationHasBeenSet = true; m_orchestrationConfiguration = value; }
101 inline void SetOrchestrationConfiguration(OrchestrationConfiguration&& value) { m_orchestrationConfigurationHasBeenSet = true; m_orchestrationConfiguration = std::move(value); }
105
107
111 inline const KnowledgeBaseRetrievalConfiguration& GetRetrievalConfiguration() const{ return m_retrievalConfiguration; }
112 inline bool RetrievalConfigurationHasBeenSet() const { return m_retrievalConfigurationHasBeenSet; }
113 inline void SetRetrievalConfiguration(const KnowledgeBaseRetrievalConfiguration& value) { m_retrievalConfigurationHasBeenSet = true; m_retrievalConfiguration = value; }
114 inline void SetRetrievalConfiguration(KnowledgeBaseRetrievalConfiguration&& value) { m_retrievalConfigurationHasBeenSet = true; m_retrievalConfiguration = std::move(value); }
118 private:
119
120 GenerationConfiguration m_generationConfiguration;
121 bool m_generationConfigurationHasBeenSet = false;
122
123 Aws::String m_knowledgeBaseId;
124 bool m_knowledgeBaseIdHasBeenSet = false;
125
126 Aws::String m_modelArn;
127 bool m_modelArnHasBeenSet = false;
128
129 OrchestrationConfiguration m_orchestrationConfiguration;
130 bool m_orchestrationConfigurationHasBeenSet = false;
131
132 KnowledgeBaseRetrievalConfiguration m_retrievalConfiguration;
133 bool m_retrievalConfigurationHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace BedrockAgentRuntime
138} // namespace Aws
KnowledgeBaseRetrieveAndGenerateConfiguration & WithOrchestrationConfiguration(OrchestrationConfiguration &&value)
KnowledgeBaseRetrieveAndGenerateConfiguration & WithOrchestrationConfiguration(const OrchestrationConfiguration &value)
KnowledgeBaseRetrieveAndGenerateConfiguration & WithModelArn(const Aws::String &value)
KnowledgeBaseRetrieveAndGenerateConfiguration & WithKnowledgeBaseId(const Aws::String &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
KnowledgeBaseRetrieveAndGenerateConfiguration & WithGenerationConfiguration(const GenerationConfiguration &value)
KnowledgeBaseRetrieveAndGenerateConfiguration & WithRetrievalConfiguration(const KnowledgeBaseRetrievalConfiguration &value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrieveAndGenerateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseRetrieveAndGenerateConfiguration & WithGenerationConfiguration(GenerationConfiguration &&value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseRetrieveAndGenerateConfiguration(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseRetrieveAndGenerateConfiguration & WithRetrievalConfiguration(KnowledgeBaseRetrievalConfiguration &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue