AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline DocumentMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline DocumentMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline DocumentMetadata& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetCreatorId() const{ return m_creatorId; }
63 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
64 inline void SetCreatorId(const Aws::String& value) { m_creatorIdHasBeenSet = true; m_creatorId = value; }
65 inline void SetCreatorId(Aws::String&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::move(value); }
66 inline void SetCreatorId(const char* value) { m_creatorIdHasBeenSet = true; m_creatorId.assign(value); }
67 inline DocumentMetadata& WithCreatorId(const Aws::String& value) { SetCreatorId(value); return *this;}
68 inline DocumentMetadata& WithCreatorId(Aws::String&& value) { SetCreatorId(std::move(value)); return *this;}
69 inline DocumentMetadata& WithCreatorId(const char* value) { SetCreatorId(value); return *this;}
71
73
76 inline const Aws::String& GetParentFolderId() const{ return m_parentFolderId; }
77 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
78 inline void SetParentFolderId(const Aws::String& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = value; }
79 inline void SetParentFolderId(Aws::String&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::move(value); }
80 inline void SetParentFolderId(const char* value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId.assign(value); }
81 inline DocumentMetadata& WithParentFolderId(const Aws::String& value) { SetParentFolderId(value); return *this;}
82 inline DocumentMetadata& WithParentFolderId(Aws::String&& value) { SetParentFolderId(std::move(value)); return *this;}
83 inline DocumentMetadata& WithParentFolderId(const char* value) { SetParentFolderId(value); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
91 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
92 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
93 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
95 inline DocumentMetadata& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const{ return m_modifiedTimestamp; }
103 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
104 inline void SetModifiedTimestamp(const Aws::Utils::DateTime& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = value; }
105 inline void SetModifiedTimestamp(Aws::Utils::DateTime&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::move(value); }
107 inline DocumentMetadata& WithModifiedTimestamp(Aws::Utils::DateTime&& value) { SetModifiedTimestamp(std::move(value)); return *this;}
109
111
114 inline const DocumentVersionMetadata& GetLatestVersionMetadata() const{ return m_latestVersionMetadata; }
115 inline bool LatestVersionMetadataHasBeenSet() const { return m_latestVersionMetadataHasBeenSet; }
116 inline void SetLatestVersionMetadata(const DocumentVersionMetadata& value) { m_latestVersionMetadataHasBeenSet = true; m_latestVersionMetadata = value; }
117 inline void SetLatestVersionMetadata(DocumentVersionMetadata&& value) { m_latestVersionMetadataHasBeenSet = true; m_latestVersionMetadata = std::move(value); }
121
123
126 inline const ResourceStateType& GetResourceState() const{ return m_resourceState; }
127 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
128 inline void SetResourceState(const ResourceStateType& value) { m_resourceStateHasBeenSet = true; m_resourceState = value; }
129 inline void SetResourceState(ResourceStateType&& value) { m_resourceStateHasBeenSet = true; m_resourceState = std::move(value); }
130 inline DocumentMetadata& WithResourceState(const ResourceStateType& value) { SetResourceState(value); return *this;}
131 inline DocumentMetadata& WithResourceState(ResourceStateType&& value) { SetResourceState(std::move(value)); return *this;}
133
135
138 inline const Aws::Vector<Aws::String>& GetLabels() const{ return m_labels; }
139 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
140 inline void SetLabels(const Aws::Vector<Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
141 inline void SetLabels(Aws::Vector<Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
142 inline DocumentMetadata& WithLabels(const Aws::Vector<Aws::String>& value) { SetLabels(value); return *this;}
143 inline DocumentMetadata& WithLabels(Aws::Vector<Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
144 inline DocumentMetadata& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
145 inline DocumentMetadata& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
146 inline DocumentMetadata& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
148 private:
149
150 Aws::String m_id;
151 bool m_idHasBeenSet = false;
152
153 Aws::String m_creatorId;
154 bool m_creatorIdHasBeenSet = false;
155
156 Aws::String m_parentFolderId;
157 bool m_parentFolderIdHasBeenSet = false;
158
159 Aws::Utils::DateTime m_createdTimestamp;
160 bool m_createdTimestampHasBeenSet = false;
161
162 Aws::Utils::DateTime m_modifiedTimestamp;
163 bool m_modifiedTimestampHasBeenSet = false;
164
165 DocumentVersionMetadata m_latestVersionMetadata;
166 bool m_latestVersionMetadataHasBeenSet = false;
167
168 ResourceStateType m_resourceState;
169 bool m_resourceStateHasBeenSet = false;
170
172 bool m_labelsHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace WorkDocs
177} // namespace Aws
void SetParentFolderId(const char *value)
const Aws::String & GetParentFolderId() const
void SetResourceState(ResourceStateType &&value)
DocumentMetadata & WithLabels(Aws::Vector< Aws::String > &&value)
AWS_WORKDOCS_API DocumentMetadata(Aws::Utils::Json::JsonView jsonValue)
DocumentMetadata & WithLabels(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetLabels() const
void SetParentFolderId(Aws::String &&value)
void SetResourceState(const ResourceStateType &value)
AWS_WORKDOCS_API DocumentMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentMetadata & WithModifiedTimestamp(Aws::Utils::DateTime &&value)
DocumentMetadata & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
DocumentMetadata & WithLatestVersionMetadata(DocumentVersionMetadata &&value)
DocumentMetadata & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
const Aws::String & GetCreatorId() const
void SetCreatorId(Aws::String &&value)
void SetLabels(Aws::Vector< Aws::String > &&value)
void SetLatestVersionMetadata(DocumentVersionMetadata &&value)
DocumentMetadata & WithParentFolderId(const char *value)
const Aws::String & GetId() const
void SetLabels(const Aws::Vector< Aws::String > &value)
DocumentMetadata & WithCreatorId(const Aws::String &value)
const ResourceStateType & GetResourceState() const
DocumentMetadata & WithResourceState(const ResourceStateType &value)
DocumentMetadata & WithModifiedTimestamp(const Aws::Utils::DateTime &value)
DocumentMetadata & WithId(Aws::String &&value)
DocumentMetadata & WithId(const char *value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
DocumentMetadata & WithId(const Aws::String &value)
const Aws::Utils::DateTime & GetModifiedTimestamp() const
DocumentMetadata & WithLatestVersionMetadata(const DocumentVersionMetadata &value)
const DocumentVersionMetadata & GetLatestVersionMetadata() const
DocumentMetadata & AddLabels(const char *value)
DocumentMetadata & WithCreatorId(Aws::String &&value)
DocumentMetadata & WithResourceState(ResourceStateType &&value)
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetParentFolderId(const Aws::String &value)
DocumentMetadata & AddLabels(Aws::String &&value)
void SetId(const Aws::String &value)
void SetCreatorId(const Aws::String &value)
DocumentMetadata & WithParentFolderId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
void SetLatestVersionMetadata(const DocumentVersionMetadata &value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentMetadata & AddLabels(const Aws::String &value)
DocumentMetadata & WithParentFolderId(const Aws::String &value)
void SetModifiedTimestamp(Aws::Utils::DateTime &&value)
void SetModifiedTimestamp(const Aws::Utils::DateTime &value)
DocumentMetadata & WithCreatorId(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