AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DocumentVersionMetadata.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/workdocs/WorkDocs_EXPORTS.h>
11#include <aws/workdocs/model/DocumentSourceType.h>
12#include <aws/workdocs/model/DocumentStatusType.h>
13#include <aws/workdocs/model/DocumentThumbnailType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WorkDocs {
25namespace Model {
26
33 public:
34 AWS_WORKDOCS_API DocumentVersionMetadata() = default;
37 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetContentType() const { return m_contentType; }
80 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
81 template <typename ContentTypeT = Aws::String>
82 void SetContentType(ContentTypeT&& value) {
83 m_contentTypeHasBeenSet = true;
84 m_contentType = std::forward<ContentTypeT>(value);
85 }
86 template <typename ContentTypeT = Aws::String>
88 SetContentType(std::forward<ContentTypeT>(value));
89 return *this;
90 }
92
94
97 inline long long GetSize() const { return m_size; }
98 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
99 inline void SetSize(long long value) {
100 m_sizeHasBeenSet = true;
101 m_size = value;
102 }
103 inline DocumentVersionMetadata& WithSize(long long value) {
104 SetSize(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetSignature() const { return m_signature; }
114 inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
115 template <typename SignatureT = Aws::String>
116 void SetSignature(SignatureT&& value) {
117 m_signatureHasBeenSet = true;
118 m_signature = std::forward<SignatureT>(value);
119 }
120 template <typename SignatureT = Aws::String>
122 SetSignature(std::forward<SignatureT>(value));
123 return *this;
124 }
126
128
131 inline DocumentStatusType GetStatus() const { return m_status; }
132 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 inline void SetStatus(DocumentStatusType value) {
134 m_statusHasBeenSet = true;
135 m_status = value;
136 }
138 SetStatus(value);
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
148 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
149 template <typename CreatedTimestampT = Aws::Utils::DateTime>
150 void SetCreatedTimestamp(CreatedTimestampT&& value) {
151 m_createdTimestampHasBeenSet = true;
152 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
153 }
154 template <typename CreatedTimestampT = Aws::Utils::DateTime>
155 DocumentVersionMetadata& WithCreatedTimestamp(CreatedTimestampT&& value) {
156 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const { return m_modifiedTimestamp; }
166 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
167 template <typename ModifiedTimestampT = Aws::Utils::DateTime>
168 void SetModifiedTimestamp(ModifiedTimestampT&& value) {
169 m_modifiedTimestampHasBeenSet = true;
170 m_modifiedTimestamp = std::forward<ModifiedTimestampT>(value);
171 }
172 template <typename ModifiedTimestampT = Aws::Utils::DateTime>
173 DocumentVersionMetadata& WithModifiedTimestamp(ModifiedTimestampT&& value) {
174 SetModifiedTimestamp(std::forward<ModifiedTimestampT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Utils::DateTime& GetContentCreatedTimestamp() const { return m_contentCreatedTimestamp; }
184 inline bool ContentCreatedTimestampHasBeenSet() const { return m_contentCreatedTimestampHasBeenSet; }
185 template <typename ContentCreatedTimestampT = Aws::Utils::DateTime>
186 void SetContentCreatedTimestamp(ContentCreatedTimestampT&& value) {
187 m_contentCreatedTimestampHasBeenSet = true;
188 m_contentCreatedTimestamp = std::forward<ContentCreatedTimestampT>(value);
189 }
190 template <typename ContentCreatedTimestampT = Aws::Utils::DateTime>
191 DocumentVersionMetadata& WithContentCreatedTimestamp(ContentCreatedTimestampT&& value) {
192 SetContentCreatedTimestamp(std::forward<ContentCreatedTimestampT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Utils::DateTime& GetContentModifiedTimestamp() const { return m_contentModifiedTimestamp; }
202 inline bool ContentModifiedTimestampHasBeenSet() const { return m_contentModifiedTimestampHasBeenSet; }
203 template <typename ContentModifiedTimestampT = Aws::Utils::DateTime>
204 void SetContentModifiedTimestamp(ContentModifiedTimestampT&& value) {
205 m_contentModifiedTimestampHasBeenSet = true;
206 m_contentModifiedTimestamp = std::forward<ContentModifiedTimestampT>(value);
207 }
208 template <typename ContentModifiedTimestampT = Aws::Utils::DateTime>
209 DocumentVersionMetadata& WithContentModifiedTimestamp(ContentModifiedTimestampT&& value) {
210 SetContentModifiedTimestamp(std::forward<ContentModifiedTimestampT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetCreatorId() const { return m_creatorId; }
220 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
221 template <typename CreatorIdT = Aws::String>
222 void SetCreatorId(CreatorIdT&& value) {
223 m_creatorIdHasBeenSet = true;
224 m_creatorId = std::forward<CreatorIdT>(value);
225 }
226 template <typename CreatorIdT = Aws::String>
228 SetCreatorId(std::forward<CreatorIdT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::Map<DocumentThumbnailType, Aws::String>& GetThumbnail() const { return m_thumbnail; }
238 inline bool ThumbnailHasBeenSet() const { return m_thumbnailHasBeenSet; }
239 template <typename ThumbnailT = Aws::Map<DocumentThumbnailType, Aws::String>>
240 void SetThumbnail(ThumbnailT&& value) {
241 m_thumbnailHasBeenSet = true;
242 m_thumbnail = std::forward<ThumbnailT>(value);
243 }
244 template <typename ThumbnailT = Aws::Map<DocumentThumbnailType, Aws::String>>
246 SetThumbnail(std::forward<ThumbnailT>(value));
247 return *this;
248 }
250 m_thumbnailHasBeenSet = true;
251 m_thumbnail.emplace(key, value);
252 return *this;
253 }
255
257
260 inline const Aws::Map<DocumentSourceType, Aws::String>& GetSource() const { return m_source; }
261 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
262 template <typename SourceT = Aws::Map<DocumentSourceType, Aws::String>>
263 void SetSource(SourceT&& value) {
264 m_sourceHasBeenSet = true;
265 m_source = std::forward<SourceT>(value);
266 }
267 template <typename SourceT = Aws::Map<DocumentSourceType, Aws::String>>
269 SetSource(std::forward<SourceT>(value));
270 return *this;
271 }
273 m_sourceHasBeenSet = true;
274 m_source.emplace(key, value);
275 return *this;
276 }
278 private:
279 Aws::String m_id;
280
281 Aws::String m_name;
282
283 Aws::String m_contentType;
284
285 long long m_size{0};
286
287 Aws::String m_signature;
288
290
291 Aws::Utils::DateTime m_createdTimestamp{};
292
293 Aws::Utils::DateTime m_modifiedTimestamp{};
294
295 Aws::Utils::DateTime m_contentCreatedTimestamp{};
296
297 Aws::Utils::DateTime m_contentModifiedTimestamp{};
298
299 Aws::String m_creatorId;
300
302
304 bool m_idHasBeenSet = false;
305 bool m_nameHasBeenSet = false;
306 bool m_contentTypeHasBeenSet = false;
307 bool m_sizeHasBeenSet = false;
308 bool m_signatureHasBeenSet = false;
309 bool m_statusHasBeenSet = false;
310 bool m_createdTimestampHasBeenSet = false;
311 bool m_modifiedTimestampHasBeenSet = false;
312 bool m_contentCreatedTimestampHasBeenSet = false;
313 bool m_contentModifiedTimestampHasBeenSet = false;
314 bool m_creatorIdHasBeenSet = false;
315 bool m_thumbnailHasBeenSet = false;
316 bool m_sourceHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace WorkDocs
321} // namespace Aws
AWS_WORKDOCS_API DocumentVersionMetadata(Aws::Utils::Json::JsonView jsonValue)
DocumentVersionMetadata & WithContentCreatedTimestamp(ContentCreatedTimestampT &&value)
DocumentVersionMetadata & WithThumbnail(ThumbnailT &&value)
const Aws::Map< DocumentSourceType, Aws::String > & GetSource() const
DocumentVersionMetadata & AddSource(DocumentSourceType key, Aws::String value)
DocumentVersionMetadata & WithSource(SourceT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
DocumentVersionMetadata & WithSize(long long value)
const Aws::Utils::DateTime & GetContentModifiedTimestamp() const
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetModifiedTimestamp(ModifiedTimestampT &&value)
DocumentVersionMetadata & AddThumbnail(DocumentThumbnailType key, Aws::String value)
void SetContentCreatedTimestamp(ContentCreatedTimestampT &&value)
DocumentVersionMetadata & WithContentType(ContentTypeT &&value)
AWS_WORKDOCS_API DocumentVersionMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< DocumentThumbnailType, Aws::String > & GetThumbnail() const
DocumentVersionMetadata & WithStatus(DocumentStatusType value)
void SetContentModifiedTimestamp(ContentModifiedTimestampT &&value)
DocumentVersionMetadata & WithContentModifiedTimestamp(ContentModifiedTimestampT &&value)
DocumentVersionMetadata & WithCreatedTimestamp(CreatedTimestampT &&value)
DocumentVersionMetadata & WithModifiedTimestamp(ModifiedTimestampT &&value)
DocumentVersionMetadata & WithCreatorId(CreatorIdT &&value)
const Aws::Utils::DateTime & GetModifiedTimestamp() const
DocumentVersionMetadata & WithSignature(SignatureT &&value)
AWS_WORKDOCS_API DocumentVersionMetadata()=default
DocumentVersionMetadata & WithId(IdT &&value)
DocumentVersionMetadata & WithName(NameT &&value)
const Aws::Utils::DateTime & GetContentCreatedTimestamp() const
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