AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceSharePermissionDetail.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ram/model/PermissionType.h>
11#include <aws/ram/model/PermissionFeatureSet.h>
12#include <aws/ram/model/PermissionStatus.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ram/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace RAM
28{
29namespace Model
30{
31
38 {
39 public:
44
45
47
52 inline const Aws::String& GetArn() const{ return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
57 inline ResourceSharePermissionDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline ResourceSharePermissionDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline ResourceSharePermissionDetail& WithArn(const char* value) { SetArn(value); return *this;}
61
63
66 inline const Aws::String& GetVersion() const{ return m_version; }
67 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
68 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
69 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
70 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
71 inline ResourceSharePermissionDetail& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
72 inline ResourceSharePermissionDetail& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
73 inline ResourceSharePermissionDetail& WithVersion(const char* value) { SetVersion(value); return *this;}
75
77
81 inline bool GetDefaultVersion() const{ return m_defaultVersion; }
82 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
83 inline void SetDefaultVersion(bool value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; }
84 inline ResourceSharePermissionDetail& WithDefaultVersion(bool value) { SetDefaultVersion(value); return *this;}
86
88
91 inline const Aws::String& GetName() const{ return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
95 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
96 inline ResourceSharePermissionDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
97 inline ResourceSharePermissionDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
98 inline ResourceSharePermissionDetail& WithName(const char* value) { SetName(value); return *this;}
100
102
105 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
106 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
107 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
108 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
109 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
110 inline ResourceSharePermissionDetail& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
111 inline ResourceSharePermissionDetail& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
112 inline ResourceSharePermissionDetail& WithResourceType(const char* value) { SetResourceType(value); return *this;}
114
116
122 inline const Aws::String& GetPermission() const{ return m_permission; }
123 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
124 inline void SetPermission(const Aws::String& value) { m_permissionHasBeenSet = true; m_permission = value; }
125 inline void SetPermission(Aws::String&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
126 inline void SetPermission(const char* value) { m_permissionHasBeenSet = true; m_permission.assign(value); }
127 inline ResourceSharePermissionDetail& WithPermission(const Aws::String& value) { SetPermission(value); return *this;}
128 inline ResourceSharePermissionDetail& WithPermission(Aws::String&& value) { SetPermission(std::move(value)); return *this;}
129 inline ResourceSharePermissionDetail& WithPermission(const char* value) { SetPermission(value); return *this;}
131
133
136 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
137 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
138 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
139 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
141 inline ResourceSharePermissionDetail& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
143
145
148 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
149 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
150 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
151 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
155
157
161 inline bool GetIsResourceTypeDefault() const{ return m_isResourceTypeDefault; }
162 inline bool IsResourceTypeDefaultHasBeenSet() const { return m_isResourceTypeDefaultHasBeenSet; }
163 inline void SetIsResourceTypeDefault(bool value) { m_isResourceTypeDefaultHasBeenSet = true; m_isResourceTypeDefault = value; }
166
168
177 inline const PermissionType& GetPermissionType() const{ return m_permissionType; }
178 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
179 inline void SetPermissionType(const PermissionType& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
180 inline void SetPermissionType(PermissionType&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = std::move(value); }
182 inline ResourceSharePermissionDetail& WithPermissionType(PermissionType&& value) { SetPermissionType(std::move(value)); return *this;}
184
186
206 inline const PermissionFeatureSet& GetFeatureSet() const{ return m_featureSet; }
207 inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
208 inline void SetFeatureSet(const PermissionFeatureSet& value) { m_featureSetHasBeenSet = true; m_featureSet = value; }
209 inline void SetFeatureSet(PermissionFeatureSet&& value) { m_featureSetHasBeenSet = true; m_featureSet = std::move(value); }
211 inline ResourceSharePermissionDetail& WithFeatureSet(PermissionFeatureSet&& value) { SetFeatureSet(std::move(value)); return *this;}
213
215
225 inline const PermissionStatus& GetStatus() const{ return m_status; }
226 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
227 inline void SetStatus(const PermissionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
228 inline void SetStatus(PermissionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
229 inline ResourceSharePermissionDetail& WithStatus(const PermissionStatus& value) { SetStatus(value); return *this;}
230 inline ResourceSharePermissionDetail& WithStatus(PermissionStatus&& value) { SetStatus(std::move(value)); return *this;}
232
234
237 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
238 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
239 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
240 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
241 inline ResourceSharePermissionDetail& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
242 inline ResourceSharePermissionDetail& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
243 inline ResourceSharePermissionDetail& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
244 inline ResourceSharePermissionDetail& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
246 private:
247
248 Aws::String m_arn;
249 bool m_arnHasBeenSet = false;
250
251 Aws::String m_version;
252 bool m_versionHasBeenSet = false;
253
254 bool m_defaultVersion;
255 bool m_defaultVersionHasBeenSet = false;
256
257 Aws::String m_name;
258 bool m_nameHasBeenSet = false;
259
260 Aws::String m_resourceType;
261 bool m_resourceTypeHasBeenSet = false;
262
263 Aws::String m_permission;
264 bool m_permissionHasBeenSet = false;
265
266 Aws::Utils::DateTime m_creationTime;
267 bool m_creationTimeHasBeenSet = false;
268
269 Aws::Utils::DateTime m_lastUpdatedTime;
270 bool m_lastUpdatedTimeHasBeenSet = false;
271
272 bool m_isResourceTypeDefault;
273 bool m_isResourceTypeDefaultHasBeenSet = false;
274
275 PermissionType m_permissionType;
276 bool m_permissionTypeHasBeenSet = false;
277
278 PermissionFeatureSet m_featureSet;
279 bool m_featureSetHasBeenSet = false;
280
281 PermissionStatus m_status;
282 bool m_statusHasBeenSet = false;
283
284 Aws::Vector<Tag> m_tags;
285 bool m_tagsHasBeenSet = false;
286 };
287
288} // namespace Model
289} // namespace RAM
290} // namespace Aws
void SetCreationTime(const Aws::Utils::DateTime &value)
ResourceSharePermissionDetail & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
ResourceSharePermissionDetail & WithFeatureSet(const PermissionFeatureSet &value)
ResourceSharePermissionDetail & WithCreationTime(Aws::Utils::DateTime &&value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
ResourceSharePermissionDetail & WithPermission(Aws::String &&value)
ResourceSharePermissionDetail & WithName(const char *value)
ResourceSharePermissionDetail & WithArn(const char *value)
ResourceSharePermissionDetail & WithResourceType(const Aws::String &value)
ResourceSharePermissionDetail & WithArn(const Aws::String &value)
ResourceSharePermissionDetail & WithTags(const Aws::Vector< Tag > &value)
AWS_RAM_API ResourceSharePermissionDetail(Aws::Utils::Json::JsonView jsonValue)
ResourceSharePermissionDetail & WithStatus(PermissionStatus &&value)
ResourceSharePermissionDetail & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
ResourceSharePermissionDetail & WithTags(Aws::Vector< Tag > &&value)
void SetFeatureSet(const PermissionFeatureSet &value)
ResourceSharePermissionDetail & WithVersion(Aws::String &&value)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RAM_API ResourceSharePermissionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSharePermissionDetail & WithResourceType(Aws::String &&value)
ResourceSharePermissionDetail & WithName(Aws::String &&value)
ResourceSharePermissionDetail & WithName(const Aws::String &value)
ResourceSharePermissionDetail & WithStatus(const PermissionStatus &value)
ResourceSharePermissionDetail & WithResourceType(const char *value)
ResourceSharePermissionDetail & WithPermission(const char *value)
ResourceSharePermissionDetail & WithPermissionType(PermissionType &&value)
ResourceSharePermissionDetail & WithVersion(const char *value)
ResourceSharePermissionDetail & WithIsResourceTypeDefault(bool value)
ResourceSharePermissionDetail & AddTags(const Tag &value)
ResourceSharePermissionDetail & WithDefaultVersion(bool value)
ResourceSharePermissionDetail & WithPermissionType(const PermissionType &value)
ResourceSharePermissionDetail & WithArn(Aws::String &&value)
ResourceSharePermissionDetail & WithPermission(const Aws::String &value)
ResourceSharePermissionDetail & AddTags(Tag &&value)
ResourceSharePermissionDetail & WithFeatureSet(PermissionFeatureSet &&value)
ResourceSharePermissionDetail & WithVersion(const Aws::String &value)
ResourceSharePermissionDetail & WithCreationTime(const Aws::Utils::DateTime &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