AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceMetadata.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/model/ResourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workdocs/model/UserMetadata.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkDocs
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WORKDOCS_API ResourceMetadata();
37 AWS_WORKDOCS_API ResourceMetadata(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const ResourceType& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const ResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(ResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline ResourceMetadata& WithType(const ResourceType& value) { SetType(value); return *this;}
51 inline ResourceMetadata& WithType(ResourceType&& value) { SetType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline ResourceMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline ResourceMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline ResourceMetadata& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetOriginalName() const{ return m_originalName; }
73 inline bool OriginalNameHasBeenSet() const { return m_originalNameHasBeenSet; }
74 inline void SetOriginalName(const Aws::String& value) { m_originalNameHasBeenSet = true; m_originalName = value; }
75 inline void SetOriginalName(Aws::String&& value) { m_originalNameHasBeenSet = true; m_originalName = std::move(value); }
76 inline void SetOriginalName(const char* value) { m_originalNameHasBeenSet = true; m_originalName.assign(value); }
77 inline ResourceMetadata& WithOriginalName(const Aws::String& value) { SetOriginalName(value); return *this;}
78 inline ResourceMetadata& WithOriginalName(Aws::String&& value) { SetOriginalName(std::move(value)); return *this;}
79 inline ResourceMetadata& WithOriginalName(const char* value) { SetOriginalName(value); return *this;}
81
83
86 inline const Aws::String& GetId() const{ return m_id; }
87 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
88 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
89 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
90 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
91 inline ResourceMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
92 inline ResourceMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
93 inline ResourceMetadata& WithId(const char* value) { SetId(value); return *this;}
95
97
101 inline const Aws::String& GetVersionId() const{ return m_versionId; }
102 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
103 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
104 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
105 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
106 inline ResourceMetadata& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
107 inline ResourceMetadata& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
108 inline ResourceMetadata& WithVersionId(const char* value) { SetVersionId(value); return *this;}
110
112
115 inline const UserMetadata& GetOwner() const{ return m_owner; }
116 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
117 inline void SetOwner(const UserMetadata& value) { m_ownerHasBeenSet = true; m_owner = value; }
118 inline void SetOwner(UserMetadata&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
119 inline ResourceMetadata& WithOwner(const UserMetadata& value) { SetOwner(value); return *this;}
120 inline ResourceMetadata& WithOwner(UserMetadata&& value) { SetOwner(std::move(value)); return *this;}
122
124
127 inline const Aws::String& GetParentId() const{ return m_parentId; }
128 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
129 inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
130 inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
131 inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
132 inline ResourceMetadata& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
133 inline ResourceMetadata& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
134 inline ResourceMetadata& WithParentId(const char* value) { SetParentId(value); return *this;}
136 private:
137
138 ResourceType m_type;
139 bool m_typeHasBeenSet = false;
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 Aws::String m_originalName;
145 bool m_originalNameHasBeenSet = false;
146
147 Aws::String m_id;
148 bool m_idHasBeenSet = false;
149
150 Aws::String m_versionId;
151 bool m_versionIdHasBeenSet = false;
152
153 UserMetadata m_owner;
154 bool m_ownerHasBeenSet = false;
155
156 Aws::String m_parentId;
157 bool m_parentIdHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace WorkDocs
162} // namespace Aws
ResourceMetadata & WithOwner(UserMetadata &&value)
ResourceMetadata & WithName(const Aws::String &value)
const Aws::String & GetName() const
void SetOriginalName(Aws::String &&value)
void SetOwner(const UserMetadata &value)
void SetParentId(const Aws::String &value)
ResourceMetadata & WithName(const char *value)
void SetId(const Aws::String &value)
AWS_WORKDOCS_API ResourceMetadata(Aws::Utils::Json::JsonView jsonValue)
ResourceMetadata & WithType(const ResourceType &value)
void SetOriginalName(const Aws::String &value)
ResourceMetadata & WithOriginalName(const char *value)
ResourceMetadata & WithOwner(const UserMetadata &value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKDOCS_API ResourceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVersionId(const Aws::String &value)
ResourceMetadata & WithName(Aws::String &&value)
ResourceMetadata & WithVersionId(Aws::String &&value)
const ResourceType & GetType() const
ResourceMetadata & WithOriginalName(Aws::String &&value)
void SetType(const ResourceType &value)
ResourceMetadata & WithParentId(const Aws::String &value)
ResourceMetadata & WithVersionId(const Aws::String &value)
void SetName(const Aws::String &value)
ResourceMetadata & WithParentId(const char *value)
ResourceMetadata & WithParentId(Aws::String &&value)
ResourceMetadata & WithId(Aws::String &&value)
ResourceMetadata & WithVersionId(const char *value)
ResourceMetadata & WithOriginalName(const Aws::String &value)
const Aws::String & GetVersionId() const
const UserMetadata & GetOwner() const
const Aws::String & GetId() const
ResourceMetadata & WithId(const Aws::String &value)
ResourceMetadata & WithType(ResourceType &&value)
ResourceMetadata & WithId(const char *value)
const Aws::String & GetOriginalName() const
const Aws::String & GetParentId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue