AWS SDK for C++

AWS SDK for C++ Version 1.11.633

Loading...
Searching...
No Matches
KnowledgeBaseConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/KnowledgeBaseType.h>
9#include <aws/bedrock-agent/model/VectorKnowledgeBaseConfiguration.h>
10#include <aws/bedrock-agent/model/KendraKnowledgeBaseConfiguration.h>
11#include <aws/bedrock-agent/model/SqlKnowledgeBaseConfiguration.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 BedrockAgent
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_BEDROCKAGENT_API KnowledgeBaseConfiguration() = default;
41 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline KnowledgeBaseType GetType() const { return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(KnowledgeBaseType value) { m_typeHasBeenSet = true; m_type = value; }
52 inline KnowledgeBaseConfiguration& WithType(KnowledgeBaseType value) { SetType(value); return *this;}
54
56
60 inline const VectorKnowledgeBaseConfiguration& GetVectorKnowledgeBaseConfiguration() const { return m_vectorKnowledgeBaseConfiguration; }
61 inline bool VectorKnowledgeBaseConfigurationHasBeenSet() const { return m_vectorKnowledgeBaseConfigurationHasBeenSet; }
62 template<typename VectorKnowledgeBaseConfigurationT = VectorKnowledgeBaseConfiguration>
63 void SetVectorKnowledgeBaseConfiguration(VectorKnowledgeBaseConfigurationT&& value) { m_vectorKnowledgeBaseConfigurationHasBeenSet = true; m_vectorKnowledgeBaseConfiguration = std::forward<VectorKnowledgeBaseConfigurationT>(value); }
64 template<typename VectorKnowledgeBaseConfigurationT = VectorKnowledgeBaseConfiguration>
65 KnowledgeBaseConfiguration& WithVectorKnowledgeBaseConfiguration(VectorKnowledgeBaseConfigurationT&& value) { SetVectorKnowledgeBaseConfiguration(std::forward<VectorKnowledgeBaseConfigurationT>(value)); return *this;}
67
69
72 inline const KendraKnowledgeBaseConfiguration& GetKendraKnowledgeBaseConfiguration() const { return m_kendraKnowledgeBaseConfiguration; }
73 inline bool KendraKnowledgeBaseConfigurationHasBeenSet() const { return m_kendraKnowledgeBaseConfigurationHasBeenSet; }
74 template<typename KendraKnowledgeBaseConfigurationT = KendraKnowledgeBaseConfiguration>
75 void SetKendraKnowledgeBaseConfiguration(KendraKnowledgeBaseConfigurationT&& value) { m_kendraKnowledgeBaseConfigurationHasBeenSet = true; m_kendraKnowledgeBaseConfiguration = std::forward<KendraKnowledgeBaseConfigurationT>(value); }
76 template<typename KendraKnowledgeBaseConfigurationT = KendraKnowledgeBaseConfiguration>
77 KnowledgeBaseConfiguration& WithKendraKnowledgeBaseConfiguration(KendraKnowledgeBaseConfigurationT&& value) { SetKendraKnowledgeBaseConfiguration(std::forward<KendraKnowledgeBaseConfigurationT>(value)); return *this;}
79
81
85 inline const SqlKnowledgeBaseConfiguration& GetSqlKnowledgeBaseConfiguration() const { return m_sqlKnowledgeBaseConfiguration; }
86 inline bool SqlKnowledgeBaseConfigurationHasBeenSet() const { return m_sqlKnowledgeBaseConfigurationHasBeenSet; }
87 template<typename SqlKnowledgeBaseConfigurationT = SqlKnowledgeBaseConfiguration>
88 void SetSqlKnowledgeBaseConfiguration(SqlKnowledgeBaseConfigurationT&& value) { m_sqlKnowledgeBaseConfigurationHasBeenSet = true; m_sqlKnowledgeBaseConfiguration = std::forward<SqlKnowledgeBaseConfigurationT>(value); }
89 template<typename SqlKnowledgeBaseConfigurationT = SqlKnowledgeBaseConfiguration>
90 KnowledgeBaseConfiguration& WithSqlKnowledgeBaseConfiguration(SqlKnowledgeBaseConfigurationT&& value) { SetSqlKnowledgeBaseConfiguration(std::forward<SqlKnowledgeBaseConfigurationT>(value)); return *this;}
92 private:
93
95 bool m_typeHasBeenSet = false;
96
97 VectorKnowledgeBaseConfiguration m_vectorKnowledgeBaseConfiguration;
98 bool m_vectorKnowledgeBaseConfigurationHasBeenSet = false;
99
100 KendraKnowledgeBaseConfiguration m_kendraKnowledgeBaseConfiguration;
101 bool m_kendraKnowledgeBaseConfigurationHasBeenSet = false;
102
103 SqlKnowledgeBaseConfiguration m_sqlKnowledgeBaseConfiguration;
104 bool m_sqlKnowledgeBaseConfigurationHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace BedrockAgent
109} // 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)
Aws::Utils::Json::JsonValue JsonValue