AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
52 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
53 inline KnowledgeBase& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
54 inline KnowledgeBase& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline KnowledgeBase& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline KnowledgeBase& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline KnowledgeBase& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
75 inline const Aws::Vector<Aws::String>& GetFailureReasons() const{ return m_failureReasons; }
76 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
77 inline void SetFailureReasons(const Aws::Vector<Aws::String>& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = value; }
78 inline void SetFailureReasons(Aws::Vector<Aws::String>&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::move(value); }
79 inline KnowledgeBase& WithFailureReasons(const Aws::Vector<Aws::String>& value) { SetFailureReasons(value); return *this;}
80 inline KnowledgeBase& WithFailureReasons(Aws::Vector<Aws::String>&& value) { SetFailureReasons(std::move(value)); return *this;}
81 inline KnowledgeBase& AddFailureReasons(const Aws::String& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; }
82 inline KnowledgeBase& AddFailureReasons(Aws::String&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(std::move(value)); return *this; }
83 inline KnowledgeBase& AddFailureReasons(const char* value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; }
85
87
90 inline const Aws::String& GetKnowledgeBaseArn() const{ return m_knowledgeBaseArn; }
91 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
92 inline void SetKnowledgeBaseArn(const Aws::String& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = value; }
93 inline void SetKnowledgeBaseArn(Aws::String&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::move(value); }
94 inline void SetKnowledgeBaseArn(const char* value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn.assign(value); }
95 inline KnowledgeBase& WithKnowledgeBaseArn(const Aws::String& value) { SetKnowledgeBaseArn(value); return *this;}
96 inline KnowledgeBase& WithKnowledgeBaseArn(Aws::String&& value) { SetKnowledgeBaseArn(std::move(value)); return *this;}
97 inline KnowledgeBase& WithKnowledgeBaseArn(const char* value) { SetKnowledgeBaseArn(value); return *this;}
99
101
105 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const{ return m_knowledgeBaseConfiguration; }
106 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
107 inline void SetKnowledgeBaseConfiguration(const KnowledgeBaseConfiguration& value) { m_knowledgeBaseConfigurationHasBeenSet = true; m_knowledgeBaseConfiguration = value; }
108 inline void SetKnowledgeBaseConfiguration(KnowledgeBaseConfiguration&& value) { m_knowledgeBaseConfigurationHasBeenSet = true; m_knowledgeBaseConfiguration = std::move(value); }
112
114
117 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
118 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
119 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
120 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
121 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
122 inline KnowledgeBase& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
123 inline KnowledgeBase& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
124 inline KnowledgeBase& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
126
128
131 inline const Aws::String& GetName() const{ return m_name; }
132 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
133 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
134 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
135 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
136 inline KnowledgeBase& WithName(const Aws::String& value) { SetName(value); return *this;}
137 inline KnowledgeBase& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
138 inline KnowledgeBase& WithName(const char* value) { SetName(value); return *this;}
140
142
146 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
147 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
148 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
149 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
150 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
151 inline KnowledgeBase& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
152 inline KnowledgeBase& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
153 inline KnowledgeBase& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
155
157
165 inline const KnowledgeBaseStatus& GetStatus() const{ return m_status; }
166 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
167 inline void SetStatus(const KnowledgeBaseStatus& value) { m_statusHasBeenSet = true; m_status = value; }
168 inline void SetStatus(KnowledgeBaseStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
169 inline KnowledgeBase& WithStatus(const KnowledgeBaseStatus& value) { SetStatus(value); return *this;}
170 inline KnowledgeBase& WithStatus(KnowledgeBaseStatus&& value) { SetStatus(std::move(value)); return *this;}
172
174
177 inline const StorageConfiguration& GetStorageConfiguration() const{ return m_storageConfiguration; }
178 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
179 inline void SetStorageConfiguration(const StorageConfiguration& value) { m_storageConfigurationHasBeenSet = true; m_storageConfiguration = value; }
180 inline void SetStorageConfiguration(StorageConfiguration&& value) { m_storageConfigurationHasBeenSet = true; m_storageConfiguration = std::move(value); }
182 inline KnowledgeBase& WithStorageConfiguration(StorageConfiguration&& value) { SetStorageConfiguration(std::move(value)); return *this;}
184
186
189 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
190 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
191 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
192 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
193 inline KnowledgeBase& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
194 inline KnowledgeBase& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
196 private:
197
198 Aws::Utils::DateTime m_createdAt;
199 bool m_createdAtHasBeenSet = false;
200
201 Aws::String m_description;
202 bool m_descriptionHasBeenSet = false;
203
204 Aws::Vector<Aws::String> m_failureReasons;
205 bool m_failureReasonsHasBeenSet = false;
206
207 Aws::String m_knowledgeBaseArn;
208 bool m_knowledgeBaseArnHasBeenSet = false;
209
210 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
211 bool m_knowledgeBaseConfigurationHasBeenSet = false;
212
213 Aws::String m_knowledgeBaseId;
214 bool m_knowledgeBaseIdHasBeenSet = false;
215
216 Aws::String m_name;
217 bool m_nameHasBeenSet = false;
218
219 Aws::String m_roleArn;
220 bool m_roleArnHasBeenSet = false;
221
222 KnowledgeBaseStatus m_status;
223 bool m_statusHasBeenSet = false;
224
225 StorageConfiguration m_storageConfiguration;
226 bool m_storageConfigurationHasBeenSet = false;
227
228 Aws::Utils::DateTime m_updatedAt;
229 bool m_updatedAtHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace BedrockAgent
234} // namespace Aws
void SetName(const Aws::String &value)
KnowledgeBase & WithName(const char *value)
KnowledgeBase & WithFailureReasons(Aws::Vector< Aws::String > &&value)
KnowledgeBase & WithKnowledgeBaseId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetFailureReasons() const
KnowledgeBase & WithStorageConfiguration(const StorageConfiguration &value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKnowledgeBaseId() const
KnowledgeBase & WithDescription(const Aws::String &value)
const KnowledgeBaseStatus & GetStatus() const
const Aws::String & GetName() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetStorageConfiguration(const StorageConfiguration &value)
KnowledgeBase & WithKnowledgeBaseConfiguration(KnowledgeBaseConfiguration &&value)
void SetKnowledgeBaseArn(const char *value)
KnowledgeBase & WithName(Aws::String &&value)
KnowledgeBase & WithKnowledgeBaseArn(const Aws::String &value)
KnowledgeBase & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetKnowledgeBaseId(Aws::String &&value)
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfiguration &&value)
void SetKnowledgeBaseId(const char *value)
KnowledgeBase & WithKnowledgeBaseArn(Aws::String &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
KnowledgeBase & WithStorageConfiguration(StorageConfiguration &&value)
AWS_BEDROCKAGENT_API KnowledgeBase & operator=(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBase & WithRoleArn(const char *value)
const Aws::Utils::DateTime & GetUpdatedAt() const
KnowledgeBase & WithStatus(const KnowledgeBaseStatus &value)
KnowledgeBase & WithKnowledgeBaseId(Aws::String &&value)
AWS_BEDROCKAGENT_API KnowledgeBase(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(KnowledgeBaseStatus &&value)
KnowledgeBase & AddFailureReasons(const Aws::String &value)
KnowledgeBase & AddFailureReasons(Aws::String &&value)
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
const StorageConfiguration & GetStorageConfiguration() const
void SetKnowledgeBaseId(const Aws::String &value)
void SetFailureReasons(const Aws::Vector< Aws::String > &value)
void SetStatus(const KnowledgeBaseStatus &value)
KnowledgeBase & WithKnowledgeBaseArn(const char *value)
KnowledgeBase & WithRoleArn(Aws::String &&value)
const Aws::String & GetRoleArn() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetRoleArn(const Aws::String &value)
void SetFailureReasons(Aws::Vector< Aws::String > &&value)
void SetKnowledgeBaseArn(const Aws::String &value)
KnowledgeBase & WithDescription(Aws::String &&value)
KnowledgeBase & WithStatus(KnowledgeBaseStatus &&value)
KnowledgeBase & WithUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetKnowledgeBaseArn() const
KnowledgeBase & WithRoleArn(const Aws::String &value)
KnowledgeBase & WithFailureReasons(const Aws::Vector< Aws::String > &value)
const Aws::String & GetDescription() const
KnowledgeBase & WithDescription(const char *value)
KnowledgeBase & AddFailureReasons(const char *value)
KnowledgeBase & WithKnowledgeBaseConfiguration(const KnowledgeBaseConfiguration &value)
void SetRoleArn(Aws::String &&value)
AWS_BEDROCKAGENT_API KnowledgeBase()
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDescription(const Aws::String &value)
KnowledgeBase & WithCreatedAt(const Aws::Utils::DateTime &value)
KnowledgeBase & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetKnowledgeBaseConfiguration(const KnowledgeBaseConfiguration &value)
void SetDescription(const char *value)
void SetKnowledgeBaseArn(Aws::String &&value)
void SetDescription(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
void SetStorageConfiguration(StorageConfiguration &&value)
KnowledgeBase & WithName(const Aws::String &value)
KnowledgeBase & WithKnowledgeBaseId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue