AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
KnowledgeBaseConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalConfiguration.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 BedrockAgentRuntime
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseConfiguration() = default;
39 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
49 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
50 template<typename KnowledgeBaseIdT = Aws::String>
51 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
52 template<typename KnowledgeBaseIdT = Aws::String>
53 KnowledgeBaseConfiguration& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
55
57
63 inline const KnowledgeBaseRetrievalConfiguration& GetRetrievalConfiguration() const { return m_retrievalConfiguration; }
64 inline bool RetrievalConfigurationHasBeenSet() const { return m_retrievalConfigurationHasBeenSet; }
65 template<typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
66 void SetRetrievalConfiguration(RetrievalConfigurationT&& value) { m_retrievalConfigurationHasBeenSet = true; m_retrievalConfiguration = std::forward<RetrievalConfigurationT>(value); }
67 template<typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
68 KnowledgeBaseConfiguration& WithRetrievalConfiguration(RetrievalConfigurationT&& value) { SetRetrievalConfiguration(std::forward<RetrievalConfigurationT>(value)); return *this;}
70 private:
71
72 Aws::String m_knowledgeBaseId;
73 bool m_knowledgeBaseIdHasBeenSet = false;
74
75 KnowledgeBaseRetrievalConfiguration m_retrievalConfiguration;
76 bool m_retrievalConfigurationHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace BedrockAgentRuntime
81} // namespace Aws
KnowledgeBaseConfiguration & WithRetrievalConfiguration(RetrievalConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseConfiguration(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseConfiguration & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
const KnowledgeBaseRetrievalConfiguration & GetRetrievalConfiguration() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue