AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
KnowledgeBaseConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/RetrieveAndGenerateConfiguration.h>
9#include <aws/bedrock/model/RetrieveConfig.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Bedrock {
21namespace Model {
22
30 public:
31 AWS_BEDROCK_API KnowledgeBaseConfig() = default;
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const RetrieveConfig& GetRetrieveConfig() const { return m_retrieveConfig; }
42 inline bool RetrieveConfigHasBeenSet() const { return m_retrieveConfigHasBeenSet; }
43 template <typename RetrieveConfigT = RetrieveConfig>
45 m_retrieveConfigHasBeenSet = true;
46 m_retrieveConfig = std::forward<RetrieveConfigT>(value);
47 }
48 template <typename RetrieveConfigT = RetrieveConfig>
50 SetRetrieveConfig(std::forward<RetrieveConfigT>(value));
51 return *this;
52 }
54
56
60 inline const RetrieveAndGenerateConfiguration& GetRetrieveAndGenerateConfig() const { return m_retrieveAndGenerateConfig; }
61 inline bool RetrieveAndGenerateConfigHasBeenSet() const { return m_retrieveAndGenerateConfigHasBeenSet; }
62 template <typename RetrieveAndGenerateConfigT = RetrieveAndGenerateConfiguration>
64 m_retrieveAndGenerateConfigHasBeenSet = true;
65 m_retrieveAndGenerateConfig = std::forward<RetrieveAndGenerateConfigT>(value);
66 }
67 template <typename RetrieveAndGenerateConfigT = RetrieveAndGenerateConfiguration>
69 SetRetrieveAndGenerateConfig(std::forward<RetrieveAndGenerateConfigT>(value));
70 return *this;
71 }
73 private:
74 RetrieveConfig m_retrieveConfig;
75
76 RetrieveAndGenerateConfiguration m_retrieveAndGenerateConfig;
77 bool m_retrieveConfigHasBeenSet = false;
78 bool m_retrieveAndGenerateConfigHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Bedrock
83} // namespace Aws
KnowledgeBaseConfig & WithRetrieveConfig(RetrieveConfigT &&value)
void SetRetrieveAndGenerateConfig(RetrieveAndGenerateConfigT &&value)
KnowledgeBaseConfig & WithRetrieveAndGenerateConfig(RetrieveAndGenerateConfigT &&value)
AWS_BEDROCK_API KnowledgeBaseConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRetrieveConfig(RetrieveConfigT &&value)
const RetrieveConfig & GetRetrieveConfig() const
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API KnowledgeBaseConfig()=default
const RetrieveAndGenerateConfiguration & GetRetrieveAndGenerateConfig() const
AWS_BEDROCK_API KnowledgeBaseConfig(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue