AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/qconnect/model/ContentStatus.h>
10#include <aws/core/utils/memory/stl/AWSMap.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() = default;
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 template<typename ContentArnT = Aws::String>
50 void SetContentArn(ContentArnT&& value) { m_contentArnHasBeenSet = true; m_contentArn = std::forward<ContentArnT>(value); }
51 template<typename ContentArnT = Aws::String>
52 ContentData& WithContentArn(ContentArnT&& value) { SetContentArn(std::forward<ContentArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetContentId() const { return m_contentId; }
60 inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; }
61 template<typename ContentIdT = Aws::String>
62 void SetContentId(ContentIdT&& value) { m_contentIdHasBeenSet = true; m_contentId = std::forward<ContentIdT>(value); }
63 template<typename ContentIdT = Aws::String>
64 ContentData& WithContentId(ContentIdT&& value) { SetContentId(std::forward<ContentIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
72 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
73 template<typename KnowledgeBaseArnT = Aws::String>
74 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
75 template<typename KnowledgeBaseArnT = Aws::String>
76 ContentData& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
78
80
83 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
84 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
85 template<typename KnowledgeBaseIdT = Aws::String>
86 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
87 template<typename KnowledgeBaseIdT = Aws::String>
88 ContentData& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
90
92
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template<typename NameT = Aws::String>
98 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
99 template<typename NameT = Aws::String>
100 ContentData& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
102
104
107 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
108 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
109 template<typename RevisionIdT = Aws::String>
110 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
111 template<typename RevisionIdT = Aws::String>
112 ContentData& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
114
116
119 inline const Aws::String& GetTitle() const { return m_title; }
120 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
121 template<typename TitleT = Aws::String>
122 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
123 template<typename TitleT = Aws::String>
124 ContentData& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
126
128
131 inline const Aws::String& GetContentType() const { return m_contentType; }
132 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
133 template<typename ContentTypeT = Aws::String>
134 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
135 template<typename ContentTypeT = Aws::String>
136 ContentData& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
138
140
143 inline ContentStatus GetStatus() const { return m_status; }
144 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
145 inline void SetStatus(ContentStatus value) { m_statusHasBeenSet = true; m_status = value; }
146 inline ContentData& WithStatus(ContentStatus value) { SetStatus(value); return *this;}
148
150
156 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
157 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
158 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
159 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
160 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
161 ContentData& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
162 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
163 ContentData& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
164 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
165 }
167
169
172 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
176 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 ContentData& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
178 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
179 ContentData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
180 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
181 }
183
185
188 inline const Aws::String& GetLinkOutUri() const { return m_linkOutUri; }
189 inline bool LinkOutUriHasBeenSet() const { return m_linkOutUriHasBeenSet; }
190 template<typename LinkOutUriT = Aws::String>
191 void SetLinkOutUri(LinkOutUriT&& value) { m_linkOutUriHasBeenSet = true; m_linkOutUri = std::forward<LinkOutUriT>(value); }
192 template<typename LinkOutUriT = Aws::String>
193 ContentData& WithLinkOutUri(LinkOutUriT&& value) { SetLinkOutUri(std::forward<LinkOutUriT>(value)); return *this;}
195
197
200 inline const Aws::String& GetUrl() const { return m_url; }
201 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
202 template<typename UrlT = Aws::String>
203 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
204 template<typename UrlT = Aws::String>
205 ContentData& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
207
209
212 inline const Aws::Utils::DateTime& GetUrlExpiry() const { return m_urlExpiry; }
213 inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; }
214 template<typename UrlExpiryT = Aws::Utils::DateTime>
215 void SetUrlExpiry(UrlExpiryT&& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = std::forward<UrlExpiryT>(value); }
216 template<typename UrlExpiryT = Aws::Utils::DateTime>
217 ContentData& WithUrlExpiry(UrlExpiryT&& value) { SetUrlExpiry(std::forward<UrlExpiryT>(value)); return *this;}
219 private:
220
221 Aws::String m_contentArn;
222 bool m_contentArnHasBeenSet = false;
223
224 Aws::String m_contentId;
225 bool m_contentIdHasBeenSet = false;
226
227 Aws::String m_knowledgeBaseArn;
228 bool m_knowledgeBaseArnHasBeenSet = false;
229
230 Aws::String m_knowledgeBaseId;
231 bool m_knowledgeBaseIdHasBeenSet = false;
232
233 Aws::String m_name;
234 bool m_nameHasBeenSet = false;
235
236 Aws::String m_revisionId;
237 bool m_revisionIdHasBeenSet = false;
238
239 Aws::String m_title;
240 bool m_titleHasBeenSet = false;
241
242 Aws::String m_contentType;
243 bool m_contentTypeHasBeenSet = false;
244
246 bool m_statusHasBeenSet = false;
247
249 bool m_metadataHasBeenSet = false;
250
252 bool m_tagsHasBeenSet = false;
253
254 Aws::String m_linkOutUri;
255 bool m_linkOutUriHasBeenSet = false;
256
257 Aws::String m_url;
258 bool m_urlHasBeenSet = false;
259
260 Aws::Utils::DateTime m_urlExpiry{};
261 bool m_urlExpiryHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace QConnect
266} // namespace Aws
void SetMetadata(MetadataT &&value)
void SetContentArn(ContentArnT &&value)
Definition ContentData.h:50
const Aws::Utils::DateTime & GetUrlExpiry() const
const Aws::String & GetKnowledgeBaseId() const
Definition ContentData.h:83
void SetUrlExpiry(UrlExpiryT &&value)
ContentData & WithStatus(ContentStatus value)
ContentStatus GetStatus() const
const Aws::String & GetRevisionId() const
ContentData & WithTitle(TitleT &&value)
ContentData & WithContentType(ContentTypeT &&value)
ContentData & WithUrlExpiry(UrlExpiryT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
AWS_QCONNECT_API ContentData()=default
void SetTitle(TitleT &&value)
AWS_QCONNECT_API ContentData & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentData & WithMetadata(MetadataT &&value)
const Aws::String & GetLinkOutUri() const
ContentData & WithUrl(UrlT &&value)
const Aws::String & GetKnowledgeBaseArn() const
Definition ContentData.h:71
ContentData & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetTitle() const
ContentData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
Definition ContentData.h:88
ContentData & WithLinkOutUri(LinkOutUriT &&value)
ContentData & WithName(NameT &&value)
ContentData & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
const Aws::String & GetName() const
Definition ContentData.h:95
ContentData & WithTags(TagsT &&value)
AWS_QCONNECT_API ContentData(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ContentStatus value)
void SetRevisionId(RevisionIdT &&value)
ContentData & WithRevisionId(RevisionIdT &&value)
ContentData & WithContentArn(ContentArnT &&value)
Definition ContentData.h:52
void SetLinkOutUri(LinkOutUriT &&value)
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
Definition ContentData.h:74
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
Definition ContentData.h:86
void SetContentId(ContentIdT &&value)
Definition ContentData.h:62
const Aws::String & GetContentId() const
Definition ContentData.h:59
const Aws::String & GetContentArn() const
Definition ContentData.h:47
ContentData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
Definition ContentData.h:76
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetUrl() const
void SetContentType(ContentTypeT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetContentType() const
ContentData & WithContentId(ContentIdT &&value)
Definition ContentData.h:64
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