AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
KnowledgeBase.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBase() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetDescription() const { return m_description; }
41 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
42 template <typename DescriptionT = Aws::String>
44 m_descriptionHasBeenSet = true;
45 m_description = std::forward<DescriptionT>(value);
46 }
47 template <typename DescriptionT = Aws::String>
49 SetDescription(std::forward<DescriptionT>(value));
50 return *this;
51 }
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>
63 m_knowledgeBaseIdHasBeenSet = true;
64 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
65 }
66 template <typename KnowledgeBaseIdT = Aws::String>
68 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
69 return *this;
70 }
72
74
80 inline const KnowledgeBaseRetrievalConfiguration& GetRetrievalConfiguration() const { return m_retrievalConfiguration; }
81 inline bool RetrievalConfigurationHasBeenSet() const { return m_retrievalConfigurationHasBeenSet; }
82 template <typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
84 m_retrievalConfigurationHasBeenSet = true;
85 m_retrievalConfiguration = std::forward<RetrievalConfigurationT>(value);
86 }
87 template <typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
89 SetRetrievalConfiguration(std::forward<RetrievalConfigurationT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_description;
95
96 Aws::String m_knowledgeBaseId;
97
98 KnowledgeBaseRetrievalConfiguration m_retrievalConfiguration;
99 bool m_descriptionHasBeenSet = false;
100 bool m_knowledgeBaseIdHasBeenSet = false;
101 bool m_retrievalConfigurationHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace BedrockAgentRuntime
106} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue