AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
FolderMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workdocs/WorkDocs_EXPORTS.h>
11#include <aws/workdocs/model/ResourceStateType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkDocs {
23namespace Model {
24
31 public:
32 AWS_WORKDOCS_API FolderMetadata() = default;
33 AWS_WORKDOCS_API FolderMetadata(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 FolderMetadata& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 FolderMetadata& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetCreatorId() const { return m_creatorId; }
78 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
79 template <typename CreatorIdT = Aws::String>
80 void SetCreatorId(CreatorIdT&& value) {
81 m_creatorIdHasBeenSet = true;
82 m_creatorId = std::forward<CreatorIdT>(value);
83 }
84 template <typename CreatorIdT = Aws::String>
85 FolderMetadata& WithCreatorId(CreatorIdT&& value) {
86 SetCreatorId(std::forward<CreatorIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetParentFolderId() const { return m_parentFolderId; }
96 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
97 template <typename ParentFolderIdT = Aws::String>
98 void SetParentFolderId(ParentFolderIdT&& value) {
99 m_parentFolderIdHasBeenSet = true;
100 m_parentFolderId = std::forward<ParentFolderIdT>(value);
101 }
102 template <typename ParentFolderIdT = Aws::String>
103 FolderMetadata& WithParentFolderId(ParentFolderIdT&& value) {
104 SetParentFolderId(std::forward<ParentFolderIdT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
114 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
115 template <typename CreatedTimestampT = Aws::Utils::DateTime>
116 void SetCreatedTimestamp(CreatedTimestampT&& value) {
117 m_createdTimestampHasBeenSet = true;
118 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
119 }
120 template <typename CreatedTimestampT = Aws::Utils::DateTime>
121 FolderMetadata& WithCreatedTimestamp(CreatedTimestampT&& value) {
122 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const { return m_modifiedTimestamp; }
132 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
133 template <typename ModifiedTimestampT = Aws::Utils::DateTime>
134 void SetModifiedTimestamp(ModifiedTimestampT&& value) {
135 m_modifiedTimestampHasBeenSet = true;
136 m_modifiedTimestamp = std::forward<ModifiedTimestampT>(value);
137 }
138 template <typename ModifiedTimestampT = Aws::Utils::DateTime>
139 FolderMetadata& WithModifiedTimestamp(ModifiedTimestampT&& value) {
140 SetModifiedTimestamp(std::forward<ModifiedTimestampT>(value));
141 return *this;
142 }
144
146
149 inline ResourceStateType GetResourceState() const { return m_resourceState; }
150 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
152 m_resourceStateHasBeenSet = true;
153 m_resourceState = value;
154 }
156 SetResourceState(value);
157 return *this;
158 }
160
162
166 inline const Aws::String& GetSignature() const { return m_signature; }
167 inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
168 template <typename SignatureT = Aws::String>
169 void SetSignature(SignatureT&& value) {
170 m_signatureHasBeenSet = true;
171 m_signature = std::forward<SignatureT>(value);
172 }
173 template <typename SignatureT = Aws::String>
174 FolderMetadata& WithSignature(SignatureT&& value) {
175 SetSignature(std::forward<SignatureT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
185 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
186 template <typename LabelsT = Aws::Vector<Aws::String>>
187 void SetLabels(LabelsT&& value) {
188 m_labelsHasBeenSet = true;
189 m_labels = std::forward<LabelsT>(value);
190 }
191 template <typename LabelsT = Aws::Vector<Aws::String>>
192 FolderMetadata& WithLabels(LabelsT&& value) {
193 SetLabels(std::forward<LabelsT>(value));
194 return *this;
195 }
196 template <typename LabelsT = Aws::String>
197 FolderMetadata& AddLabels(LabelsT&& value) {
198 m_labelsHasBeenSet = true;
199 m_labels.emplace_back(std::forward<LabelsT>(value));
200 return *this;
201 }
203
205
208 inline long long GetSize() const { return m_size; }
209 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
210 inline void SetSize(long long value) {
211 m_sizeHasBeenSet = true;
212 m_size = value;
213 }
214 inline FolderMetadata& WithSize(long long value) {
215 SetSize(value);
216 return *this;
217 }
219
221
224 inline long long GetLatestVersionSize() const { return m_latestVersionSize; }
225 inline bool LatestVersionSizeHasBeenSet() const { return m_latestVersionSizeHasBeenSet; }
226 inline void SetLatestVersionSize(long long value) {
227 m_latestVersionSizeHasBeenSet = true;
228 m_latestVersionSize = value;
229 }
230 inline FolderMetadata& WithLatestVersionSize(long long value) {
232 return *this;
233 }
235 private:
236 Aws::String m_id;
237
238 Aws::String m_name;
239
240 Aws::String m_creatorId;
241
242 Aws::String m_parentFolderId;
243
244 Aws::Utils::DateTime m_createdTimestamp{};
245
246 Aws::Utils::DateTime m_modifiedTimestamp{};
247
249
250 Aws::String m_signature;
251
253
254 long long m_size{0};
255
256 long long m_latestVersionSize{0};
257 bool m_idHasBeenSet = false;
258 bool m_nameHasBeenSet = false;
259 bool m_creatorIdHasBeenSet = false;
260 bool m_parentFolderIdHasBeenSet = false;
261 bool m_createdTimestampHasBeenSet = false;
262 bool m_modifiedTimestampHasBeenSet = false;
263 bool m_resourceStateHasBeenSet = false;
264 bool m_signatureHasBeenSet = false;
265 bool m_labelsHasBeenSet = false;
266 bool m_sizeHasBeenSet = false;
267 bool m_latestVersionSizeHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace WorkDocs
272} // namespace Aws
FolderMetadata & WithSignature(SignatureT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
FolderMetadata & WithModifiedTimestamp(ModifiedTimestampT &&value)
AWS_WORKDOCS_API FolderMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
FolderMetadata & WithName(NameT &&value)
void SetSignature(SignatureT &&value)
FolderMetadata & WithLabels(LabelsT &&value)
void SetModifiedTimestamp(ModifiedTimestampT &&value)
ResourceStateType GetResourceState() const
const Aws::String & GetParentFolderId() const
AWS_WORKDOCS_API FolderMetadata()=default
FolderMetadata & WithLatestVersionSize(long long value)
const Aws::String & GetId() const
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
void SetResourceState(ResourceStateType value)
FolderMetadata & WithCreatedTimestamp(CreatedTimestampT &&value)
const Aws::Vector< Aws::String > & GetLabels() const
const Aws::Utils::DateTime & GetModifiedTimestamp() const
FolderMetadata & WithCreatorId(CreatorIdT &&value)
void SetParentFolderId(ParentFolderIdT &&value)
FolderMetadata & WithSize(long long value)
FolderMetadata & AddLabels(LabelsT &&value)
const Aws::String & GetName() const
FolderMetadata & WithParentFolderId(ParentFolderIdT &&value)
void SetCreatorId(CreatorIdT &&value)
const Aws::String & GetCreatorId() const
void SetLatestVersionSize(long long value)
const Aws::String & GetSignature() const
FolderMetadata & WithResourceState(ResourceStateType value)
AWS_WORKDOCS_API FolderMetadata(Aws::Utils::Json::JsonView jsonValue)
FolderMetadata & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue