AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DataSourceSummary.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/DataSourceStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgent
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_BEDROCKAGENT_API DataSourceSummary() = default;
37 AWS_BEDROCKAGENT_API DataSourceSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENT_API DataSourceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
47 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
48 template<typename DataSourceIdT = Aws::String>
49 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
50 template<typename DataSourceIdT = Aws::String>
51 DataSourceSummary& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 DataSourceSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
71 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
72 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
73 template<typename KnowledgeBaseIdT = Aws::String>
74 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
75 template<typename KnowledgeBaseIdT = Aws::String>
76 DataSourceSummary& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetName() const { return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 template<typename NameT = Aws::String>
86 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
87 template<typename NameT = Aws::String>
88 DataSourceSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
90
92
95 inline DataSourceStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(DataSourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
98 inline DataSourceSummary& WithStatus(DataSourceStatus value) { SetStatus(value); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
106 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
107 template<typename UpdatedAtT = Aws::Utils::DateTime>
108 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
109 template<typename UpdatedAtT = Aws::Utils::DateTime>
110 DataSourceSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
112 private:
113
114 Aws::String m_dataSourceId;
115 bool m_dataSourceIdHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
120 Aws::String m_knowledgeBaseId;
121 bool m_knowledgeBaseIdHasBeenSet = false;
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
127 bool m_statusHasBeenSet = false;
128
129 Aws::Utils::DateTime m_updatedAt{};
130 bool m_updatedAtHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace BedrockAgent
135} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
DataSourceSummary & WithDescription(DescriptionT &&value)
DataSourceSummary & WithName(NameT &&value)
AWS_BEDROCKAGENT_API DataSourceSummary()=default
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceSummary & WithStatus(DataSourceStatus value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_BEDROCKAGENT_API DataSourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetKnowledgeBaseId() const
DataSourceSummary & WithDataSourceId(DataSourceIdT &&value)
DataSourceSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_BEDROCKAGENT_API DataSourceSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue