AWS SDK for C++  1.9.159
AWS SDK for C++
AccessPolicySummary.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace IoTSiteWise
26 {
27 namespace Model
28 {
29 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetId() const{ return m_id; }
49 
53  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 
58  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 
68  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
69 
73  inline AccessPolicySummary& WithId(const Aws::String& value) { SetId(value); return *this;}
74 
78  inline AccessPolicySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
79 
83  inline AccessPolicySummary& WithId(const char* value) { SetId(value); return *this;}
84 
85 
90  inline const Identity& GetIdentity() const{ return m_identity; }
91 
96  inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
97 
102  inline void SetIdentity(const Identity& value) { m_identityHasBeenSet = true; m_identity = value; }
103 
108  inline void SetIdentity(Identity&& value) { m_identityHasBeenSet = true; m_identity = std::move(value); }
109 
114  inline AccessPolicySummary& WithIdentity(const Identity& value) { SetIdentity(value); return *this;}
115 
120  inline AccessPolicySummary& WithIdentity(Identity&& value) { SetIdentity(std::move(value)); return *this;}
121 
122 
126  inline const Resource& GetResource() const{ return m_resource; }
127 
131  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
132 
136  inline void SetResource(const Resource& value) { m_resourceHasBeenSet = true; m_resource = value; }
137 
141  inline void SetResource(Resource&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
142 
146  inline AccessPolicySummary& WithResource(const Resource& value) { SetResource(value); return *this;}
147 
151  inline AccessPolicySummary& WithResource(Resource&& value) { SetResource(std::move(value)); return *this;}
152 
153 
158  inline const Permission& GetPermission() const{ return m_permission; }
159 
164  inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
165 
170  inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
171 
176  inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
177 
182  inline AccessPolicySummary& WithPermission(const Permission& value) { SetPermission(value); return *this;}
183 
188  inline AccessPolicySummary& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
189 
190 
194  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
195 
199  inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
200 
204  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
205 
209  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
210 
214  inline AccessPolicySummary& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
215 
219  inline AccessPolicySummary& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
220 
221 
225  inline const Aws::Utils::DateTime& GetLastUpdateDate() const{ return m_lastUpdateDate; }
226 
230  inline bool LastUpdateDateHasBeenSet() const { return m_lastUpdateDateHasBeenSet; }
231 
235  inline void SetLastUpdateDate(const Aws::Utils::DateTime& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = value; }
236 
240  inline void SetLastUpdateDate(Aws::Utils::DateTime&& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = std::move(value); }
241 
245  inline AccessPolicySummary& WithLastUpdateDate(const Aws::Utils::DateTime& value) { SetLastUpdateDate(value); return *this;}
246 
250  inline AccessPolicySummary& WithLastUpdateDate(Aws::Utils::DateTime&& value) { SetLastUpdateDate(std::move(value)); return *this;}
251 
252  private:
253 
254  Aws::String m_id;
255  bool m_idHasBeenSet;
256 
257  Identity m_identity;
258  bool m_identityHasBeenSet;
259 
260  Resource m_resource;
261  bool m_resourceHasBeenSet;
262 
263  Permission m_permission;
264  bool m_permissionHasBeenSet;
265 
266  Aws::Utils::DateTime m_creationDate;
267  bool m_creationDateHasBeenSet;
268 
269  Aws::Utils::DateTime m_lastUpdateDate;
270  bool m_lastUpdateDateHasBeenSet;
271  };
272 
273 } // namespace Model
274 } // namespace IoTSiteWise
275 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoTSiteWise::Model::AccessPolicySummary::AccessPolicySummary
AccessPolicySummary()
Aws::IoTSiteWise::Model::AccessPolicySummary::WithLastUpdateDate
AccessPolicySummary & WithLastUpdateDate(Aws::Utils::DateTime &&value)
Definition: AccessPolicySummary.h:250
Aws::IoTSiteWise::Model::AccessPolicySummary::GetId
const Aws::String & GetId() const
Definition: AccessPolicySummary.h:48
Aws::IoTSiteWise::Model::AccessPolicySummary::SetLastUpdateDate
void SetLastUpdateDate(Aws::Utils::DateTime &&value)
Definition: AccessPolicySummary.h:240
Aws::IoTSiteWise::Model::AccessPolicySummary::WithCreationDate
AccessPolicySummary & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: AccessPolicySummary.h:214
Aws::IoTSiteWise::Model::AccessPolicySummary::operator=
AccessPolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AccessPolicySummary::GetIdentity
const Identity & GetIdentity() const
Definition: AccessPolicySummary.h:90
Permission.h
Resource.h
Aws::IoTSiteWise::Model::AccessPolicySummary::CreationDateHasBeenSet
bool CreationDateHasBeenSet() const
Definition: AccessPolicySummary.h:199
Aws::IoTSiteWise::Model::AccessPolicySummary::WithPermission
AccessPolicySummary & WithPermission(const Permission &value)
Definition: AccessPolicySummary.h:182
Aws::IoTSiteWise::Model::AccessPolicySummary::WithIdentity
AccessPolicySummary & WithIdentity(const Identity &value)
Definition: AccessPolicySummary.h:114
Aws::IoTSiteWise::Model::AccessPolicySummary::WithIdentity
AccessPolicySummary & WithIdentity(Identity &&value)
Definition: AccessPolicySummary.h:120
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::AccessPolicySummary::PermissionHasBeenSet
bool PermissionHasBeenSet() const
Definition: AccessPolicySummary.h:164
Aws::IoTSiteWise::Model::AccessPolicySummary::GetPermission
const Permission & GetPermission() const
Definition: AccessPolicySummary.h:158
DateTime.h
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::AccessPolicySummary::GetResource
const Resource & GetResource() const
Definition: AccessPolicySummary.h:126
Aws::IoTSiteWise::Model::AccessPolicySummary::SetIdentity
void SetIdentity(Identity &&value)
Definition: AccessPolicySummary.h:108
Aws::IoTSiteWise::Model::AccessPolicySummary::SetPermission
void SetPermission(const Permission &value)
Definition: AccessPolicySummary.h:170
Aws::IoTSiteWise::Model::AccessPolicySummary::SetResource
void SetResource(Resource &&value)
Definition: AccessPolicySummary.h:141
Aws::IoTSiteWise::Model::AccessPolicySummary::IdentityHasBeenSet
bool IdentityHasBeenSet() const
Definition: AccessPolicySummary.h:96
Aws::IoTSiteWise::Model::AccessPolicySummary::WithId
AccessPolicySummary & WithId(const char *value)
Definition: AccessPolicySummary.h:83
Identity.h
Aws::IoTSiteWise::Model::AccessPolicySummary::WithResource
AccessPolicySummary & WithResource(const Resource &value)
Definition: AccessPolicySummary.h:146
Aws::IoTSiteWise::Model::AccessPolicySummary::SetResource
void SetResource(const Resource &value)
Definition: AccessPolicySummary.h:136
Aws::IoTSiteWise::Model::AccessPolicySummary::WithResource
AccessPolicySummary & WithResource(Resource &&value)
Definition: AccessPolicySummary.h:151
Aws::IoTSiteWise::Model::AccessPolicySummary
Definition: AccessPolicySummary.h:37
Aws::IoTSiteWise::Model::AccessPolicySummary::WithId
AccessPolicySummary & WithId(Aws::String &&value)
Definition: AccessPolicySummary.h:78
Aws::IoTSiteWise::Model::AccessPolicySummary::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: AccessPolicySummary.h:131
Aws::IoTSiteWise::Model::AccessPolicySummary::WithPermission
AccessPolicySummary & WithPermission(Permission &&value)
Definition: AccessPolicySummary.h:188
Aws::IoTSiteWise::Model::AccessPolicySummary::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: AccessPolicySummary.h:204
Aws::IoTSiteWise::Model::AccessPolicySummary::LastUpdateDateHasBeenSet
bool LastUpdateDateHasBeenSet() const
Definition: AccessPolicySummary.h:230
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::AccessPolicySummary::GetLastUpdateDate
const Aws::Utils::DateTime & GetLastUpdateDate() const
Definition: AccessPolicySummary.h:225
Aws::IoTSiteWise::Model::AccessPolicySummary::SetId
void SetId(const char *value)
Definition: AccessPolicySummary.h:68
Aws::IoTSiteWise::Model::AccessPolicySummary::SetLastUpdateDate
void SetLastUpdateDate(const Aws::Utils::DateTime &value)
Definition: AccessPolicySummary.h:235
Aws::IoTSiteWise::Model::AccessPolicySummary::WithCreationDate
AccessPolicySummary & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: AccessPolicySummary.h:219
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AccessPolicySummary::WithLastUpdateDate
AccessPolicySummary & WithLastUpdateDate(const Aws::Utils::DateTime &value)
Definition: AccessPolicySummary.h:245
Aws::IoTSiteWise::Model::AccessPolicySummary::WithId
AccessPolicySummary & WithId(const Aws::String &value)
Definition: AccessPolicySummary.h:73
Aws::IoTSiteWise::Model::Permission
Permission
Definition: Permission.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::Identity
Definition: Identity.h:40
Aws::IoTSiteWise::Model::AccessPolicySummary::SetIdentity
void SetIdentity(const Identity &value)
Definition: AccessPolicySummary.h:102
Aws::IoTSiteWise::Model::AccessPolicySummary::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: AccessPolicySummary.h:209
Aws::IoTSiteWise::Model::Resource
Definition: Resource.h:34
Aws::IoTSiteWise::Model::AccessPolicySummary::AccessPolicySummary
AccessPolicySummary(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AccessPolicySummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::AccessPolicySummary::SetId
void SetId(Aws::String &&value)
Definition: AccessPolicySummary.h:63
Aws::IoTSiteWise::Model::AccessPolicySummary::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: AccessPolicySummary.h:194
Aws::IoTSiteWise::Model::AccessPolicySummary::SetId
void SetId(const Aws::String &value)
Definition: AccessPolicySummary.h:58
Aws::IoTSiteWise::Model::AccessPolicySummary::IdHasBeenSet
bool IdHasBeenSet() const
Definition: AccessPolicySummary.h:53
Aws::IoTSiteWise::Model::AccessPolicySummary::SetPermission
void SetPermission(Permission &&value)
Definition: AccessPolicySummary.h:176