AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DataSourceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/DataSourceStatus.h>
11#include <aws/kendra/model/DataSourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace kendra {
23namespace Model {
24
32 public:
33 AWS_KENDRA_API DataSourceSummary() = default;
36 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 DataSourceSummary& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
68 DataSourceSummary& WithId(IdT&& value) {
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
78 inline DataSourceType GetType() const { return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(DataSourceType value) {
81 m_typeHasBeenSet = true;
82 m_type = value;
83 }
85 SetType(value);
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
95 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
96 template <typename CreatedAtT = Aws::Utils::DateTime>
97 void SetCreatedAt(CreatedAtT&& value) {
98 m_createdAtHasBeenSet = true;
99 m_createdAt = std::forward<CreatedAtT>(value);
100 }
101 template <typename CreatedAtT = Aws::Utils::DateTime>
102 DataSourceSummary& WithCreatedAt(CreatedAtT&& value) {
103 SetCreatedAt(std::forward<CreatedAtT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
113 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
114 template <typename UpdatedAtT = Aws::Utils::DateTime>
115 void SetUpdatedAt(UpdatedAtT&& value) {
116 m_updatedAtHasBeenSet = true;
117 m_updatedAt = std::forward<UpdatedAtT>(value);
118 }
119 template <typename UpdatedAtT = Aws::Utils::DateTime>
120 DataSourceSummary& WithUpdatedAt(UpdatedAtT&& value) {
121 SetUpdatedAt(std::forward<UpdatedAtT>(value));
122 return *this;
123 }
125
127
131 inline DataSourceStatus GetStatus() const { return m_status; }
132 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 inline void SetStatus(DataSourceStatus value) {
134 m_statusHasBeenSet = true;
135 m_status = value;
136 }
138 SetStatus(value);
139 return *this;
140 }
142
144
151 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
152 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
153 template <typename LanguageCodeT = Aws::String>
154 void SetLanguageCode(LanguageCodeT&& value) {
155 m_languageCodeHasBeenSet = true;
156 m_languageCode = std::forward<LanguageCodeT>(value);
157 }
158 template <typename LanguageCodeT = Aws::String>
159 DataSourceSummary& WithLanguageCode(LanguageCodeT&& value) {
160 SetLanguageCode(std::forward<LanguageCodeT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_name;
166
167 Aws::String m_id;
168
170
171 Aws::Utils::DateTime m_createdAt{};
172
173 Aws::Utils::DateTime m_updatedAt{};
174
176
177 Aws::String m_languageCode;
178 bool m_nameHasBeenSet = false;
179 bool m_idHasBeenSet = false;
180 bool m_typeHasBeenSet = false;
181 bool m_createdAtHasBeenSet = false;
182 bool m_updatedAtHasBeenSet = false;
183 bool m_statusHasBeenSet = false;
184 bool m_languageCodeHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace kendra
189} // namespace Aws
DataSourceSummary & WithType(DataSourceType value)
void SetStatus(DataSourceStatus value)
const Aws::String & GetLanguageCode() const
void SetLanguageCode(LanguageCodeT &&value)
DataSourceSummary & WithCreatedAt(CreatedAtT &&value)
AWS_KENDRA_API DataSourceSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
DataSourceSummary & WithLanguageCode(LanguageCodeT &&value)
DataSourceSummary & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_KENDRA_API DataSourceSummary()=default
DataSourceSummary & WithStatus(DataSourceStatus value)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_KENDRA_API DataSourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceSummary & WithId(IdT &&value)
const Aws::String & GetId() const
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue