AWS SDK for C++

AWS SDK for C++ Version 1.11.890

Loading...
Searching...
No Matches
ManagedKnowledgeBaseConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/EmbeddingModelConfiguration.h>
9#include <aws/bedrock-agent/model/EmbeddingModelType.h>
10#include <aws/bedrock-agent/model/ServerSideEncryptionConfiguration.h>
11#include <aws/bedrock-agent/model/SupplementalDataStorageConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgent {
24namespace Model {
25
32 public:
33 AWS_BEDROCKAGENT_API ManagedKnowledgeBaseConfiguration() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline EmbeddingModelType GetEmbeddingModelType() const { return m_embeddingModelType; }
44 inline bool EmbeddingModelTypeHasBeenSet() const { return m_embeddingModelTypeHasBeenSet; }
46 m_embeddingModelTypeHasBeenSet = true;
47 m_embeddingModelType = value;
48 }
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEmbeddingModelArn() const { return m_embeddingModelArn; }
60 inline bool EmbeddingModelArnHasBeenSet() const { return m_embeddingModelArnHasBeenSet; }
61 template <typename EmbeddingModelArnT = Aws::String>
63 m_embeddingModelArnHasBeenSet = true;
64 m_embeddingModelArn = std::forward<EmbeddingModelArnT>(value);
65 }
66 template <typename EmbeddingModelArnT = Aws::String>
68 SetEmbeddingModelArn(std::forward<EmbeddingModelArnT>(value));
69 return *this;
70 }
72
74
78 inline const EmbeddingModelConfiguration& GetEmbeddingModelConfiguration() const { return m_embeddingModelConfiguration; }
79 inline bool EmbeddingModelConfigurationHasBeenSet() const { return m_embeddingModelConfigurationHasBeenSet; }
80 template <typename EmbeddingModelConfigurationT = EmbeddingModelConfiguration>
82 m_embeddingModelConfigurationHasBeenSet = true;
83 m_embeddingModelConfiguration = std::forward<EmbeddingModelConfigurationT>(value);
84 }
85 template <typename EmbeddingModelConfigurationT = EmbeddingModelConfiguration>
87 SetEmbeddingModelConfiguration(std::forward<EmbeddingModelConfigurationT>(value));
88 return *this;
89 }
91
93
98 return m_serverSideEncryptionConfiguration;
99 }
100 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
101 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
103 m_serverSideEncryptionConfigurationHasBeenSet = true;
104 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
105 }
106 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
108 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
109 return *this;
110 }
112
114
120 return m_supplementalDataStorageConfiguration;
121 }
122 inline bool SupplementalDataStorageConfigurationHasBeenSet() const { return m_supplementalDataStorageConfigurationHasBeenSet; }
123 template <typename SupplementalDataStorageConfigurationT = SupplementalDataStorageConfiguration>
125 m_supplementalDataStorageConfigurationHasBeenSet = true;
126 m_supplementalDataStorageConfiguration = std::forward<SupplementalDataStorageConfigurationT>(value);
127 }
128 template <typename SupplementalDataStorageConfigurationT = SupplementalDataStorageConfiguration>
130 SetSupplementalDataStorageConfiguration(std::forward<SupplementalDataStorageConfigurationT>(value));
131 return *this;
132 }
134 private:
136
137 Aws::String m_embeddingModelArn;
138
139 EmbeddingModelConfiguration m_embeddingModelConfiguration;
140
141 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
142
143 SupplementalDataStorageConfiguration m_supplementalDataStorageConfiguration;
144 bool m_embeddingModelTypeHasBeenSet = false;
145 bool m_embeddingModelArnHasBeenSet = false;
146 bool m_embeddingModelConfigurationHasBeenSet = false;
147 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
148 bool m_supplementalDataStorageConfigurationHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace BedrockAgent
153} // namespace Aws
void SetSupplementalDataStorageConfiguration(SupplementalDataStorageConfigurationT &&value)
const SupplementalDataStorageConfiguration & GetSupplementalDataStorageConfiguration() const
ManagedKnowledgeBaseConfiguration & WithSupplementalDataStorageConfiguration(SupplementalDataStorageConfigurationT &&value)
AWS_BEDROCKAGENT_API ManagedKnowledgeBaseConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedKnowledgeBaseConfiguration & WithEmbeddingModelType(EmbeddingModelType value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
ManagedKnowledgeBaseConfiguration & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedKnowledgeBaseConfiguration & WithEmbeddingModelArn(EmbeddingModelArnT &&value)
ManagedKnowledgeBaseConfiguration & WithEmbeddingModelConfiguration(EmbeddingModelConfigurationT &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
AWS_BEDROCKAGENT_API ManagedKnowledgeBaseConfiguration()=default
AWS_BEDROCKAGENT_API ManagedKnowledgeBaseConfiguration(Aws::Utils::Json::JsonView jsonValue)
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