AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
QuickResponseSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qconnect/QConnect_EXPORTS.h>
12#include <aws/qconnect/model/QuickResponseStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QConnect {
24namespace Model {
25
33 public:
34 AWS_QCONNECT_API QuickResponseSummary() = default;
37 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetQuickResponseArn() const { return m_quickResponseArn; }
44 inline bool QuickResponseArnHasBeenSet() const { return m_quickResponseArnHasBeenSet; }
45 template <typename QuickResponseArnT = Aws::String>
47 m_quickResponseArnHasBeenSet = true;
48 m_quickResponseArn = std::forward<QuickResponseArnT>(value);
49 }
50 template <typename QuickResponseArnT = Aws::String>
52 SetQuickResponseArn(std::forward<QuickResponseArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetQuickResponseId() const { return m_quickResponseId; }
62 inline bool QuickResponseIdHasBeenSet() const { return m_quickResponseIdHasBeenSet; }
63 template <typename QuickResponseIdT = Aws::String>
65 m_quickResponseIdHasBeenSet = true;
66 m_quickResponseId = std::forward<QuickResponseIdT>(value);
67 }
68 template <typename QuickResponseIdT = Aws::String>
70 SetQuickResponseId(std::forward<QuickResponseIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
80 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
81 template <typename KnowledgeBaseArnT = Aws::String>
83 m_knowledgeBaseArnHasBeenSet = true;
84 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
85 }
86 template <typename KnowledgeBaseArnT = Aws::String>
88 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
98 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
99 template <typename KnowledgeBaseIdT = Aws::String>
101 m_knowledgeBaseIdHasBeenSet = true;
102 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
103 }
104 template <typename KnowledgeBaseIdT = Aws::String>
106 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetName() const { return m_name; }
116 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
117 template <typename NameT = Aws::String>
118 void SetName(NameT&& value) {
119 m_nameHasBeenSet = true;
120 m_name = std::forward<NameT>(value);
121 }
122 template <typename NameT = Aws::String>
124 SetName(std::forward<NameT>(value));
125 return *this;
126 }
128
130
137 inline const Aws::String& GetContentType() const { return m_contentType; }
138 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
139 template <typename ContentTypeT = Aws::String>
141 m_contentTypeHasBeenSet = true;
142 m_contentType = std::forward<ContentTypeT>(value);
143 }
144 template <typename ContentTypeT = Aws::String>
146 SetContentType(std::forward<ContentTypeT>(value));
147 return *this;
148 }
150
152
155 inline QuickResponseStatus GetStatus() const { return m_status; }
156 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
157 inline void SetStatus(QuickResponseStatus value) {
158 m_statusHasBeenSet = true;
159 m_status = value;
160 }
162 SetStatus(value);
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
172 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
173 template <typename CreatedTimeT = Aws::Utils::DateTime>
175 m_createdTimeHasBeenSet = true;
176 m_createdTime = std::forward<CreatedTimeT>(value);
177 }
178 template <typename CreatedTimeT = Aws::Utils::DateTime>
180 SetCreatedTime(std::forward<CreatedTimeT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
190 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
191 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
193 m_lastModifiedTimeHasBeenSet = true;
194 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
195 }
196 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
198 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetDescription() const { return m_description; }
208 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
209 template <typename DescriptionT = Aws::String>
211 m_descriptionHasBeenSet = true;
212 m_description = std::forward<DescriptionT>(value);
213 }
214 template <typename DescriptionT = Aws::String>
216 SetDescription(std::forward<DescriptionT>(value));
217 return *this;
218 }
220
222
226 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
227 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
228 template <typename LastModifiedByT = Aws::String>
230 m_lastModifiedByHasBeenSet = true;
231 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
232 }
233 template <typename LastModifiedByT = Aws::String>
235 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
236 return *this;
237 }
239
241
244 inline bool GetIsActive() const { return m_isActive; }
245 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
246 inline void SetIsActive(bool value) {
247 m_isActiveHasBeenSet = true;
248 m_isActive = value;
249 }
250 inline QuickResponseSummary& WithIsActive(bool value) {
251 SetIsActive(value);
252 return *this;
253 }
255
257
261 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
262 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
263 template <typename ChannelsT = Aws::Vector<Aws::String>>
264 void SetChannels(ChannelsT&& value) {
265 m_channelsHasBeenSet = true;
266 m_channels = std::forward<ChannelsT>(value);
267 }
268 template <typename ChannelsT = Aws::Vector<Aws::String>>
270 SetChannels(std::forward<ChannelsT>(value));
271 return *this;
272 }
273 template <typename ChannelsT = Aws::String>
275 m_channelsHasBeenSet = true;
276 m_channels.emplace_back(std::forward<ChannelsT>(value));
277 return *this;
278 }
280
282
285 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
286 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
287 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
288 void SetTags(TagsT&& value) {
289 m_tagsHasBeenSet = true;
290 m_tags = std::forward<TagsT>(value);
291 }
292 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
294 SetTags(std::forward<TagsT>(value));
295 return *this;
296 }
297 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
299 m_tagsHasBeenSet = true;
300 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
301 return *this;
302 }
304 private:
305 Aws::String m_quickResponseArn;
306
307 Aws::String m_quickResponseId;
308
309 Aws::String m_knowledgeBaseArn;
310
311 Aws::String m_knowledgeBaseId;
312
313 Aws::String m_name;
314
315 Aws::String m_contentType;
316
318
319 Aws::Utils::DateTime m_createdTime{};
320
321 Aws::Utils::DateTime m_lastModifiedTime{};
322
323 Aws::String m_description;
324
325 Aws::String m_lastModifiedBy;
326
327 bool m_isActive{false};
328
329 Aws::Vector<Aws::String> m_channels;
330
332 bool m_quickResponseArnHasBeenSet = false;
333 bool m_quickResponseIdHasBeenSet = false;
334 bool m_knowledgeBaseArnHasBeenSet = false;
335 bool m_knowledgeBaseIdHasBeenSet = false;
336 bool m_nameHasBeenSet = false;
337 bool m_contentTypeHasBeenSet = false;
338 bool m_statusHasBeenSet = false;
339 bool m_createdTimeHasBeenSet = false;
340 bool m_lastModifiedTimeHasBeenSet = false;
341 bool m_descriptionHasBeenSet = false;
342 bool m_lastModifiedByHasBeenSet = false;
343 bool m_isActiveHasBeenSet = false;
344 bool m_channelsHasBeenSet = false;
345 bool m_tagsHasBeenSet = false;
346};
347
348} // namespace Model
349} // namespace QConnect
350} // namespace Aws
QuickResponseSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
QuickResponseSummary & WithChannels(ChannelsT &&value)
QuickResponseSummary & WithLastModifiedBy(LastModifiedByT &&value)
QuickResponseSummary & WithTags(TagsT &&value)
void SetQuickResponseId(QuickResponseIdT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_QCONNECT_API QuickResponseSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
QuickResponseSummary & WithStatus(QuickResponseStatus value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
QuickResponseSummary & AddChannels(ChannelsT &&value)
QuickResponseSummary & WithCreatedTime(CreatedTimeT &&value)
QuickResponseSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetQuickResponseArn(QuickResponseArnT &&value)
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
QuickResponseSummary & WithQuickResponseArn(QuickResponseArnT &&value)
QuickResponseSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
QuickResponseSummary & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API QuickResponseSummary()=default
QuickResponseSummary & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
QuickResponseSummary & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetChannels() const
QuickResponseSummary & WithIsActive(bool value)
void SetLastModifiedBy(LastModifiedByT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
QuickResponseSummary & WithQuickResponseId(QuickResponseIdT &&value)
QuickResponseSummary & WithContentType(ContentTypeT &&value)
AWS_QCONNECT_API QuickResponseSummary(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue