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/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/wisdom/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 ConnectWisdomService
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECTWISDOMSERVICE_API ContentData();
38 AWS_CONNECTWISDOMSERVICE_API ContentData(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTWISDOMSERVICE_API ContentData& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTWISDOMSERVICE_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
104 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
105 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
106 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
107 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
108 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
109 inline ContentData& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
110 inline ContentData& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
111 inline ContentData& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
113
115
118 inline const Aws::String& GetLinkOutUri() const{ return m_linkOutUri; }
119 inline bool LinkOutUriHasBeenSet() const { return m_linkOutUriHasBeenSet; }
120 inline void SetLinkOutUri(const Aws::String& value) { m_linkOutUriHasBeenSet = true; m_linkOutUri = value; }
121 inline void SetLinkOutUri(Aws::String&& value) { m_linkOutUriHasBeenSet = true; m_linkOutUri = std::move(value); }
122 inline void SetLinkOutUri(const char* value) { m_linkOutUriHasBeenSet = true; m_linkOutUri.assign(value); }
123 inline ContentData& WithLinkOutUri(const Aws::String& value) { SetLinkOutUri(value); return *this;}
124 inline ContentData& WithLinkOutUri(Aws::String&& value) { SetLinkOutUri(std::move(value)); return *this;}
125 inline ContentData& WithLinkOutUri(const char* value) { SetLinkOutUri(value); return *this;}
127
129
135 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
136 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
137 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
138 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
139 inline ContentData& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
140 inline ContentData& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
141 inline ContentData& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
142 inline ContentData& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
143 inline ContentData& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
144 inline ContentData& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
145 inline ContentData& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
146 inline ContentData& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
147 inline ContentData& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
149
151
154 inline const Aws::String& GetName() const{ return m_name; }
155 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
156 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
157 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
158 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
159 inline ContentData& WithName(const Aws::String& value) { SetName(value); return *this;}
160 inline ContentData& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
161 inline ContentData& WithName(const char* value) { SetName(value); return *this;}
163
165
168 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
169 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
170 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
171 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
172 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
173 inline ContentData& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
174 inline ContentData& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
175 inline ContentData& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
177
179
182 inline const ContentStatus& GetStatus() const{ return m_status; }
183 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
184 inline void SetStatus(const ContentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
185 inline void SetStatus(ContentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
186 inline ContentData& WithStatus(const ContentStatus& value) { SetStatus(value); return *this;}
187 inline ContentData& WithStatus(ContentStatus&& value) { SetStatus(std::move(value)); return *this;}
189
191
194 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
195 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
196 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
197 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
198 inline ContentData& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
199 inline ContentData& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
200 inline ContentData& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
201 inline ContentData& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
202 inline ContentData& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
203 inline ContentData& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
204 inline ContentData& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
205 inline ContentData& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
206 inline ContentData& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
208
210
213 inline const Aws::String& GetTitle() const{ return m_title; }
214 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
215 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
216 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
217 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
218 inline ContentData& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
219 inline ContentData& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
220 inline ContentData& WithTitle(const char* value) { SetTitle(value); return *this;}
222
224
227 inline const Aws::String& GetUrl() const{ return m_url; }
228 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
229 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
230 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
231 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
232 inline ContentData& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
233 inline ContentData& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
234 inline ContentData& WithUrl(const char* value) { SetUrl(value); return *this;}
236
238
241 inline const Aws::Utils::DateTime& GetUrlExpiry() const{ return m_urlExpiry; }
242 inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; }
243 inline void SetUrlExpiry(const Aws::Utils::DateTime& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = value; }
244 inline void SetUrlExpiry(Aws::Utils::DateTime&& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = std::move(value); }
245 inline ContentData& WithUrlExpiry(const Aws::Utils::DateTime& value) { SetUrlExpiry(value); return *this;}
246 inline ContentData& WithUrlExpiry(Aws::Utils::DateTime&& value) { SetUrlExpiry(std::move(value)); return *this;}
248 private:
249
250 Aws::String m_contentArn;
251 bool m_contentArnHasBeenSet = false;
252
253 Aws::String m_contentId;
254 bool m_contentIdHasBeenSet = false;
255
256 Aws::String m_contentType;
257 bool m_contentTypeHasBeenSet = false;
258
259 Aws::String m_knowledgeBaseArn;
260 bool m_knowledgeBaseArnHasBeenSet = false;
261
262 Aws::String m_knowledgeBaseId;
263 bool m_knowledgeBaseIdHasBeenSet = false;
264
265 Aws::String m_linkOutUri;
266 bool m_linkOutUriHasBeenSet = false;
267
269 bool m_metadataHasBeenSet = false;
270
271 Aws::String m_name;
272 bool m_nameHasBeenSet = false;
273
274 Aws::String m_revisionId;
275 bool m_revisionIdHasBeenSet = false;
276
277 ContentStatus m_status;
278 bool m_statusHasBeenSet = false;
279
281 bool m_tagsHasBeenSet = false;
282
283 Aws::String m_title;
284 bool m_titleHasBeenSet = false;
285
286 Aws::String m_url;
287 bool m_urlHasBeenSet = false;
288
289 Aws::Utils::DateTime m_urlExpiry;
290 bool m_urlExpiryHasBeenSet = false;
291 };
292
293} // namespace Model
294} // namespace ConnectWisdomService
295} // namespace Aws
ContentData & WithContentId(const Aws::String &value)
Definition ContentData.h:66
void SetStatus(const ContentStatus &value)
void SetContentArn(const Aws::String &value)
Definition ContentData.h:49
const Aws::String & GetKnowledgeBaseArn() const
Definition ContentData.h:89
ContentData & AddTags(const char *key, Aws::String &&value)
AWS_CONNECTWISDOMSERVICE_API ContentData()
ContentData & WithLinkOutUri(Aws::String &&value)
ContentData & AddMetadata(Aws::String &&key, Aws::String &&value)
void SetKnowledgeBaseArn(const Aws::String &value)
Definition ContentData.h:91
void SetRevisionId(const Aws::String &value)
ContentData & AddTags(Aws::String &&key, Aws::String &&value)
void SetKnowledgeBaseId(Aws::String &&value)
ContentData & AddTags(Aws::String &&key, const char *value)
ContentData & WithUrl(const Aws::String &value)
ContentData & WithContentId(const char *value)
Definition ContentData.h:68
ContentData & WithUrlExpiry(Aws::Utils::DateTime &&value)
ContentData & WithUrlExpiry(const Aws::Utils::DateTime &value)
ContentData & WithLinkOutUri(const Aws::String &value)
const Aws::String & GetLinkOutUri() const
ContentData & AddTags(const Aws::String &key, Aws::String &&value)
ContentData & AddMetadata(Aws::String &&key, const Aws::String &value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetLinkOutUri(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API ContentData & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentData & AddMetadata(Aws::String &&key, const char *value)
const Aws::String & GetKnowledgeBaseId() const
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ContentData & WithUrl(const char *value)
void SetUrl(const Aws::String &value)
ContentData & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetContentType(const Aws::String &value)
Definition ContentData.h:77
void SetContentId(const Aws::String &value)
Definition ContentData.h:63
void SetName(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API ContentData(Aws::Utils::Json::JsonView jsonValue)
ContentData & WithStatus(const ContentStatus &value)
ContentData & WithName(Aws::String &&value)
ContentData & WithRevisionId(Aws::String &&value)
ContentData & WithContentArn(const Aws::String &value)
Definition ContentData.h:52
ContentData & WithTitle(const char *value)
ContentData & AddTags(const Aws::String &key, const Aws::String &value)
ContentData & WithUrl(Aws::String &&value)
ContentData & WithKnowledgeBaseId(Aws::String &&value)
ContentData & WithName(const char *value)
void SetKnowledgeBaseId(const Aws::String &value)
ContentData & WithTitle(Aws::String &&value)
ContentData & WithKnowledgeBaseId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const Aws::String & GetRevisionId() const
ContentData & WithKnowledgeBaseId(const char *value)
ContentData & AddTags(const char *key, const char *value)
ContentData & WithRevisionId(const char *value)
ContentData & WithKnowledgeBaseArn(const Aws::String &value)
Definition ContentData.h:94
ContentData & WithContentId(Aws::String &&value)
Definition ContentData.h:67
const Aws::String & GetContentId() const
Definition ContentData.h:61
void SetUrlExpiry(const Aws::Utils::DateTime &value)
ContentData & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ContentData & AddMetadata(const char *key, Aws::String &&value)
ContentData & WithStatus(ContentStatus &&value)
ContentData & WithContentArn(Aws::String &&value)
Definition ContentData.h:53
ContentData & WithContentType(const char *value)
Definition ContentData.h:82
ContentData & WithKnowledgeBaseArn(const char *value)
Definition ContentData.h:96
const Aws::String & GetContentType() const
Definition ContentData.h:75
ContentData & AddMetadata(const Aws::String &key, const Aws::String &value)
const Aws::Utils::DateTime & GetUrlExpiry() const
ContentData & AddTags(Aws::String &&key, const Aws::String &value)
const ContentStatus & GetStatus() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContentData & WithContentType(Aws::String &&value)
Definition ContentData.h:81
void SetTitle(const Aws::String &value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ContentData & AddMetadata(const Aws::String &key, Aws::String &&value)
ContentData & WithLinkOutUri(const char *value)
ContentData & WithTitle(const Aws::String &value)
const Aws::String & GetContentArn() const
Definition ContentData.h:47
void SetUrlExpiry(Aws::Utils::DateTime &&value)
ContentData & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ContentData & WithName(const Aws::String &value)
void SetKnowledgeBaseArn(Aws::String &&value)
Definition ContentData.h:92
ContentData & AddMetadata(const char *key, const char *value)
ContentData & WithKnowledgeBaseArn(Aws::String &&value)
Definition ContentData.h:95
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ContentData & WithRevisionId(const Aws::String &value)
ContentData & WithContentArn(const char *value)
Definition ContentData.h:54
ContentData & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ContentData & WithContentType(const Aws::String &value)
Definition ContentData.h:80
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