AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DocumentVersionMetadata.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workdocs/model/DocumentStatusType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/workdocs/model/DocumentThumbnailType.h>
13#include <aws/workdocs/model/DocumentSourceType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace WorkDocs
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_WORKDOCS_API DocumentVersionMetadata();
42 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline DocumentVersionMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline DocumentVersionMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline DocumentVersionMetadata& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline DocumentVersionMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline DocumentVersionMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline DocumentVersionMetadata& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::String& GetContentType() const{ return m_contentType; }
78 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
79 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
80 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
81 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
82 inline DocumentVersionMetadata& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
83 inline DocumentVersionMetadata& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
84 inline DocumentVersionMetadata& WithContentType(const char* value) { SetContentType(value); return *this;}
86
88
91 inline long long GetSize() const{ return m_size; }
92 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
93 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
94 inline DocumentVersionMetadata& WithSize(long long value) { SetSize(value); return *this;}
96
98
101 inline const Aws::String& GetSignature() const{ return m_signature; }
102 inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
103 inline void SetSignature(const Aws::String& value) { m_signatureHasBeenSet = true; m_signature = value; }
104 inline void SetSignature(Aws::String&& value) { m_signatureHasBeenSet = true; m_signature = std::move(value); }
105 inline void SetSignature(const char* value) { m_signatureHasBeenSet = true; m_signature.assign(value); }
106 inline DocumentVersionMetadata& WithSignature(const Aws::String& value) { SetSignature(value); return *this;}
107 inline DocumentVersionMetadata& WithSignature(Aws::String&& value) { SetSignature(std::move(value)); return *this;}
108 inline DocumentVersionMetadata& WithSignature(const char* value) { SetSignature(value); return *this;}
110
112
115 inline const DocumentStatusType& GetStatus() const{ return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(const DocumentStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
118 inline void SetStatus(DocumentStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
119 inline DocumentVersionMetadata& WithStatus(const DocumentStatusType& value) { SetStatus(value); return *this;}
120 inline DocumentVersionMetadata& WithStatus(DocumentStatusType&& value) { SetStatus(std::move(value)); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
128 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
129 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
130 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
134
136
139 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const{ return m_modifiedTimestamp; }
140 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
141 inline void SetModifiedTimestamp(const Aws::Utils::DateTime& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = value; }
142 inline void SetModifiedTimestamp(Aws::Utils::DateTime&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::move(value); }
146
148
151 inline const Aws::Utils::DateTime& GetContentCreatedTimestamp() const{ return m_contentCreatedTimestamp; }
152 inline bool ContentCreatedTimestampHasBeenSet() const { return m_contentCreatedTimestampHasBeenSet; }
153 inline void SetContentCreatedTimestamp(const Aws::Utils::DateTime& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = value; }
154 inline void SetContentCreatedTimestamp(Aws::Utils::DateTime&& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = std::move(value); }
158
160
163 inline const Aws::Utils::DateTime& GetContentModifiedTimestamp() const{ return m_contentModifiedTimestamp; }
164 inline bool ContentModifiedTimestampHasBeenSet() const { return m_contentModifiedTimestampHasBeenSet; }
165 inline void SetContentModifiedTimestamp(const Aws::Utils::DateTime& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = value; }
166 inline void SetContentModifiedTimestamp(Aws::Utils::DateTime&& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = std::move(value); }
170
172
175 inline const Aws::String& GetCreatorId() const{ return m_creatorId; }
176 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
177 inline void SetCreatorId(const Aws::String& value) { m_creatorIdHasBeenSet = true; m_creatorId = value; }
178 inline void SetCreatorId(Aws::String&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::move(value); }
179 inline void SetCreatorId(const char* value) { m_creatorIdHasBeenSet = true; m_creatorId.assign(value); }
180 inline DocumentVersionMetadata& WithCreatorId(const Aws::String& value) { SetCreatorId(value); return *this;}
181 inline DocumentVersionMetadata& WithCreatorId(Aws::String&& value) { SetCreatorId(std::move(value)); return *this;}
182 inline DocumentVersionMetadata& WithCreatorId(const char* value) { SetCreatorId(value); return *this;}
184
186
189 inline const Aws::Map<DocumentThumbnailType, Aws::String>& GetThumbnail() const{ return m_thumbnail; }
190 inline bool ThumbnailHasBeenSet() const { return m_thumbnailHasBeenSet; }
191 inline void SetThumbnail(const Aws::Map<DocumentThumbnailType, Aws::String>& value) { m_thumbnailHasBeenSet = true; m_thumbnail = value; }
192 inline void SetThumbnail(Aws::Map<DocumentThumbnailType, Aws::String>&& value) { m_thumbnailHasBeenSet = true; m_thumbnail = std::move(value); }
195 inline DocumentVersionMetadata& AddThumbnail(const DocumentThumbnailType& key, const Aws::String& value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(key, value); return *this; }
196 inline DocumentVersionMetadata& AddThumbnail(DocumentThumbnailType&& key, const Aws::String& value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(std::move(key), value); return *this; }
197 inline DocumentVersionMetadata& AddThumbnail(const DocumentThumbnailType& key, Aws::String&& value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(key, std::move(value)); return *this; }
198 inline DocumentVersionMetadata& AddThumbnail(DocumentThumbnailType&& key, Aws::String&& value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(std::move(key), std::move(value)); return *this; }
199 inline DocumentVersionMetadata& AddThumbnail(DocumentThumbnailType&& key, const char* value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(std::move(key), value); return *this; }
200 inline DocumentVersionMetadata& AddThumbnail(const DocumentThumbnailType& key, const char* value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(key, value); return *this; }
202
204
207 inline const Aws::Map<DocumentSourceType, Aws::String>& GetSource() const{ return m_source; }
208 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
209 inline void SetSource(const Aws::Map<DocumentSourceType, Aws::String>& value) { m_sourceHasBeenSet = true; m_source = value; }
210 inline void SetSource(Aws::Map<DocumentSourceType, Aws::String>&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
213 inline DocumentVersionMetadata& AddSource(const DocumentSourceType& key, const Aws::String& value) { m_sourceHasBeenSet = true; m_source.emplace(key, value); return *this; }
214 inline DocumentVersionMetadata& AddSource(DocumentSourceType&& key, const Aws::String& value) { m_sourceHasBeenSet = true; m_source.emplace(std::move(key), value); return *this; }
215 inline DocumentVersionMetadata& AddSource(const DocumentSourceType& key, Aws::String&& value) { m_sourceHasBeenSet = true; m_source.emplace(key, std::move(value)); return *this; }
216 inline DocumentVersionMetadata& AddSource(DocumentSourceType&& key, Aws::String&& value) { m_sourceHasBeenSet = true; m_source.emplace(std::move(key), std::move(value)); return *this; }
217 inline DocumentVersionMetadata& AddSource(DocumentSourceType&& key, const char* value) { m_sourceHasBeenSet = true; m_source.emplace(std::move(key), value); return *this; }
218 inline DocumentVersionMetadata& AddSource(const DocumentSourceType& key, const char* value) { m_sourceHasBeenSet = true; m_source.emplace(key, value); return *this; }
220 private:
221
222 Aws::String m_id;
223 bool m_idHasBeenSet = false;
224
225 Aws::String m_name;
226 bool m_nameHasBeenSet = false;
227
228 Aws::String m_contentType;
229 bool m_contentTypeHasBeenSet = false;
230
231 long long m_size;
232 bool m_sizeHasBeenSet = false;
233
234 Aws::String m_signature;
235 bool m_signatureHasBeenSet = false;
236
237 DocumentStatusType m_status;
238 bool m_statusHasBeenSet = false;
239
240 Aws::Utils::DateTime m_createdTimestamp;
241 bool m_createdTimestampHasBeenSet = false;
242
243 Aws::Utils::DateTime m_modifiedTimestamp;
244 bool m_modifiedTimestampHasBeenSet = false;
245
246 Aws::Utils::DateTime m_contentCreatedTimestamp;
247 bool m_contentCreatedTimestampHasBeenSet = false;
248
249 Aws::Utils::DateTime m_contentModifiedTimestamp;
250 bool m_contentModifiedTimestampHasBeenSet = false;
251
252 Aws::String m_creatorId;
253 bool m_creatorIdHasBeenSet = false;
254
256 bool m_thumbnailHasBeenSet = false;
257
259 bool m_sourceHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace WorkDocs
264} // namespace Aws
DocumentVersionMetadata & AddThumbnail(const DocumentThumbnailType &key, const char *value)
AWS_WORKDOCS_API DocumentVersionMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetModifiedTimestamp(Aws::Utils::DateTime &&value)
DocumentVersionMetadata & WithId(const Aws::String &value)
DocumentVersionMetadata & WithName(const char *value)
DocumentVersionMetadata & WithContentModifiedTimestamp(Aws::Utils::DateTime &&value)
DocumentVersionMetadata & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
DocumentVersionMetadata & WithContentCreatedTimestamp(Aws::Utils::DateTime &&value)
DocumentVersionMetadata & AddSource(DocumentSourceType &&key, const Aws::String &value)
void SetStatus(const DocumentStatusType &value)
DocumentVersionMetadata & WithStatus(DocumentStatusType &&value)
DocumentVersionMetadata & WithContentType(Aws::String &&value)
void SetContentModifiedTimestamp(const Aws::Utils::DateTime &value)
DocumentVersionMetadata & AddThumbnail(DocumentThumbnailType &&key, const char *value)
void SetThumbnail(Aws::Map< DocumentThumbnailType, Aws::String > &&value)
const Aws::Map< DocumentSourceType, Aws::String > & GetSource() const
DocumentVersionMetadata & WithThumbnail(Aws::Map< DocumentThumbnailType, Aws::String > &&value)
void SetContentModifiedTimestamp(Aws::Utils::DateTime &&value)
DocumentVersionMetadata & AddSource(const DocumentSourceType &key, Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
DocumentVersionMetadata & WithSize(long long value)
DocumentVersionMetadata & AddThumbnail(const DocumentThumbnailType &key, const Aws::String &value)
DocumentVersionMetadata & AddSource(const DocumentSourceType &key, const Aws::String &value)
DocumentVersionMetadata & WithContentType(const char *value)
void SetContentCreatedTimestamp(const Aws::Utils::DateTime &value)
DocumentVersionMetadata & WithContentModifiedTimestamp(const Aws::Utils::DateTime &value)
void SetThumbnail(const Aws::Map< DocumentThumbnailType, Aws::String > &value)
void SetSource(const Aws::Map< DocumentSourceType, Aws::String > &value)
DocumentVersionMetadata & AddThumbnail(const DocumentThumbnailType &key, Aws::String &&value)
const Aws::Utils::DateTime & GetContentModifiedTimestamp() const
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentVersionMetadata & WithSignature(const Aws::String &value)
DocumentVersionMetadata & WithCreatorId(const Aws::String &value)
DocumentVersionMetadata & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
DocumentVersionMetadata & WithSource(Aws::Map< DocumentSourceType, Aws::String > &&value)
DocumentVersionMetadata & WithId(const char *value)
DocumentVersionMetadata & WithSignature(const char *value)
AWS_WORKDOCS_API DocumentVersionMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentVersionMetadata & WithSignature(Aws::String &&value)
void SetModifiedTimestamp(const Aws::Utils::DateTime &value)
const Aws::Map< DocumentThumbnailType, Aws::String > & GetThumbnail() const
void SetSource(Aws::Map< DocumentSourceType, Aws::String > &&value)
DocumentVersionMetadata & WithModifiedTimestamp(Aws::Utils::DateTime &&value)
DocumentVersionMetadata & AddThumbnail(DocumentThumbnailType &&key, const Aws::String &value)
DocumentVersionMetadata & WithName(const Aws::String &value)
DocumentVersionMetadata & AddSource(DocumentSourceType &&key, const char *value)
void SetContentCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetModifiedTimestamp() const
DocumentVersionMetadata & WithName(Aws::String &&value)
DocumentVersionMetadata & AddThumbnail(DocumentThumbnailType &&key, Aws::String &&value)
DocumentVersionMetadata & WithContentType(const Aws::String &value)
DocumentVersionMetadata & AddSource(const DocumentSourceType &key, const char *value)
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
DocumentVersionMetadata & WithId(Aws::String &&value)
DocumentVersionMetadata & WithThumbnail(const Aws::Map< DocumentThumbnailType, Aws::String > &value)
DocumentVersionMetadata & AddSource(DocumentSourceType &&key, Aws::String &&value)
DocumentVersionMetadata & WithStatus(const DocumentStatusType &value)
DocumentVersionMetadata & WithContentCreatedTimestamp(const Aws::Utils::DateTime &value)
DocumentVersionMetadata & WithSource(const Aws::Map< DocumentSourceType, Aws::String > &value)
DocumentVersionMetadata & WithCreatorId(Aws::String &&value)
const Aws::Utils::DateTime & GetContentCreatedTimestamp() const
DocumentVersionMetadata & WithCreatorId(const char *value)
DocumentVersionMetadata & WithModifiedTimestamp(const Aws::Utils::DateTime &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