AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
KnowledgeBaseSummary.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/KnowledgeBaseStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent {
22namespace Model {
23
30 public:
31 AWS_BEDROCKAGENT_API KnowledgeBaseSummary() = default;
34 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
41 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
42 template <typename KnowledgeBaseIdT = Aws::String>
44 m_knowledgeBaseIdHasBeenSet = true;
45 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
46 }
47 template <typename KnowledgeBaseIdT = Aws::String>
49 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline KnowledgeBaseStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(KnowledgeBaseStatus value) {
97 m_statusHasBeenSet = true;
98 m_status = value;
99 }
101 SetStatus(value);
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
111 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
112 template <typename UpdatedAtT = Aws::Utils::DateTime>
113 void SetUpdatedAt(UpdatedAtT&& value) {
114 m_updatedAtHasBeenSet = true;
115 m_updatedAt = std::forward<UpdatedAtT>(value);
116 }
117 template <typename UpdatedAtT = Aws::Utils::DateTime>
119 SetUpdatedAt(std::forward<UpdatedAtT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_knowledgeBaseId;
125
126 Aws::String m_name;
127
128 Aws::String m_description;
129
131
132 Aws::Utils::DateTime m_updatedAt{};
133 bool m_knowledgeBaseIdHasBeenSet = false;
134 bool m_nameHasBeenSet = false;
135 bool m_descriptionHasBeenSet = false;
136 bool m_statusHasBeenSet = false;
137 bool m_updatedAtHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace BedrockAgent
142} // namespace Aws
AWS_BEDROCKAGENT_API KnowledgeBaseSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBaseSummary & WithDescription(DescriptionT &&value)
KnowledgeBaseSummary & WithStatus(KnowledgeBaseStatus value)
const Aws::Utils::DateTime & GetUpdatedAt() const
KnowledgeBaseSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_BEDROCKAGENT_API KnowledgeBaseSummary()=default
KnowledgeBaseSummary & WithName(NameT &&value)
AWS_BEDROCKAGENT_API KnowledgeBaseSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
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