AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
KnowledgeBase.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
34 {
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBase() = default;
37 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBase(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBase& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDescription() const { return m_description; }
47 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 template<typename DescriptionT = Aws::String>
49 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
50 template<typename DescriptionT = Aws::String>
51 KnowledgeBase& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
53
55
59 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
60 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
61 template<typename KnowledgeBaseIdT = Aws::String>
62 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
63 template<typename KnowledgeBaseIdT = Aws::String>
64 KnowledgeBase& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
66
68
74 inline const KnowledgeBaseRetrievalConfiguration& GetRetrievalConfiguration() const { return m_retrievalConfiguration; }
75 inline bool RetrievalConfigurationHasBeenSet() const { return m_retrievalConfigurationHasBeenSet; }
76 template<typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
77 void SetRetrievalConfiguration(RetrievalConfigurationT&& value) { m_retrievalConfigurationHasBeenSet = true; m_retrievalConfiguration = std::forward<RetrievalConfigurationT>(value); }
78 template<typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
79 KnowledgeBase& WithRetrievalConfiguration(RetrievalConfigurationT&& value) { SetRetrievalConfiguration(std::forward<RetrievalConfigurationT>(value)); return *this;}
81 private:
82
83 Aws::String m_description;
84 bool m_descriptionHasBeenSet = false;
85
86 Aws::String m_knowledgeBaseId;
87 bool m_knowledgeBaseIdHasBeenSet = false;
88
89 KnowledgeBaseRetrievalConfiguration m_retrievalConfiguration;
90 bool m_retrievalConfigurationHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace BedrockAgentRuntime
95} // namespace Aws
void SetRetrievalConfiguration(RetrievalConfigurationT &&value)
KnowledgeBase & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBase & WithRetrievalConfiguration(RetrievalConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBase(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
KnowledgeBase & WithDescription(DescriptionT &&value)
const KnowledgeBaseRetrievalConfiguration & GetRetrievalConfiguration() const
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBase & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKnowledgeBaseId() const
AWS_BEDROCKAGENTRUNTIME_API KnowledgeBase()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue