AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContentData.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/qconnect/model/ContentStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QConnect
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_QCONNECT_API ContentData();
38 AWS_QCONNECT_API ContentData(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QCONNECT_API ContentData& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetContentArn() const{ return m_contentArn; }
48 inline bool ContentArnHasBeenSet() const { return m_contentArnHasBeenSet; }
49 inline void SetContentArn(const Aws::String& value) { m_contentArnHasBeenSet = true; m_contentArn = value; }
50 inline void SetContentArn(Aws::String&& value) { m_contentArnHasBeenSet = true; m_contentArn = std::move(value); }
51 inline void SetContentArn(const char* value) { m_contentArnHasBeenSet = true; m_contentArn.assign(value); }
52 inline ContentData& WithContentArn(const Aws::String& value) { SetContentArn(value); return *this;}
53 inline ContentData& WithContentArn(Aws::String&& value) { SetContentArn(std::move(value)); return *this;}
54 inline ContentData& WithContentArn(const char* value) { SetContentArn(value); return *this;}
56
58
61 inline const Aws::String& GetContentId() const{ return m_contentId; }
62 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
63 inline void SetContentId(const Aws::String& value) { m_contentIdHasBeenSet = true; m_contentId = value; }
64 inline void SetContentId(Aws::String&& value) { m_contentIdHasBeenSet = true; m_contentId = std::move(value); }
65 inline void SetContentId(const char* value) { m_contentIdHasBeenSet = true; m_contentId.assign(value); }
66 inline ContentData& WithContentId(const Aws::String& value) { SetContentId(value); return *this;}
67 inline ContentData& WithContentId(Aws::String&& value) { SetContentId(std::move(value)); return *this;}
68 inline ContentData& WithContentId(const char* value) { SetContentId(value); return *this;}
70
72
75 inline const Aws::String& GetContentType() const{ return m_contentType; }
76 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
77 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
78 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
79 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
80 inline ContentData& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
81 inline ContentData& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
82 inline ContentData& WithContentType(const char* value) { SetContentType(value); return *this;}
84
86
89 inline const Aws::String& GetKnowledgeBaseArn() const{ return m_knowledgeBaseArn; }
90 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
91 inline void SetKnowledgeBaseArn(const Aws::String& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = value; }
92 inline void SetKnowledgeBaseArn(Aws::String&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::move(value); }
93 inline void SetKnowledgeBaseArn(const char* value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn.assign(value); }
94 inline ContentData& WithKnowledgeBaseArn(const Aws::String& value) { SetKnowledgeBaseArn(value); return *this;}
95 inline ContentData& WithKnowledgeBaseArn(Aws::String&& value) { SetKnowledgeBaseArn(std::move(value)); return *this;}
96 inline ContentData& WithKnowledgeBaseArn(const char* value) { SetKnowledgeBaseArn(value); return *this;}
98
100
103 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
104 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
105 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
106 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
107 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
108 inline ContentData& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
109 inline ContentData& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
110 inline ContentData& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
112
114
117 inline const Aws::String& GetLinkOutUri() const{ return m_linkOutUri; }
118 inline bool LinkOutUriHasBeenSet() const { return m_linkOutUriHasBeenSet; }
119 inline void SetLinkOutUri(const Aws::String& value) { m_linkOutUriHasBeenSet = true; m_linkOutUri = value; }
120 inline void SetLinkOutUri(Aws::String&& value) { m_linkOutUriHasBeenSet = true; m_linkOutUri = std::move(value); }
121 inline void SetLinkOutUri(const char* value) { m_linkOutUriHasBeenSet = true; m_linkOutUri.assign(value); }
122 inline ContentData& WithLinkOutUri(const Aws::String& value) { SetLinkOutUri(value); return *this;}
123 inline ContentData& WithLinkOutUri(Aws::String&& value) { SetLinkOutUri(std::move(value)); return *this;}
124 inline ContentData& WithLinkOutUri(const char* value) { SetLinkOutUri(value); return *this;}
126
128
134 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
135 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
136 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
137 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
138 inline ContentData& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
139 inline ContentData& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
140 inline ContentData& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
141 inline ContentData& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
142 inline ContentData& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
143 inline ContentData& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
144 inline ContentData& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
145 inline ContentData& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
146 inline ContentData& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
148
150
153 inline const Aws::String& GetName() const{ return m_name; }
154 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
155 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
156 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
157 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
158 inline ContentData& WithName(const Aws::String& value) { SetName(value); return *this;}
159 inline ContentData& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
160 inline ContentData& WithName(const char* value) { SetName(value); return *this;}
162
164
167 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
168 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
169 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
170 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
171 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
172 inline ContentData& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
173 inline ContentData& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
174 inline ContentData& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
176
178
181 inline const ContentStatus& GetStatus() const{ return m_status; }
182 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
183 inline void SetStatus(const ContentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
184 inline void SetStatus(ContentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
185 inline ContentData& WithStatus(const ContentStatus& value) { SetStatus(value); return *this;}
186 inline ContentData& WithStatus(ContentStatus&& value) { SetStatus(std::move(value)); return *this;}
188
190
193 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
194 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
195 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
196 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
197 inline ContentData& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
198 inline ContentData& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
199 inline ContentData& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
200 inline ContentData& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
201 inline ContentData& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
202 inline ContentData& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
203 inline ContentData& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
204 inline ContentData& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
205 inline ContentData& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
207
209
212 inline const Aws::String& GetTitle() const{ return m_title; }
213 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
214 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
215 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
216 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
217 inline ContentData& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
218 inline ContentData& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
219 inline ContentData& WithTitle(const char* value) { SetTitle(value); return *this;}
221
223
226 inline const Aws::String& GetUrl() const{ return m_url; }
227 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
228 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
229 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
230 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
231 inline ContentData& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
232 inline ContentData& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
233 inline ContentData& WithUrl(const char* value) { SetUrl(value); return *this;}
235
237
240 inline const Aws::Utils::DateTime& GetUrlExpiry() const{ return m_urlExpiry; }
241 inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; }
242 inline void SetUrlExpiry(const Aws::Utils::DateTime& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = value; }
243 inline void SetUrlExpiry(Aws::Utils::DateTime&& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = std::move(value); }
244 inline ContentData& WithUrlExpiry(const Aws::Utils::DateTime& value) { SetUrlExpiry(value); return *this;}
245 inline ContentData& WithUrlExpiry(Aws::Utils::DateTime&& value) { SetUrlExpiry(std::move(value)); return *this;}
247 private:
248
249 Aws::String m_contentArn;
250 bool m_contentArnHasBeenSet = false;
251
252 Aws::String m_contentId;
253 bool m_contentIdHasBeenSet = false;
254
255 Aws::String m_contentType;
256 bool m_contentTypeHasBeenSet = false;
257
258 Aws::String m_knowledgeBaseArn;
259 bool m_knowledgeBaseArnHasBeenSet = false;
260
261 Aws::String m_knowledgeBaseId;
262 bool m_knowledgeBaseIdHasBeenSet = false;
263
264 Aws::String m_linkOutUri;
265 bool m_linkOutUriHasBeenSet = false;
266
268 bool m_metadataHasBeenSet = false;
269
270 Aws::String m_name;
271 bool m_nameHasBeenSet = false;
272
273 Aws::String m_revisionId;
274 bool m_revisionIdHasBeenSet = false;
275
276 ContentStatus m_status;
277 bool m_statusHasBeenSet = false;
278
280 bool m_tagsHasBeenSet = false;
281
282 Aws::String m_title;
283 bool m_titleHasBeenSet = false;
284
285 Aws::String m_url;
286 bool m_urlHasBeenSet = false;
287
288 Aws::Utils::DateTime m_urlExpiry;
289 bool m_urlExpiryHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace QConnect
294} // namespace Aws
ContentData & WithTitle(Aws::String &&value)
void SetUrl(const Aws::String &value)
const ContentStatus & GetStatus() const
ContentData & WithUrl(Aws::String &&value)
ContentData & AddMetadata(const char *key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetKnowledgeBaseArn(const Aws::String &value)
Definition ContentData.h:91
const Aws::Utils::DateTime & GetUrlExpiry() const
void SetContentType(Aws::String &&value)
Definition ContentData.h:78
void SetContentArn(Aws::String &&value)
Definition ContentData.h:50
ContentData & WithTitle(const char *value)
void SetUrl(Aws::String &&value)
ContentData & WithStatus(const ContentStatus &value)
const Aws::String & GetKnowledgeBaseId() const
void SetContentId(const char *value)
Definition ContentData.h:65
ContentData & WithName(Aws::String &&value)
ContentData & WithLinkOutUri(const Aws::String &value)
ContentData & WithContentArn(const Aws::String &value)
Definition ContentData.h:52
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ContentData & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetRevisionId() const
void SetTitle(Aws::String &&value)
void SetStatus(ContentStatus &&value)
ContentData & WithUrlExpiry(Aws::Utils::DateTime &&value)
ContentData & WithUrl(const char *value)
ContentData & WithKnowledgeBaseId(Aws::String &&value)
ContentData & WithRevisionId(const char *value)
ContentData & WithContentId(const Aws::String &value)
Definition ContentData.h:66
ContentData & WithStatus(ContentStatus &&value)
ContentData & AddMetadata(const Aws::String &key, const Aws::String &value)
void SetKnowledgeBaseId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
ContentData & WithContentArn(const char *value)
Definition ContentData.h:54
ContentData & WithContentId(const char *value)
Definition ContentData.h:68
void SetContentType(const char *value)
Definition ContentData.h:79
ContentData & WithContentId(Aws::String &&value)
Definition ContentData.h:67
AWS_QCONNECT_API ContentData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLinkOutUri() const
ContentData & WithRevisionId(Aws::String &&value)
void SetStatus(const ContentStatus &value)
const Aws::String & GetKnowledgeBaseArn() const
Definition ContentData.h:89
void SetKnowledgeBaseId(Aws::String &&value)
ContentData & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetLinkOutUri(const char *value)
ContentData & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetTitle() const
ContentData & WithKnowledgeBaseArn(const Aws::String &value)
Definition ContentData.h:94
void SetLinkOutUri(Aws::String &&value)
ContentData & WithLinkOutUri(Aws::String &&value)
void SetKnowledgeBaseArn(Aws::String &&value)
Definition ContentData.h:92
ContentData & WithKnowledgeBaseId(const Aws::String &value)
ContentData & WithRevisionId(const Aws::String &value)
const Aws::String & GetName() const
ContentData & AddMetadata(const char *key, Aws::String &&value)
AWS_QCONNECT_API ContentData(Aws::Utils::Json::JsonView jsonValue)
ContentData & WithKnowledgeBaseArn(Aws::String &&value)
Definition ContentData.h:95
ContentData & WithUrlExpiry(const Aws::Utils::DateTime &value)
void SetContentArn(const Aws::String &value)
Definition ContentData.h:49
ContentData & WithTitle(const Aws::String &value)
void SetName(const Aws::String &value)
ContentData & WithLinkOutUri(const char *value)
ContentData & AddTags(Aws::String &&key, const Aws::String &value)
ContentData & WithContentType(const Aws::String &value)
Definition ContentData.h:80
void SetContentId(const Aws::String &value)
Definition ContentData.h:63
ContentData & WithContentType(const char *value)
Definition ContentData.h:82
void SetName(Aws::String &&value)
void SetKnowledgeBaseArn(const char *value)
Definition ContentData.h:93
void SetTitle(const char *value)
ContentData & AddTags(const Aws::String &key, const Aws::String &value)
ContentData & AddTags(const char *key, const char *value)
void SetKnowledgeBaseId(const Aws::String &value)
void SetRevisionId(const char *value)
void SetRevisionId(const Aws::String &value)
void SetContentArn(const char *value)
Definition ContentData.h:51
ContentData & WithName(const Aws::String &value)
ContentData & WithContentType(Aws::String &&value)
Definition ContentData.h:81
const Aws::String & GetContentId() const
Definition ContentData.h:61
void SetUrlExpiry(const Aws::Utils::DateTime &value)
const Aws::String & GetContentArn() const
Definition ContentData.h:47
void SetUrl(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContentData & AddMetadata(Aws::String &&key, Aws::String &&value)
ContentData & AddTags(Aws::String &&key, const char *value)
const Aws::String & GetUrl() const
ContentData & AddTags(const Aws::String &key, Aws::String &&value)
void SetTitle(const Aws::String &value)
void SetName(const char *value)
void SetRevisionId(Aws::String &&value)
ContentData & AddMetadata(Aws::String &&key, const Aws::String &value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetUrlExpiry(Aws::Utils::DateTime &&value)
ContentData & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ContentData & WithName(const char *value)
ContentData & AddMetadata(const Aws::String &key, Aws::String &&value)
void SetLinkOutUri(const Aws::String &value)
ContentData & WithUrl(const Aws::String &value)
ContentData & AddMetadata(Aws::String &&key, const char *value)
ContentData & WithKnowledgeBaseArn(const char *value)
Definition ContentData.h:96
ContentData & AddTags(const char *key, Aws::String &&value)
void SetContentType(const Aws::String &value)
Definition ContentData.h:77
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContentId(Aws::String &&value)
Definition ContentData.h:64
ContentData & WithKnowledgeBaseId(const char *value)
const Aws::String & GetContentType() const
Definition ContentData.h:75
ContentData & WithContentArn(Aws::String &&value)
Definition ContentData.h:53
ContentData & AddTags(Aws::String &&key, Aws::String &&value)
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
Aws::Utils::Json::JsonValue JsonValue