AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
KnowledgeBaseConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/KendraKnowledgeBaseConfiguration.h>
9#include <aws/bedrock-agent/model/KnowledgeBaseType.h>
10#include <aws/bedrock-agent/model/SqlKnowledgeBaseConfiguration.h>
11#include <aws/bedrock-agent/model/VectorKnowledgeBaseConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent {
23namespace Model {
24
32 public:
33 AWS_BEDROCKAGENT_API KnowledgeBaseConfiguration() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline KnowledgeBaseType GetType() const { return m_type; }
44 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
45 inline void SetType(KnowledgeBaseType value) {
46 m_typeHasBeenSet = true;
47 m_type = value;
48 }
50 SetType(value);
51 return *this;
52 }
54
56
60 inline const VectorKnowledgeBaseConfiguration& GetVectorKnowledgeBaseConfiguration() const { return m_vectorKnowledgeBaseConfiguration; }
61 inline bool VectorKnowledgeBaseConfigurationHasBeenSet() const { return m_vectorKnowledgeBaseConfigurationHasBeenSet; }
62 template <typename VectorKnowledgeBaseConfigurationT = VectorKnowledgeBaseConfiguration>
64 m_vectorKnowledgeBaseConfigurationHasBeenSet = true;
65 m_vectorKnowledgeBaseConfiguration = std::forward<VectorKnowledgeBaseConfigurationT>(value);
66 }
67 template <typename VectorKnowledgeBaseConfigurationT = VectorKnowledgeBaseConfiguration>
69 SetVectorKnowledgeBaseConfiguration(std::forward<VectorKnowledgeBaseConfigurationT>(value));
70 return *this;
71 }
73
75
78 inline const KendraKnowledgeBaseConfiguration& GetKendraKnowledgeBaseConfiguration() const { return m_kendraKnowledgeBaseConfiguration; }
79 inline bool KendraKnowledgeBaseConfigurationHasBeenSet() const { return m_kendraKnowledgeBaseConfigurationHasBeenSet; }
80 template <typename KendraKnowledgeBaseConfigurationT = KendraKnowledgeBaseConfiguration>
82 m_kendraKnowledgeBaseConfigurationHasBeenSet = true;
83 m_kendraKnowledgeBaseConfiguration = std::forward<KendraKnowledgeBaseConfigurationT>(value);
84 }
85 template <typename KendraKnowledgeBaseConfigurationT = KendraKnowledgeBaseConfiguration>
87 SetKendraKnowledgeBaseConfiguration(std::forward<KendraKnowledgeBaseConfigurationT>(value));
88 return *this;
89 }
91
93
97 inline const SqlKnowledgeBaseConfiguration& GetSqlKnowledgeBaseConfiguration() const { return m_sqlKnowledgeBaseConfiguration; }
98 inline bool SqlKnowledgeBaseConfigurationHasBeenSet() const { return m_sqlKnowledgeBaseConfigurationHasBeenSet; }
99 template <typename SqlKnowledgeBaseConfigurationT = SqlKnowledgeBaseConfiguration>
101 m_sqlKnowledgeBaseConfigurationHasBeenSet = true;
102 m_sqlKnowledgeBaseConfiguration = std::forward<SqlKnowledgeBaseConfigurationT>(value);
103 }
104 template <typename SqlKnowledgeBaseConfigurationT = SqlKnowledgeBaseConfiguration>
106 SetSqlKnowledgeBaseConfiguration(std::forward<SqlKnowledgeBaseConfigurationT>(value));
107 return *this;
108 }
110 private:
112
113 VectorKnowledgeBaseConfiguration m_vectorKnowledgeBaseConfiguration;
114
115 KendraKnowledgeBaseConfiguration m_kendraKnowledgeBaseConfiguration;
116
117 SqlKnowledgeBaseConfiguration m_sqlKnowledgeBaseConfiguration;
118 bool m_typeHasBeenSet = false;
119 bool m_vectorKnowledgeBaseConfigurationHasBeenSet = false;
120 bool m_kendraKnowledgeBaseConfigurationHasBeenSet = false;
121 bool m_sqlKnowledgeBaseConfigurationHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace BedrockAgent
126} // namespace Aws
KnowledgeBaseConfiguration & WithType(KnowledgeBaseType value)
AWS_BEDROCKAGENT_API KnowledgeBaseConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKendraKnowledgeBaseConfiguration(KendraKnowledgeBaseConfigurationT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVectorKnowledgeBaseConfiguration(VectorKnowledgeBaseConfigurationT &&value)
AWS_BEDROCKAGENT_API KnowledgeBaseConfiguration()=default
AWS_BEDROCKAGENT_API KnowledgeBaseConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetSqlKnowledgeBaseConfiguration(SqlKnowledgeBaseConfigurationT &&value)
const VectorKnowledgeBaseConfiguration & GetVectorKnowledgeBaseConfiguration() const
KnowledgeBaseConfiguration & WithKendraKnowledgeBaseConfiguration(KendraKnowledgeBaseConfigurationT &&value)
const KendraKnowledgeBaseConfiguration & GetKendraKnowledgeBaseConfiguration() const
KnowledgeBaseConfiguration & WithSqlKnowledgeBaseConfiguration(SqlKnowledgeBaseConfigurationT &&value)
const SqlKnowledgeBaseConfiguration & GetSqlKnowledgeBaseConfiguration() const
KnowledgeBaseConfiguration & WithVectorKnowledgeBaseConfiguration(VectorKnowledgeBaseConfigurationT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue