AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
ResourceSharePermissionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ram/RAM_EXPORTS.h>
11#include <aws/ram/model/PermissionFeatureSet.h>
12#include <aws/ram/model/PermissionType.h>
13#include <aws/ram/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace RAM {
25namespace Model {
26
33 public:
34 AWS_RAM_API ResourceSharePermissionSummary() = default;
38
40
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetVersion() const { return m_version; }
64 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
65 template <typename VersionT = Aws::String>
66 void SetVersion(VersionT&& value) {
67 m_versionHasBeenSet = true;
68 m_version = std::forward<VersionT>(value);
69 }
70 template <typename VersionT = Aws::String>
72 SetVersion(std::forward<VersionT>(value));
73 return *this;
74 }
76
78
82 inline bool GetDefaultVersion() const { return m_defaultVersion; }
83 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
84 inline void SetDefaultVersion(bool value) {
85 m_defaultVersionHasBeenSet = true;
86 m_defaultVersion = value;
87 }
89 SetDefaultVersion(value);
90 return *this;
91 }
93
95
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template <typename NameT = Aws::String>
101 void SetName(NameT&& value) {
102 m_nameHasBeenSet = true;
103 m_name = std::forward<NameT>(value);
104 }
105 template <typename NameT = Aws::String>
107 SetName(std::forward<NameT>(value));
108 return *this;
109 }
111
113
119 inline const Aws::String& GetResourceType() const { return m_resourceType; }
120 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
121 template <typename ResourceTypeT = Aws::String>
122 void SetResourceType(ResourceTypeT&& value) {
123 m_resourceTypeHasBeenSet = true;
124 m_resourceType = std::forward<ResourceTypeT>(value);
125 }
126 template <typename ResourceTypeT = Aws::String>
128 SetResourceType(std::forward<ResourceTypeT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetStatus() const { return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 template <typename StatusT = Aws::String>
140 void SetStatus(StatusT&& value) {
141 m_statusHasBeenSet = true;
142 m_status = std::forward<StatusT>(value);
143 }
144 template <typename StatusT = Aws::String>
146 SetStatus(std::forward<StatusT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
156 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
157 template <typename CreationTimeT = Aws::Utils::DateTime>
158 void SetCreationTime(CreationTimeT&& value) {
159 m_creationTimeHasBeenSet = true;
160 m_creationTime = std::forward<CreationTimeT>(value);
161 }
162 template <typename CreationTimeT = Aws::Utils::DateTime>
164 SetCreationTime(std::forward<CreationTimeT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
174 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
175 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
176 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
177 m_lastUpdatedTimeHasBeenSet = true;
178 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
179 }
180 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
182 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
183 return *this;
184 }
186
188
192 inline bool GetIsResourceTypeDefault() const { return m_isResourceTypeDefault; }
193 inline bool IsResourceTypeDefaultHasBeenSet() const { return m_isResourceTypeDefaultHasBeenSet; }
194 inline void SetIsResourceTypeDefault(bool value) {
195 m_isResourceTypeDefaultHasBeenSet = true;
196 m_isResourceTypeDefault = value;
197 }
200 return *this;
201 }
203
205
214 inline PermissionType GetPermissionType() const { return m_permissionType; }
215 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
217 m_permissionTypeHasBeenSet = true;
218 m_permissionType = value;
219 }
221 SetPermissionType(value);
222 return *this;
223 }
225
227
247 inline PermissionFeatureSet GetFeatureSet() const { return m_featureSet; }
248 inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
250 m_featureSetHasBeenSet = true;
251 m_featureSet = value;
252 }
254 SetFeatureSet(value);
255 return *this;
256 }
258
260
263 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
264 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
265 template <typename TagsT = Aws::Vector<Tag>>
266 void SetTags(TagsT&& value) {
267 m_tagsHasBeenSet = true;
268 m_tags = std::forward<TagsT>(value);
269 }
270 template <typename TagsT = Aws::Vector<Tag>>
272 SetTags(std::forward<TagsT>(value));
273 return *this;
274 }
275 template <typename TagsT = Tag>
277 m_tagsHasBeenSet = true;
278 m_tags.emplace_back(std::forward<TagsT>(value));
279 return *this;
280 }
282 private:
283 Aws::String m_arn;
284
285 Aws::String m_version;
286
287 bool m_defaultVersion{false};
288
289 Aws::String m_name;
290
291 Aws::String m_resourceType;
292
293 Aws::String m_status;
294
295 Aws::Utils::DateTime m_creationTime{};
296
297 Aws::Utils::DateTime m_lastUpdatedTime{};
298
299 bool m_isResourceTypeDefault{false};
300
301 PermissionType m_permissionType{PermissionType::NOT_SET};
302
304
305 Aws::Vector<Tag> m_tags;
306 bool m_arnHasBeenSet = false;
307 bool m_versionHasBeenSet = false;
308 bool m_defaultVersionHasBeenSet = false;
309 bool m_nameHasBeenSet = false;
310 bool m_resourceTypeHasBeenSet = false;
311 bool m_statusHasBeenSet = false;
312 bool m_creationTimeHasBeenSet = false;
313 bool m_lastUpdatedTimeHasBeenSet = false;
314 bool m_isResourceTypeDefaultHasBeenSet = false;
315 bool m_permissionTypeHasBeenSet = false;
316 bool m_featureSetHasBeenSet = false;
317 bool m_tagsHasBeenSet = false;
318};
319
320} // namespace Model
321} // namespace RAM
322} // namespace Aws
ResourceSharePermissionSummary & WithPermissionType(PermissionType value)
ResourceSharePermissionSummary & WithArn(ArnT &&value)
ResourceSharePermissionSummary & WithVersion(VersionT &&value)
ResourceSharePermissionSummary & WithName(NameT &&value)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceSharePermissionSummary & WithResourceType(ResourceTypeT &&value)
AWS_RAM_API ResourceSharePermissionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSharePermissionSummary & WithFeatureSet(PermissionFeatureSet value)
ResourceSharePermissionSummary & WithIsResourceTypeDefault(bool value)
AWS_RAM_API ResourceSharePermissionSummary(Aws::Utils::Json::JsonView jsonValue)
ResourceSharePermissionSummary & WithDefaultVersion(bool value)
ResourceSharePermissionSummary & WithTags(TagsT &&value)
ResourceSharePermissionSummary & WithStatus(StatusT &&value)
ResourceSharePermissionSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
ResourceSharePermissionSummary & WithCreationTime(CreationTimeT &&value)
ResourceSharePermissionSummary & AddTags(TagsT &&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