AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
KnowledgeBase.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock-agent/model/KnowledgeBaseConfiguration.h>
12#include <aws/bedrock-agent/model/KnowledgeBaseStatus.h>
13#include <aws/bedrock-agent/model/StorageConfiguration.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::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
50 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
51 template<typename CreatedAtT = Aws::Utils::DateTime>
52 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
53 template<typename CreatedAtT = Aws::Utils::DateTime>
54 KnowledgeBase& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 KnowledgeBase& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
74 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
75 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
76 void SetFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::forward<FailureReasonsT>(value); }
77 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
78 KnowledgeBase& WithFailureReasons(FailureReasonsT&& value) { SetFailureReasons(std::forward<FailureReasonsT>(value)); return *this;}
79 template<typename FailureReasonsT = Aws::String>
80 KnowledgeBase& AddFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value)); return *this; }
82
84
87 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
88 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
89 template<typename KnowledgeBaseArnT = Aws::String>
90 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
91 template<typename KnowledgeBaseArnT = Aws::String>
92 KnowledgeBase& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
94
96
100 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
101 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
102 template<typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
103 void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) { m_knowledgeBaseConfigurationHasBeenSet = true; m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value); }
104 template<typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
105 KnowledgeBase& WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) { SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value)); return *this;}
107
109
112 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
113 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
114 template<typename KnowledgeBaseIdT = Aws::String>
115 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
116 template<typename KnowledgeBaseIdT = Aws::String>
117 KnowledgeBase& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
119
121
124 inline const Aws::String& GetName() const { return m_name; }
125 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
126 template<typename NameT = Aws::String>
127 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
128 template<typename NameT = Aws::String>
129 KnowledgeBase& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
131
133
137 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
138 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
139 template<typename RoleArnT = Aws::String>
140 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
141 template<typename RoleArnT = Aws::String>
142 KnowledgeBase& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
144
146
154 inline KnowledgeBaseStatus GetStatus() const { return m_status; }
155 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
156 inline void SetStatus(KnowledgeBaseStatus value) { m_statusHasBeenSet = true; m_status = value; }
157 inline KnowledgeBase& WithStatus(KnowledgeBaseStatus value) { SetStatus(value); return *this;}
159
161
164 inline const StorageConfiguration& GetStorageConfiguration() const { return m_storageConfiguration; }
165 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
166 template<typename StorageConfigurationT = StorageConfiguration>
167 void SetStorageConfiguration(StorageConfigurationT&& value) { m_storageConfigurationHasBeenSet = true; m_storageConfiguration = std::forward<StorageConfigurationT>(value); }
168 template<typename StorageConfigurationT = StorageConfiguration>
169 KnowledgeBase& WithStorageConfiguration(StorageConfigurationT&& value) { SetStorageConfiguration(std::forward<StorageConfigurationT>(value)); return *this;}
171
173
176 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
177 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
178 template<typename UpdatedAtT = Aws::Utils::DateTime>
179 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
180 template<typename UpdatedAtT = Aws::Utils::DateTime>
181 KnowledgeBase& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
183 private:
184
185 Aws::Utils::DateTime m_createdAt{};
186 bool m_createdAtHasBeenSet = false;
187
188 Aws::String m_description;
189 bool m_descriptionHasBeenSet = false;
190
191 Aws::Vector<Aws::String> m_failureReasons;
192 bool m_failureReasonsHasBeenSet = false;
193
194 Aws::String m_knowledgeBaseArn;
195 bool m_knowledgeBaseArnHasBeenSet = false;
196
197 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
198 bool m_knowledgeBaseConfigurationHasBeenSet = false;
199
200 Aws::String m_knowledgeBaseId;
201 bool m_knowledgeBaseIdHasBeenSet = false;
202
203 Aws::String m_name;
204 bool m_nameHasBeenSet = false;
205
206 Aws::String m_roleArn;
207 bool m_roleArnHasBeenSet = false;
208
210 bool m_statusHasBeenSet = false;
211
212 StorageConfiguration m_storageConfiguration;
213 bool m_storageConfigurationHasBeenSet = false;
214
215 Aws::Utils::DateTime m_updatedAt{};
216 bool m_updatedAtHasBeenSet = 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