AWS SDK for C++

AWS SDK for C++ Version 1.11.633

Loading...
Searching...
No Matches
KnowledgeBase.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent/model/KnowledgeBaseConfiguration.h>
10#include <aws/bedrock-agent/model/StorageConfiguration.h>
11#include <aws/bedrock-agent/model/KnowledgeBaseStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgent
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_BEDROCKAGENT_API KnowledgeBase() = default;
40 AWS_BEDROCKAGENT_API KnowledgeBase(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENT_API KnowledgeBase& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
50 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
51 template<typename KnowledgeBaseIdT = Aws::String>
52 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
53 template<typename KnowledgeBaseIdT = Aws::String>
54 KnowledgeBase& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template<typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 KnowledgeBase& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
74 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
75 template<typename KnowledgeBaseArnT = Aws::String>
76 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
77 template<typename KnowledgeBaseArnT = Aws::String>
78 KnowledgeBase& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template<typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
89 template<typename DescriptionT = Aws::String>
90 KnowledgeBase& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
92
94
98 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
99 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
100 template<typename RoleArnT = Aws::String>
101 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
102 template<typename RoleArnT = Aws::String>
103 KnowledgeBase& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
105
107
111 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
112 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
113 template<typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
114 void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) { m_knowledgeBaseConfigurationHasBeenSet = true; m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value); }
115 template<typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
116 KnowledgeBase& WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) { SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value)); return *this;}
118
120
123 inline const StorageConfiguration& GetStorageConfiguration() const { return m_storageConfiguration; }
124 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
125 template<typename StorageConfigurationT = StorageConfiguration>
126 void SetStorageConfiguration(StorageConfigurationT&& value) { m_storageConfigurationHasBeenSet = true; m_storageConfiguration = std::forward<StorageConfigurationT>(value); }
127 template<typename StorageConfigurationT = StorageConfiguration>
128 KnowledgeBase& WithStorageConfiguration(StorageConfigurationT&& value) { SetStorageConfiguration(std::forward<StorageConfigurationT>(value)); return *this;}
130
132
140 inline KnowledgeBaseStatus GetStatus() const { return m_status; }
141 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
142 inline void SetStatus(KnowledgeBaseStatus value) { m_statusHasBeenSet = true; m_status = value; }
143 inline KnowledgeBase& WithStatus(KnowledgeBaseStatus value) { SetStatus(value); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
151 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
152 template<typename CreatedAtT = Aws::Utils::DateTime>
153 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
154 template<typename CreatedAtT = Aws::Utils::DateTime>
155 KnowledgeBase& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
157
159
162 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
163 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
164 template<typename UpdatedAtT = Aws::Utils::DateTime>
165 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
166 template<typename UpdatedAtT = Aws::Utils::DateTime>
167 KnowledgeBase& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
169
171
174 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
175 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
176 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
177 void SetFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::forward<FailureReasonsT>(value); }
178 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
179 KnowledgeBase& WithFailureReasons(FailureReasonsT&& value) { SetFailureReasons(std::forward<FailureReasonsT>(value)); return *this;}
180 template<typename FailureReasonsT = Aws::String>
181 KnowledgeBase& AddFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value)); return *this; }
183 private:
184
185 Aws::String m_knowledgeBaseId;
186 bool m_knowledgeBaseIdHasBeenSet = false;
187
188 Aws::String m_name;
189 bool m_nameHasBeenSet = false;
190
191 Aws::String m_knowledgeBaseArn;
192 bool m_knowledgeBaseArnHasBeenSet = false;
193
194 Aws::String m_description;
195 bool m_descriptionHasBeenSet = false;
196
197 Aws::String m_roleArn;
198 bool m_roleArnHasBeenSet = false;
199
200 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
201 bool m_knowledgeBaseConfigurationHasBeenSet = false;
202
203 StorageConfiguration m_storageConfiguration;
204 bool m_storageConfigurationHasBeenSet = false;
205
207 bool m_statusHasBeenSet = false;
208
209 Aws::Utils::DateTime m_createdAt{};
210 bool m_createdAtHasBeenSet = false;
211
212 Aws::Utils::DateTime m_updatedAt{};
213 bool m_updatedAtHasBeenSet = false;
214
215 Aws::Vector<Aws::String> m_failureReasons;
216 bool m_failureReasonsHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace BedrockAgent
221} // namespace Aws
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::Vector< Aws::String > & GetFailureReasons() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKnowledgeBaseId() const
KnowledgeBase & WithStorageConfiguration(StorageConfigurationT &&value)
const Aws::String & GetName() const
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
KnowledgeBase & WithStatus(KnowledgeBaseStatus value)
KnowledgeBase & WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
AWS_BEDROCKAGENT_API KnowledgeBase & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_BEDROCKAGENT_API KnowledgeBase(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API KnowledgeBase()=default
void SetDescription(DescriptionT &&value)
void SetStatus(KnowledgeBaseStatus value)
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
const StorageConfiguration & GetStorageConfiguration() const
KnowledgeBase & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetRoleArn() const
void SetCreatedAt(CreatedAtT &&value)
KnowledgeBase & AddFailureReasons(FailureReasonsT &&value)
KnowledgeBase & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBase & WithName(NameT &&value)
void SetStorageConfiguration(StorageConfigurationT &&value)
const Aws::String & GetKnowledgeBaseArn() const
const Aws::String & GetDescription() const
KnowledgeBase & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBase & WithFailureReasons(FailureReasonsT &&value)
void SetFailureReasons(FailureReasonsT &&value)
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
KnowledgeBase & WithDescription(DescriptionT &&value)
KnowledgeBase & WithCreatedAt(CreatedAtT &&value)
KnowledgeBase & WithRoleArn(RoleArnT &&value)
KnowledgeBaseStatus GetStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue