AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DocumentMetadata.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/DocumentVersionMetadata.h>
12#include <aws/workdocs/model/ResourceStateType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkDocs {
24namespace Model {
25
32 public:
33 AWS_WORKDOCS_API DocumentMetadata() = default;
34 AWS_WORKDOCS_API DocumentMetadata(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 DocumentMetadata& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCreatorId() const { return m_creatorId; }
61 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
62 template <typename CreatorIdT = Aws::String>
63 void SetCreatorId(CreatorIdT&& value) {
64 m_creatorIdHasBeenSet = true;
65 m_creatorId = std::forward<CreatorIdT>(value);
66 }
67 template <typename CreatorIdT = Aws::String>
68 DocumentMetadata& WithCreatorId(CreatorIdT&& value) {
69 SetCreatorId(std::forward<CreatorIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetParentFolderId() const { return m_parentFolderId; }
79 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
80 template <typename ParentFolderIdT = Aws::String>
81 void SetParentFolderId(ParentFolderIdT&& value) {
82 m_parentFolderIdHasBeenSet = true;
83 m_parentFolderId = std::forward<ParentFolderIdT>(value);
84 }
85 template <typename ParentFolderIdT = Aws::String>
86 DocumentMetadata& WithParentFolderId(ParentFolderIdT&& value) {
87 SetParentFolderId(std::forward<ParentFolderIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
97 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
98 template <typename CreatedTimestampT = Aws::Utils::DateTime>
99 void SetCreatedTimestamp(CreatedTimestampT&& value) {
100 m_createdTimestampHasBeenSet = true;
101 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
102 }
103 template <typename CreatedTimestampT = Aws::Utils::DateTime>
104 DocumentMetadata& WithCreatedTimestamp(CreatedTimestampT&& value) {
105 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const { return m_modifiedTimestamp; }
115 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
116 template <typename ModifiedTimestampT = Aws::Utils::DateTime>
117 void SetModifiedTimestamp(ModifiedTimestampT&& value) {
118 m_modifiedTimestampHasBeenSet = true;
119 m_modifiedTimestamp = std::forward<ModifiedTimestampT>(value);
120 }
121 template <typename ModifiedTimestampT = Aws::Utils::DateTime>
122 DocumentMetadata& WithModifiedTimestamp(ModifiedTimestampT&& value) {
123 SetModifiedTimestamp(std::forward<ModifiedTimestampT>(value));
124 return *this;
125 }
127
129
132 inline const DocumentVersionMetadata& GetLatestVersionMetadata() const { return m_latestVersionMetadata; }
133 inline bool LatestVersionMetadataHasBeenSet() const { return m_latestVersionMetadataHasBeenSet; }
134 template <typename LatestVersionMetadataT = DocumentVersionMetadata>
135 void SetLatestVersionMetadata(LatestVersionMetadataT&& value) {
136 m_latestVersionMetadataHasBeenSet = true;
137 m_latestVersionMetadata = std::forward<LatestVersionMetadataT>(value);
138 }
139 template <typename LatestVersionMetadataT = DocumentVersionMetadata>
140 DocumentMetadata& WithLatestVersionMetadata(LatestVersionMetadataT&& value) {
141 SetLatestVersionMetadata(std::forward<LatestVersionMetadataT>(value));
142 return *this;
143 }
145
147
150 inline ResourceStateType GetResourceState() const { return m_resourceState; }
151 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
153 m_resourceStateHasBeenSet = true;
154 m_resourceState = value;
155 }
157 SetResourceState(value);
158 return *this;
159 }
161
163
166 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
167 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
168 template <typename LabelsT = Aws::Vector<Aws::String>>
169 void SetLabels(LabelsT&& value) {
170 m_labelsHasBeenSet = true;
171 m_labels = std::forward<LabelsT>(value);
172 }
173 template <typename LabelsT = Aws::Vector<Aws::String>>
174 DocumentMetadata& WithLabels(LabelsT&& value) {
175 SetLabels(std::forward<LabelsT>(value));
176 return *this;
177 }
178 template <typename LabelsT = Aws::String>
179 DocumentMetadata& AddLabels(LabelsT&& value) {
180 m_labelsHasBeenSet = true;
181 m_labels.emplace_back(std::forward<LabelsT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_id;
187
188 Aws::String m_creatorId;
189
190 Aws::String m_parentFolderId;
191
192 Aws::Utils::DateTime m_createdTimestamp{};
193
194 Aws::Utils::DateTime m_modifiedTimestamp{};
195
196 DocumentVersionMetadata m_latestVersionMetadata;
197
199
201 bool m_idHasBeenSet = false;
202 bool m_creatorIdHasBeenSet = false;
203 bool m_parentFolderIdHasBeenSet = false;
204 bool m_createdTimestampHasBeenSet = false;
205 bool m_modifiedTimestampHasBeenSet = false;
206 bool m_latestVersionMetadataHasBeenSet = false;
207 bool m_resourceStateHasBeenSet = false;
208 bool m_labelsHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace WorkDocs
213} // namespace Aws
const Aws::String & GetParentFolderId() const
void SetParentFolderId(ParentFolderIdT &&value)
DocumentMetadata & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_WORKDOCS_API DocumentMetadata(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetLabels() const
void SetModifiedTimestamp(ModifiedTimestampT &&value)
DocumentMetadata & WithLabels(LabelsT &&value)
AWS_WORKDOCS_API DocumentMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentMetadata & AddLabels(LabelsT &&value)
DocumentMetadata & WithId(IdT &&value)
const Aws::String & GetCreatorId() const
ResourceStateType GetResourceState() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
const Aws::String & GetId() const
DocumentMetadata & WithParentFolderId(ParentFolderIdT &&value)
DocumentMetadata & WithModifiedTimestamp(ModifiedTimestampT &&value)
void SetLatestVersionMetadata(LatestVersionMetadataT &&value)
const Aws::Utils::DateTime & GetModifiedTimestamp() const
const DocumentVersionMetadata & GetLatestVersionMetadata() const
AWS_WORKDOCS_API DocumentMetadata()=default
DocumentMetadata & WithCreatorId(CreatorIdT &&value)
DocumentMetadata & WithLatestVersionMetadata(LatestVersionMetadataT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
DocumentMetadata & WithResourceState(ResourceStateType value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceState(ResourceStateType 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