AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DocumentMetadata.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/DocumentVersionMetadata.h>
11#include <aws/workdocs/model/ResourceStateType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WorkDocs
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_WORKDOCS_API DocumentMetadata() = default;
39 AWS_WORKDOCS_API DocumentMetadata(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 DocumentMetadata& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_creatorIdHasBeenSet = true; m_creatorId = std::forward<CreatorIdT>(value); }
64 template<typename CreatorIdT = Aws::String>
65 DocumentMetadata& WithCreatorId(CreatorIdT&& value) { SetCreatorId(std::forward<CreatorIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetParentFolderId() const { return m_parentFolderId; }
73 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
74 template<typename ParentFolderIdT = Aws::String>
75 void SetParentFolderId(ParentFolderIdT&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::forward<ParentFolderIdT>(value); }
76 template<typename ParentFolderIdT = Aws::String>
77 DocumentMetadata& WithParentFolderId(ParentFolderIdT&& value) { SetParentFolderId(std::forward<ParentFolderIdT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
85 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
86 template<typename CreatedTimestampT = Aws::Utils::DateTime>
87 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
88 template<typename CreatedTimestampT = Aws::Utils::DateTime>
89 DocumentMetadata& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const { return m_modifiedTimestamp; }
97 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
98 template<typename ModifiedTimestampT = Aws::Utils::DateTime>
99 void SetModifiedTimestamp(ModifiedTimestampT&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::forward<ModifiedTimestampT>(value); }
100 template<typename ModifiedTimestampT = Aws::Utils::DateTime>
101 DocumentMetadata& WithModifiedTimestamp(ModifiedTimestampT&& value) { SetModifiedTimestamp(std::forward<ModifiedTimestampT>(value)); return *this;}
103
105
108 inline const DocumentVersionMetadata& GetLatestVersionMetadata() const { return m_latestVersionMetadata; }
109 inline bool LatestVersionMetadataHasBeenSet() const { return m_latestVersionMetadataHasBeenSet; }
110 template<typename LatestVersionMetadataT = DocumentVersionMetadata>
111 void SetLatestVersionMetadata(LatestVersionMetadataT&& value) { m_latestVersionMetadataHasBeenSet = true; m_latestVersionMetadata = std::forward<LatestVersionMetadataT>(value); }
112 template<typename LatestVersionMetadataT = DocumentVersionMetadata>
113 DocumentMetadata& WithLatestVersionMetadata(LatestVersionMetadataT&& value) { SetLatestVersionMetadata(std::forward<LatestVersionMetadataT>(value)); return *this;}
115
117
120 inline ResourceStateType GetResourceState() const { return m_resourceState; }
121 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
122 inline void SetResourceState(ResourceStateType value) { m_resourceStateHasBeenSet = true; m_resourceState = value; }
125
127
130 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
131 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
132 template<typename LabelsT = Aws::Vector<Aws::String>>
133 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
134 template<typename LabelsT = Aws::Vector<Aws::String>>
135 DocumentMetadata& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
136 template<typename LabelsT = Aws::String>
137 DocumentMetadata& AddLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels.emplace_back(std::forward<LabelsT>(value)); return *this; }
139 private:
140
141 Aws::String m_id;
142 bool m_idHasBeenSet = false;
143
144 Aws::String m_creatorId;
145 bool m_creatorIdHasBeenSet = false;
146
147 Aws::String m_parentFolderId;
148 bool m_parentFolderIdHasBeenSet = false;
149
150 Aws::Utils::DateTime m_createdTimestamp{};
151 bool m_createdTimestampHasBeenSet = false;
152
153 Aws::Utils::DateTime m_modifiedTimestamp{};
154 bool m_modifiedTimestampHasBeenSet = false;
155
156 DocumentVersionMetadata m_latestVersionMetadata;
157 bool m_latestVersionMetadataHasBeenSet = false;
158
160 bool m_resourceStateHasBeenSet = false;
161
163 bool m_labelsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace WorkDocs
168} // 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