AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FolderMetadata.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/workdocs/model/ResourceStateType.h>
11#include <aws/core/utils/memory/stl/AWSVector.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 WorkDocs
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_WORKDOCS_API FolderMetadata();
38 AWS_WORKDOCS_API FolderMetadata(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline FolderMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline FolderMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline FolderMetadata& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline FolderMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline FolderMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline FolderMetadata& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetCreatorId() const{ return m_creatorId; }
76 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
77 inline void SetCreatorId(const Aws::String& value) { m_creatorIdHasBeenSet = true; m_creatorId = value; }
78 inline void SetCreatorId(Aws::String&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::move(value); }
79 inline void SetCreatorId(const char* value) { m_creatorIdHasBeenSet = true; m_creatorId.assign(value); }
80 inline FolderMetadata& WithCreatorId(const Aws::String& value) { SetCreatorId(value); return *this;}
81 inline FolderMetadata& WithCreatorId(Aws::String&& value) { SetCreatorId(std::move(value)); return *this;}
82 inline FolderMetadata& WithCreatorId(const char* value) { SetCreatorId(value); return *this;}
84
86
89 inline const Aws::String& GetParentFolderId() const{ return m_parentFolderId; }
90 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
91 inline void SetParentFolderId(const Aws::String& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = value; }
92 inline void SetParentFolderId(Aws::String&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::move(value); }
93 inline void SetParentFolderId(const char* value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId.assign(value); }
94 inline FolderMetadata& WithParentFolderId(const Aws::String& value) { SetParentFolderId(value); return *this;}
95 inline FolderMetadata& WithParentFolderId(Aws::String&& value) { SetParentFolderId(std::move(value)); return *this;}
96 inline FolderMetadata& WithParentFolderId(const char* value) { SetParentFolderId(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
104 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
105 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
106 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
108 inline FolderMetadata& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const{ return m_modifiedTimestamp; }
116 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
117 inline void SetModifiedTimestamp(const Aws::Utils::DateTime& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = value; }
118 inline void SetModifiedTimestamp(Aws::Utils::DateTime&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::move(value); }
120 inline FolderMetadata& WithModifiedTimestamp(Aws::Utils::DateTime&& value) { SetModifiedTimestamp(std::move(value)); return *this;}
122
124
127 inline const ResourceStateType& GetResourceState() const{ return m_resourceState; }
128 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
129 inline void SetResourceState(const ResourceStateType& value) { m_resourceStateHasBeenSet = true; m_resourceState = value; }
130 inline void SetResourceState(ResourceStateType&& value) { m_resourceStateHasBeenSet = true; m_resourceState = std::move(value); }
131 inline FolderMetadata& WithResourceState(const ResourceStateType& value) { SetResourceState(value); return *this;}
132 inline FolderMetadata& WithResourceState(ResourceStateType&& value) { SetResourceState(std::move(value)); return *this;}
134
136
140 inline const Aws::String& GetSignature() const{ return m_signature; }
141 inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
142 inline void SetSignature(const Aws::String& value) { m_signatureHasBeenSet = true; m_signature = value; }
143 inline void SetSignature(Aws::String&& value) { m_signatureHasBeenSet = true; m_signature = std::move(value); }
144 inline void SetSignature(const char* value) { m_signatureHasBeenSet = true; m_signature.assign(value); }
145 inline FolderMetadata& WithSignature(const Aws::String& value) { SetSignature(value); return *this;}
146 inline FolderMetadata& WithSignature(Aws::String&& value) { SetSignature(std::move(value)); return *this;}
147 inline FolderMetadata& WithSignature(const char* value) { SetSignature(value); return *this;}
149
151
154 inline const Aws::Vector<Aws::String>& GetLabels() const{ return m_labels; }
155 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
156 inline void SetLabels(const Aws::Vector<Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
157 inline void SetLabels(Aws::Vector<Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
158 inline FolderMetadata& WithLabels(const Aws::Vector<Aws::String>& value) { SetLabels(value); return *this;}
159 inline FolderMetadata& WithLabels(Aws::Vector<Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
160 inline FolderMetadata& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
161 inline FolderMetadata& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
162 inline FolderMetadata& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
164
166
169 inline long long GetSize() const{ return m_size; }
170 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
171 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
172 inline FolderMetadata& WithSize(long long value) { SetSize(value); return *this;}
174
176
179 inline long long GetLatestVersionSize() const{ return m_latestVersionSize; }
180 inline bool LatestVersionSizeHasBeenSet() const { return m_latestVersionSizeHasBeenSet; }
181 inline void SetLatestVersionSize(long long value) { m_latestVersionSizeHasBeenSet = true; m_latestVersionSize = value; }
182 inline FolderMetadata& WithLatestVersionSize(long long value) { SetLatestVersionSize(value); return *this;}
184 private:
185
186 Aws::String m_id;
187 bool m_idHasBeenSet = false;
188
189 Aws::String m_name;
190 bool m_nameHasBeenSet = false;
191
192 Aws::String m_creatorId;
193 bool m_creatorIdHasBeenSet = false;
194
195 Aws::String m_parentFolderId;
196 bool m_parentFolderIdHasBeenSet = false;
197
198 Aws::Utils::DateTime m_createdTimestamp;
199 bool m_createdTimestampHasBeenSet = false;
200
201 Aws::Utils::DateTime m_modifiedTimestamp;
202 bool m_modifiedTimestampHasBeenSet = false;
203
204 ResourceStateType m_resourceState;
205 bool m_resourceStateHasBeenSet = false;
206
207 Aws::String m_signature;
208 bool m_signatureHasBeenSet = false;
209
211 bool m_labelsHasBeenSet = false;
212
213 long long m_size;
214 bool m_sizeHasBeenSet = false;
215
216 long long m_latestVersionSize;
217 bool m_latestVersionSizeHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace WorkDocs
222} // namespace Aws
FolderMetadata & AddLabels(const char *value)
void SetName(Aws::String &&value)
FolderMetadata & WithId(Aws::String &&value)
FolderMetadata & AddLabels(Aws::String &&value)
FolderMetadata & WithCreatorId(const char *value)
FolderMetadata & AddLabels(const Aws::String &value)
FolderMetadata & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
FolderMetadata & WithSignature(const char *value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
FolderMetadata & WithParentFolderId(Aws::String &&value)
FolderMetadata & WithCreatorId(Aws::String &&value)
FolderMetadata & WithLabels(const Aws::Vector< Aws::String > &value)
void SetParentFolderId(Aws::String &&value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
void SetName(const Aws::String &value)
AWS_WORKDOCS_API FolderMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
FolderMetadata & WithLabels(Aws::Vector< Aws::String > &&value)
void SetSignature(const char *value)
FolderMetadata & WithSignature(Aws::String &&value)
const Aws::String & GetParentFolderId() const
void SetParentFolderId(const char *value)
void SetSignature(const Aws::String &value)
FolderMetadata & WithModifiedTimestamp(const Aws::Utils::DateTime &value)
FolderMetadata & WithCreatorId(const Aws::String &value)
FolderMetadata & WithId(const char *value)
FolderMetadata & WithName(const char *value)
FolderMetadata & WithId(const Aws::String &value)
FolderMetadata & WithResourceState(ResourceStateType &&value)
void SetResourceState(ResourceStateType &&value)
FolderMetadata & WithLatestVersionSize(long long value)
const Aws::String & GetId() const
FolderMetadata & WithParentFolderId(const Aws::String &value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
FolderMetadata & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetModifiedTimestamp(Aws::Utils::DateTime &&value)
void SetLabels(Aws::Vector< Aws::String > &&value)
void SetParentFolderId(const Aws::String &value)
void SetId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetLabels() const
FolderMetadata & WithModifiedTimestamp(Aws::Utils::DateTime &&value)
FolderMetadata & WithSignature(const Aws::String &value)
void SetId(const Aws::String &value)
const Aws::Utils::DateTime & GetModifiedTimestamp() const
void SetLabels(const Aws::Vector< Aws::String > &value)
void SetCreatorId(const Aws::String &value)
FolderMetadata & WithSize(long long value)
void SetCreatorId(const char *value)
const Aws::String & GetName() const
void SetResourceState(const ResourceStateType &value)
void SetModifiedTimestamp(const Aws::Utils::DateTime &value)
FolderMetadata & WithResourceState(const ResourceStateType &value)
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
FolderMetadata & WithName(const Aws::String &value)
void SetSignature(Aws::String &&value)
const Aws::String & GetCreatorId() const
void SetLatestVersionSize(long long value)
const Aws::String & GetSignature() const
void SetCreatorId(Aws::String &&value)
const ResourceStateType & GetResourceState() const
AWS_WORKDOCS_API FolderMetadata(Aws::Utils::Json::JsonView jsonValue)
FolderMetadata & WithName(Aws::String &&value)
FolderMetadata & WithParentFolderId(const char *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