AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
KnowledgeBaseConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/RetrieveConfig.h>
9#include <aws/bedrock/model/RetrieveAndGenerateConfiguration.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Bedrock
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCK_API KnowledgeBaseConfig() = default;
39 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const RetrieveConfig& GetRetrieveConfig() const { return m_retrieveConfig; }
48 inline bool RetrieveConfigHasBeenSet() const { return m_retrieveConfigHasBeenSet; }
49 template<typename RetrieveConfigT = RetrieveConfig>
50 void SetRetrieveConfig(RetrieveConfigT&& value) { m_retrieveConfigHasBeenSet = true; m_retrieveConfig = std::forward<RetrieveConfigT>(value); }
51 template<typename RetrieveConfigT = RetrieveConfig>
52 KnowledgeBaseConfig& WithRetrieveConfig(RetrieveConfigT&& value) { SetRetrieveConfig(std::forward<RetrieveConfigT>(value)); return *this;}
54
56
60 inline const RetrieveAndGenerateConfiguration& GetRetrieveAndGenerateConfig() const { return m_retrieveAndGenerateConfig; }
61 inline bool RetrieveAndGenerateConfigHasBeenSet() const { return m_retrieveAndGenerateConfigHasBeenSet; }
62 template<typename RetrieveAndGenerateConfigT = RetrieveAndGenerateConfiguration>
63 void SetRetrieveAndGenerateConfig(RetrieveAndGenerateConfigT&& value) { m_retrieveAndGenerateConfigHasBeenSet = true; m_retrieveAndGenerateConfig = std::forward<RetrieveAndGenerateConfigT>(value); }
64 template<typename RetrieveAndGenerateConfigT = RetrieveAndGenerateConfiguration>
65 KnowledgeBaseConfig& WithRetrieveAndGenerateConfig(RetrieveAndGenerateConfigT&& value) { SetRetrieveAndGenerateConfig(std::forward<RetrieveAndGenerateConfigT>(value)); return *this;}
67 private:
68
69 RetrieveConfig m_retrieveConfig;
70 bool m_retrieveConfigHasBeenSet = false;
71
72 RetrieveAndGenerateConfiguration m_retrieveAndGenerateConfig;
73 bool m_retrieveAndGenerateConfigHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Bedrock
78} // namespace Aws
KnowledgeBaseConfig & WithRetrieveConfig(RetrieveConfigT &&value)
void SetRetrieveAndGenerateConfig(RetrieveAndGenerateConfigT &&value)
KnowledgeBaseConfig & WithRetrieveAndGenerateConfig(RetrieveAndGenerateConfigT &&value)
AWS_BEDROCK_API KnowledgeBaseConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRetrieveConfig(RetrieveConfigT &&value)
const RetrieveConfig & GetRetrieveConfig() const
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API KnowledgeBaseConfig()=default
const RetrieveAndGenerateConfiguration & GetRetrieveAndGenerateConfig() const
AWS_BEDROCK_API KnowledgeBaseConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue