AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 FolderMetadata& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 FolderMetadata& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetCreatorId() const { return m_creatorId; }
72 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
73 template<typename CreatorIdT = Aws::String>
74 void SetCreatorId(CreatorIdT&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::forward<CreatorIdT>(value); }
75 template<typename CreatorIdT = Aws::String>
76 FolderMetadata& WithCreatorId(CreatorIdT&& value) { SetCreatorId(std::forward<CreatorIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetParentFolderId() const { return m_parentFolderId; }
84 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
85 template<typename ParentFolderIdT = Aws::String>
86 void SetParentFolderId(ParentFolderIdT&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::forward<ParentFolderIdT>(value); }
87 template<typename ParentFolderIdT = Aws::String>
88 FolderMetadata& WithParentFolderId(ParentFolderIdT&& value) { SetParentFolderId(std::forward<ParentFolderIdT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
96 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
97 template<typename CreatedTimestampT = Aws::Utils::DateTime>
98 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
99 template<typename CreatedTimestampT = Aws::Utils::DateTime>
100 FolderMetadata& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const { return m_modifiedTimestamp; }
108 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
109 template<typename ModifiedTimestampT = Aws::Utils::DateTime>
110 void SetModifiedTimestamp(ModifiedTimestampT&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::forward<ModifiedTimestampT>(value); }
111 template<typename ModifiedTimestampT = Aws::Utils::DateTime>
112 FolderMetadata& WithModifiedTimestamp(ModifiedTimestampT&& value) { SetModifiedTimestamp(std::forward<ModifiedTimestampT>(value)); return *this;}
114
116
119 inline ResourceStateType GetResourceState() const { return m_resourceState; }
120 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
121 inline void SetResourceState(ResourceStateType value) { m_resourceStateHasBeenSet = true; m_resourceState = value; }
124
126
130 inline const Aws::String& GetSignature() const { return m_signature; }
131 inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
132 template<typename SignatureT = Aws::String>
133 void SetSignature(SignatureT&& value) { m_signatureHasBeenSet = true; m_signature = std::forward<SignatureT>(value); }
134 template<typename SignatureT = Aws::String>
135 FolderMetadata& WithSignature(SignatureT&& value) { SetSignature(std::forward<SignatureT>(value)); return *this;}
137
139
142 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
143 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
144 template<typename LabelsT = Aws::Vector<Aws::String>>
145 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
146 template<typename LabelsT = Aws::Vector<Aws::String>>
147 FolderMetadata& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
148 template<typename LabelsT = Aws::String>
149 FolderMetadata& AddLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels.emplace_back(std::forward<LabelsT>(value)); return *this; }
151
153
156 inline long long GetSize() const { return m_size; }
157 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
158 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
159 inline FolderMetadata& WithSize(long long value) { SetSize(value); return *this;}
161
163
166 inline long long GetLatestVersionSize() const { return m_latestVersionSize; }
167 inline bool LatestVersionSizeHasBeenSet() const { return m_latestVersionSizeHasBeenSet; }
168 inline void SetLatestVersionSize(long long value) { m_latestVersionSizeHasBeenSet = true; m_latestVersionSize = value; }
169 inline FolderMetadata& WithLatestVersionSize(long long value) { SetLatestVersionSize(value); return *this;}
171 private:
172
173 Aws::String m_id;
174 bool m_idHasBeenSet = false;
175
176 Aws::String m_name;
177 bool m_nameHasBeenSet = false;
178
179 Aws::String m_creatorId;
180 bool m_creatorIdHasBeenSet = false;
181
182 Aws::String m_parentFolderId;
183 bool m_parentFolderIdHasBeenSet = false;
184
185 Aws::Utils::DateTime m_createdTimestamp{};
186 bool m_createdTimestampHasBeenSet = false;
187
188 Aws::Utils::DateTime m_modifiedTimestamp{};
189 bool m_modifiedTimestampHasBeenSet = false;
190
192 bool m_resourceStateHasBeenSet = false;
193
194 Aws::String m_signature;
195 bool m_signatureHasBeenSet = false;
196
198 bool m_labelsHasBeenSet = false;
199
200 long long m_size{0};
201 bool m_sizeHasBeenSet = false;
202
203 long long m_latestVersionSize{0};
204 bool m_latestVersionSizeHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace WorkDocs
209} // 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