AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
AssociatedPermission.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ram/RAM_EXPORTS.h>
10#include <aws/ram/model/PermissionFeatureSet.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RAM {
22namespace Model {
23
31 public:
32 AWS_RAM_API AssociatedPermission() = default;
36
38
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetPermissionVersion() const { return m_permissionVersion; }
63 inline bool PermissionVersionHasBeenSet() const { return m_permissionVersionHasBeenSet; }
64 template <typename PermissionVersionT = Aws::String>
65 void SetPermissionVersion(PermissionVersionT&& value) {
66 m_permissionVersionHasBeenSet = true;
67 m_permissionVersion = std::forward<PermissionVersionT>(value);
68 }
69 template <typename PermissionVersionT = Aws::String>
70 AssociatedPermission& WithPermissionVersion(PermissionVersionT&& value) {
71 SetPermissionVersion(std::forward<PermissionVersionT>(value));
72 return *this;
73 }
75
77
81 inline bool GetDefaultVersion() const { return m_defaultVersion; }
82 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
83 inline void SetDefaultVersion(bool value) {
84 m_defaultVersionHasBeenSet = true;
85 m_defaultVersion = value;
86 }
88 SetDefaultVersion(value);
89 return *this;
90 }
92
94
97 inline const Aws::String& GetResourceType() const { return m_resourceType; }
98 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
99 template <typename ResourceTypeT = Aws::String>
100 void SetResourceType(ResourceTypeT&& value) {
101 m_resourceTypeHasBeenSet = true;
102 m_resourceType = std::forward<ResourceTypeT>(value);
103 }
104 template <typename ResourceTypeT = Aws::String>
105 AssociatedPermission& WithResourceType(ResourceTypeT&& value) {
106 SetResourceType(std::forward<ResourceTypeT>(value));
107 return *this;
108 }
110
112
122 inline const Aws::String& GetStatus() const { return m_status; }
123 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
124 template <typename StatusT = Aws::String>
125 void SetStatus(StatusT&& value) {
126 m_statusHasBeenSet = true;
127 m_status = std::forward<StatusT>(value);
128 }
129 template <typename StatusT = Aws::String>
131 SetStatus(std::forward<StatusT>(value));
132 return *this;
133 }
135
137
157 inline PermissionFeatureSet GetFeatureSet() const { return m_featureSet; }
158 inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
160 m_featureSetHasBeenSet = true;
161 m_featureSet = value;
162 }
164 SetFeatureSet(value);
165 return *this;
166 }
168
170
174 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
175 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
176 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
177 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
178 m_lastUpdatedTimeHasBeenSet = true;
179 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
180 }
181 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
182 AssociatedPermission& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
183 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
184 return *this;
185 }
187
189
194 inline const Aws::String& GetResourceShareArn() const { return m_resourceShareArn; }
195 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
196 template <typename ResourceShareArnT = Aws::String>
197 void SetResourceShareArn(ResourceShareArnT&& value) {
198 m_resourceShareArnHasBeenSet = true;
199 m_resourceShareArn = std::forward<ResourceShareArnT>(value);
200 }
201 template <typename ResourceShareArnT = Aws::String>
202 AssociatedPermission& WithResourceShareArn(ResourceShareArnT&& value) {
203 SetResourceShareArn(std::forward<ResourceShareArnT>(value));
204 return *this;
205 }
207 private:
208 Aws::String m_arn;
209
210 Aws::String m_permissionVersion;
211
212 bool m_defaultVersion{false};
213
214 Aws::String m_resourceType;
215
216 Aws::String m_status;
217
219
220 Aws::Utils::DateTime m_lastUpdatedTime{};
221
222 Aws::String m_resourceShareArn;
223 bool m_arnHasBeenSet = false;
224 bool m_permissionVersionHasBeenSet = false;
225 bool m_defaultVersionHasBeenSet = false;
226 bool m_resourceTypeHasBeenSet = false;
227 bool m_statusHasBeenSet = false;
228 bool m_featureSetHasBeenSet = false;
229 bool m_lastUpdatedTimeHasBeenSet = false;
230 bool m_resourceShareArnHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace RAM
235} // namespace Aws
AssociatedPermission & WithResourceType(ResourceTypeT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
PermissionFeatureSet GetFeatureSet() const
AssociatedPermission & WithDefaultVersion(bool value)
AWS_RAM_API AssociatedPermission()=default
const Aws::String & GetResourceShareArn() const
AssociatedPermission & WithLastUpdatedTime(LastUpdatedTimeT &&value)
AssociatedPermission & WithFeatureSet(PermissionFeatureSet value)
void SetFeatureSet(PermissionFeatureSet value)
AssociatedPermission & WithResourceShareArn(ResourceShareArnT &&value)
AWS_RAM_API AssociatedPermission & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceShareArn(ResourceShareArnT &&value)
AWS_RAM_API AssociatedPermission(Aws::Utils::Json::JsonView jsonValue)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResourceType() const
const Aws::String & GetPermissionVersion() const
void SetPermissionVersion(PermissionVersionT &&value)
AssociatedPermission & WithStatus(StatusT &&value)
AssociatedPermission & WithPermissionVersion(PermissionVersionT &&value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
void SetResourceType(ResourceTypeT &&value)
AssociatedPermission & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue