AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 DocumentVersionMetadata& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 DocumentVersionMetadata& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetContentType() const { return m_contentType; }
74 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
75 template<typename ContentTypeT = Aws::String>
76 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
77 template<typename ContentTypeT = Aws::String>
78 DocumentVersionMetadata& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
80
82
85 inline long long GetSize() const { return m_size; }
86 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
87 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
88 inline DocumentVersionMetadata& WithSize(long long value) { SetSize(value); return *this;}
90
92
95 inline const Aws::String& GetSignature() const { return m_signature; }
96 inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
97 template<typename SignatureT = Aws::String>
98 void SetSignature(SignatureT&& value) { m_signatureHasBeenSet = true; m_signature = std::forward<SignatureT>(value); }
99 template<typename SignatureT = Aws::String>
100 DocumentVersionMetadata& WithSignature(SignatureT&& value) { SetSignature(std::forward<SignatureT>(value)); return *this;}
102
104
107 inline DocumentStatusType GetStatus() const { return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 inline void SetStatus(DocumentStatusType value) { m_statusHasBeenSet = true; m_status = value; }
110 inline DocumentVersionMetadata& WithStatus(DocumentStatusType value) { SetStatus(value); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
118 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
119 template<typename CreatedTimestampT = Aws::Utils::DateTime>
120 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
121 template<typename CreatedTimestampT = Aws::Utils::DateTime>
122 DocumentVersionMetadata& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const { return m_modifiedTimestamp; }
130 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
131 template<typename ModifiedTimestampT = Aws::Utils::DateTime>
132 void SetModifiedTimestamp(ModifiedTimestampT&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::forward<ModifiedTimestampT>(value); }
133 template<typename ModifiedTimestampT = Aws::Utils::DateTime>
134 DocumentVersionMetadata& WithModifiedTimestamp(ModifiedTimestampT&& value) { SetModifiedTimestamp(std::forward<ModifiedTimestampT>(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetContentCreatedTimestamp() const { return m_contentCreatedTimestamp; }
142 inline bool ContentCreatedTimestampHasBeenSet() const { return m_contentCreatedTimestampHasBeenSet; }
143 template<typename ContentCreatedTimestampT = Aws::Utils::DateTime>
144 void SetContentCreatedTimestamp(ContentCreatedTimestampT&& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = std::forward<ContentCreatedTimestampT>(value); }
145 template<typename ContentCreatedTimestampT = Aws::Utils::DateTime>
146 DocumentVersionMetadata& WithContentCreatedTimestamp(ContentCreatedTimestampT&& value) { SetContentCreatedTimestamp(std::forward<ContentCreatedTimestampT>(value)); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetContentModifiedTimestamp() const { return m_contentModifiedTimestamp; }
154 inline bool ContentModifiedTimestampHasBeenSet() const { return m_contentModifiedTimestampHasBeenSet; }
155 template<typename ContentModifiedTimestampT = Aws::Utils::DateTime>
156 void SetContentModifiedTimestamp(ContentModifiedTimestampT&& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = std::forward<ContentModifiedTimestampT>(value); }
157 template<typename ContentModifiedTimestampT = Aws::Utils::DateTime>
158 DocumentVersionMetadata& WithContentModifiedTimestamp(ContentModifiedTimestampT&& value) { SetContentModifiedTimestamp(std::forward<ContentModifiedTimestampT>(value)); return *this;}
160
162
165 inline const Aws::String& GetCreatorId() const { return m_creatorId; }
166 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
167 template<typename CreatorIdT = Aws::String>
168 void SetCreatorId(CreatorIdT&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::forward<CreatorIdT>(value); }
169 template<typename CreatorIdT = Aws::String>
170 DocumentVersionMetadata& WithCreatorId(CreatorIdT&& value) { SetCreatorId(std::forward<CreatorIdT>(value)); return *this;}
172
174
177 inline const Aws::Map<DocumentThumbnailType, Aws::String>& GetThumbnail() const { return m_thumbnail; }
178 inline bool ThumbnailHasBeenSet() const { return m_thumbnailHasBeenSet; }
179 template<typename ThumbnailT = Aws::Map<DocumentThumbnailType, Aws::String>>
180 void SetThumbnail(ThumbnailT&& value) { m_thumbnailHasBeenSet = true; m_thumbnail = std::forward<ThumbnailT>(value); }
181 template<typename ThumbnailT = Aws::Map<DocumentThumbnailType, Aws::String>>
182 DocumentVersionMetadata& WithThumbnail(ThumbnailT&& value) { SetThumbnail(std::forward<ThumbnailT>(value)); return *this;}
184 m_thumbnailHasBeenSet = true; m_thumbnail.emplace(key, value); return *this;
185 }
187
189
192 inline const Aws::Map<DocumentSourceType, Aws::String>& GetSource() const { return m_source; }
193 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
194 template<typename SourceT = Aws::Map<DocumentSourceType, Aws::String>>
195 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
196 template<typename SourceT = Aws::Map<DocumentSourceType, Aws::String>>
197 DocumentVersionMetadata& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
199 m_sourceHasBeenSet = true; m_source.emplace(key, value); return *this;
200 }
202 private:
203
204 Aws::String m_id;
205 bool m_idHasBeenSet = false;
206
207 Aws::String m_name;
208 bool m_nameHasBeenSet = false;
209
210 Aws::String m_contentType;
211 bool m_contentTypeHasBeenSet = false;
212
213 long long m_size{0};
214 bool m_sizeHasBeenSet = false;
215
216 Aws::String m_signature;
217 bool m_signatureHasBeenSet = false;
218
220 bool m_statusHasBeenSet = false;
221
222 Aws::Utils::DateTime m_createdTimestamp{};
223 bool m_createdTimestampHasBeenSet = false;
224
225 Aws::Utils::DateTime m_modifiedTimestamp{};
226 bool m_modifiedTimestampHasBeenSet = false;
227
228 Aws::Utils::DateTime m_contentCreatedTimestamp{};
229 bool m_contentCreatedTimestampHasBeenSet = false;
230
231 Aws::Utils::DateTime m_contentModifiedTimestamp{};
232 bool m_contentModifiedTimestampHasBeenSet = false;
233
234 Aws::String m_creatorId;
235 bool m_creatorIdHasBeenSet = false;
236
238 bool m_thumbnailHasBeenSet = false;
239
241 bool m_sourceHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace WorkDocs
246} // 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