AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceSharePermissionSummary.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/core/utils/memory/stl/AWSVector.h>
13#include <aws/ram/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace RAM
27{
28namespace Model
29{
30
37 {
38 public:
43
44
46
51 inline const Aws::String& GetArn() const{ return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
54 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
55 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
56 inline ResourceSharePermissionSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline ResourceSharePermissionSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline ResourceSharePermissionSummary& WithArn(const char* value) { SetArn(value); return *this;}
60
62
65 inline const Aws::String& GetVersion() const{ return m_version; }
66 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
67 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
68 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
69 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
70 inline ResourceSharePermissionSummary& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
71 inline ResourceSharePermissionSummary& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
72 inline ResourceSharePermissionSummary& WithVersion(const char* value) { SetVersion(value); return *this;}
74
76
80 inline bool GetDefaultVersion() const{ return m_defaultVersion; }
81 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
82 inline void SetDefaultVersion(bool value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; }
83 inline ResourceSharePermissionSummary& WithDefaultVersion(bool value) { SetDefaultVersion(value); return *this;}
85
87
90 inline const Aws::String& GetName() const{ return m_name; }
91 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
93 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
94 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
95 inline ResourceSharePermissionSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
96 inline ResourceSharePermissionSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
97 inline ResourceSharePermissionSummary& WithName(const char* value) { SetName(value); return *this;}
99
101
107 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
108 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
109 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
110 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
111 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
112 inline ResourceSharePermissionSummary& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
113 inline ResourceSharePermissionSummary& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
114 inline ResourceSharePermissionSummary& WithResourceType(const char* value) { SetResourceType(value); return *this;}
116
118
121 inline const Aws::String& GetStatus() const{ return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
124 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
125 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
126 inline ResourceSharePermissionSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
127 inline ResourceSharePermissionSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
128 inline ResourceSharePermissionSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
136 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
137 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
138 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
140 inline ResourceSharePermissionSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
142
144
147 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
148 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
149 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
150 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
154
156
160 inline bool GetIsResourceTypeDefault() const{ return m_isResourceTypeDefault; }
161 inline bool IsResourceTypeDefaultHasBeenSet() const { return m_isResourceTypeDefaultHasBeenSet; }
162 inline void SetIsResourceTypeDefault(bool value) { m_isResourceTypeDefaultHasBeenSet = true; m_isResourceTypeDefault = value; }
165
167
176 inline const PermissionType& GetPermissionType() const{ return m_permissionType; }
177 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
178 inline void SetPermissionType(const PermissionType& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
179 inline void SetPermissionType(PermissionType&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = std::move(value); }
181 inline ResourceSharePermissionSummary& WithPermissionType(PermissionType&& value) { SetPermissionType(std::move(value)); return *this;}
183
185
205 inline const PermissionFeatureSet& GetFeatureSet() const{ return m_featureSet; }
206 inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
207 inline void SetFeatureSet(const PermissionFeatureSet& value) { m_featureSetHasBeenSet = true; m_featureSet = value; }
208 inline void SetFeatureSet(PermissionFeatureSet&& value) { m_featureSetHasBeenSet = true; m_featureSet = std::move(value); }
210 inline ResourceSharePermissionSummary& WithFeatureSet(PermissionFeatureSet&& value) { SetFeatureSet(std::move(value)); return *this;}
212
214
217 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
218 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
220 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
221 inline ResourceSharePermissionSummary& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
222 inline ResourceSharePermissionSummary& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
223 inline ResourceSharePermissionSummary& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
224 inline ResourceSharePermissionSummary& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
226 private:
227
228 Aws::String m_arn;
229 bool m_arnHasBeenSet = false;
230
231 Aws::String m_version;
232 bool m_versionHasBeenSet = false;
233
234 bool m_defaultVersion;
235 bool m_defaultVersionHasBeenSet = false;
236
237 Aws::String m_name;
238 bool m_nameHasBeenSet = false;
239
240 Aws::String m_resourceType;
241 bool m_resourceTypeHasBeenSet = false;
242
243 Aws::String m_status;
244 bool m_statusHasBeenSet = false;
245
246 Aws::Utils::DateTime m_creationTime;
247 bool m_creationTimeHasBeenSet = false;
248
249 Aws::Utils::DateTime m_lastUpdatedTime;
250 bool m_lastUpdatedTimeHasBeenSet = false;
251
252 bool m_isResourceTypeDefault;
253 bool m_isResourceTypeDefaultHasBeenSet = false;
254
255 PermissionType m_permissionType;
256 bool m_permissionTypeHasBeenSet = false;
257
258 PermissionFeatureSet m_featureSet;
259 bool m_featureSetHasBeenSet = false;
260
261 Aws::Vector<Tag> m_tags;
262 bool m_tagsHasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace RAM
267} // namespace Aws
ResourceSharePermissionSummary & WithTags(Aws::Vector< Tag > &&value)
ResourceSharePermissionSummary & WithCreationTime(const Aws::Utils::DateTime &value)
ResourceSharePermissionSummary & WithStatus(const Aws::String &value)
ResourceSharePermissionSummary & WithVersion(const char *value)
ResourceSharePermissionSummary & WithStatus(const char *value)
ResourceSharePermissionSummary & WithName(Aws::String &&value)
ResourceSharePermissionSummary & WithVersion(Aws::String &&value)
ResourceSharePermissionSummary & WithPermissionType(const PermissionType &value)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceSharePermissionSummary & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
ResourceSharePermissionSummary & WithName(const char *value)
AWS_RAM_API ResourceSharePermissionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSharePermissionSummary & WithResourceType(Aws::String &&value)
ResourceSharePermissionSummary & WithIsResourceTypeDefault(bool value)
AWS_RAM_API ResourceSharePermissionSummary(Aws::Utils::Json::JsonView jsonValue)
ResourceSharePermissionSummary & WithArn(Aws::String &&value)
ResourceSharePermissionSummary & WithArn(const Aws::String &value)
ResourceSharePermissionSummary & WithDefaultVersion(bool value)
ResourceSharePermissionSummary & WithArn(const char *value)
ResourceSharePermissionSummary & WithTags(const Aws::Vector< Tag > &value)
ResourceSharePermissionSummary & WithStatus(Aws::String &&value)
ResourceSharePermissionSummary & WithFeatureSet(const PermissionFeatureSet &value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
ResourceSharePermissionSummary & WithFeatureSet(PermissionFeatureSet &&value)
ResourceSharePermissionSummary & WithResourceType(const Aws::String &value)
ResourceSharePermissionSummary & WithName(const Aws::String &value)
ResourceSharePermissionSummary & WithCreationTime(Aws::Utils::DateTime &&value)
ResourceSharePermissionSummary & WithVersion(const Aws::String &value)
ResourceSharePermissionSummary & WithResourceType(const char *value)
ResourceSharePermissionSummary & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
ResourceSharePermissionSummary & AddTags(Tag &&value)
ResourceSharePermissionSummary & AddTags(const Tag &value)
ResourceSharePermissionSummary & WithPermissionType(PermissionType &&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