AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
KnowledgeBaseConfiguration.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
32 public:
33 AWS_BEDROCKAGENTRUNTIME_API KnowledgeBaseConfiguration() = default;
36 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
43 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
44 template <typename KnowledgeBaseIdT = Aws::String>
46 m_knowledgeBaseIdHasBeenSet = true;
47 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
48 }
49 template <typename KnowledgeBaseIdT = Aws::String>
51 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
52 return *this;
53 }
55
57
63 inline const KnowledgeBaseRetrievalConfiguration& GetRetrievalConfiguration() const { return m_retrievalConfiguration; }
64 inline bool RetrievalConfigurationHasBeenSet() const { return m_retrievalConfigurationHasBeenSet; }
65 template <typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
67 m_retrievalConfigurationHasBeenSet = true;
68 m_retrievalConfiguration = std::forward<RetrievalConfigurationT>(value);
69 }
70 template <typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
72 SetRetrievalConfiguration(std::forward<RetrievalConfigurationT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_knowledgeBaseId;
78
79 KnowledgeBaseRetrievalConfiguration m_retrievalConfiguration;
80 bool m_knowledgeBaseIdHasBeenSet = false;
81 bool m_retrievalConfigurationHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace BedrockAgentRuntime
86} // 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::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