AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
KnowledgeBaseDocumentDetail.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/DocumentIdentifier.h>
9#include <aws/bedrock-agent/model/DocumentStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent {
23namespace Model {
24
32 public:
33 AWS_BEDROCKAGENT_API KnowledgeBaseDocumentDetail() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
44 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
45 template <typename KnowledgeBaseIdT = Aws::String>
47 m_knowledgeBaseIdHasBeenSet = true;
48 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
49 }
50 template <typename KnowledgeBaseIdT = Aws::String>
52 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
63 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
64 template <typename DataSourceIdT = Aws::String>
66 m_dataSourceIdHasBeenSet = true;
67 m_dataSourceId = std::forward<DataSourceIdT>(value);
68 }
69 template <typename DataSourceIdT = Aws::String>
71 SetDataSourceId(std::forward<DataSourceIdT>(value));
72 return *this;
73 }
75
77
93 inline DocumentStatus GetStatus() const { return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(DocumentStatus value) {
96 m_statusHasBeenSet = true;
97 m_status = value;
98 }
100 SetStatus(value);
101 return *this;
102 }
104
106
109 inline const DocumentIdentifier& GetIdentifier() const { return m_identifier; }
110 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
111 template <typename IdentifierT = DocumentIdentifier>
113 m_identifierHasBeenSet = true;
114 m_identifier = std::forward<IdentifierT>(value);
115 }
116 template <typename IdentifierT = DocumentIdentifier>
118 SetIdentifier(std::forward<IdentifierT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
129 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
130 template <typename StatusReasonT = Aws::String>
132 m_statusReasonHasBeenSet = true;
133 m_statusReason = std::forward<StatusReasonT>(value);
134 }
135 template <typename StatusReasonT = Aws::String>
137 SetStatusReason(std::forward<StatusReasonT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
147 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
148 template <typename UpdatedAtT = Aws::Utils::DateTime>
149 void SetUpdatedAt(UpdatedAtT&& value) {
150 m_updatedAtHasBeenSet = true;
151 m_updatedAt = std::forward<UpdatedAtT>(value);
152 }
153 template <typename UpdatedAtT = Aws::Utils::DateTime>
155 SetUpdatedAt(std::forward<UpdatedAtT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_knowledgeBaseId;
161
162 Aws::String m_dataSourceId;
163
165
166 DocumentIdentifier m_identifier;
167
168 Aws::String m_statusReason;
169
170 Aws::Utils::DateTime m_updatedAt{};
171 bool m_knowledgeBaseIdHasBeenSet = false;
172 bool m_dataSourceIdHasBeenSet = false;
173 bool m_statusHasBeenSet = false;
174 bool m_identifierHasBeenSet = false;
175 bool m_statusReasonHasBeenSet = false;
176 bool m_updatedAtHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace BedrockAgent
181} // namespace Aws
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API KnowledgeBaseDocumentDetail()=default
KnowledgeBaseDocumentDetail & WithIdentifier(IdentifierT &&value)
KnowledgeBaseDocumentDetail & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBaseDocumentDetail & WithStatusReason(StatusReasonT &&value)
KnowledgeBaseDocumentDetail & WithStatus(DocumentStatus value)
KnowledgeBaseDocumentDetail & WithDataSourceId(DataSourceIdT &&value)
AWS_BEDROCKAGENT_API KnowledgeBaseDocumentDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API KnowledgeBaseDocumentDetail(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseDocumentDetail & WithUpdatedAt(UpdatedAtT &&value)
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