AWS SDK for C++  1.9.153
AWS SDK for C++
Identity.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoTSiteWise
25 {
26 namespace Model
27 {
28 
40  {
41  public:
46 
47 
51  inline const UserIdentity& GetUser() const{ return m_user; }
52 
56  inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
57 
61  inline void SetUser(const UserIdentity& value) { m_userHasBeenSet = true; m_user = value; }
62 
66  inline void SetUser(UserIdentity&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
67 
71  inline Identity& WithUser(const UserIdentity& value) { SetUser(value); return *this;}
72 
76  inline Identity& WithUser(UserIdentity&& value) { SetUser(std::move(value)); return *this;}
77 
78 
82  inline const GroupIdentity& GetGroup() const{ return m_group; }
83 
87  inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
88 
92  inline void SetGroup(const GroupIdentity& value) { m_groupHasBeenSet = true; m_group = value; }
93 
97  inline void SetGroup(GroupIdentity&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
98 
102  inline Identity& WithGroup(const GroupIdentity& value) { SetGroup(value); return *this;}
103 
107  inline Identity& WithGroup(GroupIdentity&& value) { SetGroup(std::move(value)); return *this;}
108 
109 
113  inline const IAMUserIdentity& GetIamUser() const{ return m_iamUser; }
114 
118  inline bool IamUserHasBeenSet() const { return m_iamUserHasBeenSet; }
119 
123  inline void SetIamUser(const IAMUserIdentity& value) { m_iamUserHasBeenSet = true; m_iamUser = value; }
124 
128  inline void SetIamUser(IAMUserIdentity&& value) { m_iamUserHasBeenSet = true; m_iamUser = std::move(value); }
129 
133  inline Identity& WithIamUser(const IAMUserIdentity& value) { SetIamUser(value); return *this;}
134 
138  inline Identity& WithIamUser(IAMUserIdentity&& value) { SetIamUser(std::move(value)); return *this;}
139 
140 
144  inline const IAMRoleIdentity& GetIamRole() const{ return m_iamRole; }
145 
149  inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
150 
154  inline void SetIamRole(const IAMRoleIdentity& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
155 
159  inline void SetIamRole(IAMRoleIdentity&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
160 
164  inline Identity& WithIamRole(const IAMRoleIdentity& value) { SetIamRole(value); return *this;}
165 
169  inline Identity& WithIamRole(IAMRoleIdentity&& value) { SetIamRole(std::move(value)); return *this;}
170 
171  private:
172 
173  UserIdentity m_user;
174  bool m_userHasBeenSet;
175 
176  GroupIdentity m_group;
177  bool m_groupHasBeenSet;
178 
179  IAMUserIdentity m_iamUser;
180  bool m_iamUserHasBeenSet;
181 
182  IAMRoleIdentity m_iamRole;
183  bool m_iamRoleHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace IoTSiteWise
188 } // namespace Aws
IAMUserIdentity.h
Aws::IoTSiteWise::Model::IAMUserIdentity
Definition: IAMUserIdentity.h:33
Aws::IoTSiteWise::Model::Identity::SetIamRole
void SetIamRole(const IAMRoleIdentity &value)
Definition: Identity.h:154
Aws::IoTSiteWise::Model::Identity::GetGroup
const GroupIdentity & GetGroup() const
Definition: Identity.h:82
UserIdentity.h
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::Identity::GetIamUser
const IAMUserIdentity & GetIamUser() const
Definition: Identity.h:113
Aws::IoTSiteWise::Model::IAMRoleIdentity
Definition: IAMRoleIdentity.h:35
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::Identity::WithGroup
Identity & WithGroup(GroupIdentity &&value)
Definition: Identity.h:107
Aws::IoTSiteWise::Model::Identity::SetGroup
void SetGroup(GroupIdentity &&value)
Definition: Identity.h:97
Aws::IoTSiteWise::Model::Identity::GroupHasBeenSet
bool GroupHasBeenSet() const
Definition: Identity.h:87
Aws::IoTSiteWise::Model::Identity::WithIamUser
Identity & WithIamUser(const IAMUserIdentity &value)
Definition: Identity.h:133
Aws::IoTSiteWise::Model::Identity::WithUser
Identity & WithUser(UserIdentity &&value)
Definition: Identity.h:76
Aws::IoTSiteWise::Model::Identity::Identity
Identity()
Aws::IoTSiteWise::Model::Identity::IamUserHasBeenSet
bool IamUserHasBeenSet() const
Definition: Identity.h:118
Aws::IoTSiteWise::Model::Identity::SetIamRole
void SetIamRole(IAMRoleIdentity &&value)
Definition: Identity.h:159
Aws::IoTSiteWise::Model::Identity::SetIamUser
void SetIamUser(const IAMUserIdentity &value)
Definition: Identity.h:123
Aws::IoTSiteWise::Model::Identity::WithUser
Identity & WithUser(const UserIdentity &value)
Definition: Identity.h:71
Aws::IoTSiteWise::Model::UserIdentity
Definition: UserIdentity.h:33
Aws::IoTSiteWise::Model::GroupIdentity
Definition: GroupIdentity.h:33
Aws::IoTSiteWise::Model::Identity::WithGroup
Identity & WithGroup(const GroupIdentity &value)
Definition: Identity.h:102
Aws::IoTSiteWise::Model::Identity::SetUser
void SetUser(UserIdentity &&value)
Definition: Identity.h:66
Aws::IoTSiteWise::Model::Identity::Identity
Identity(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::Identity::operator=
Identity & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::Identity::GetIamRole
const IAMRoleIdentity & GetIamRole() const
Definition: Identity.h:144
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::Identity::WithIamUser
Identity & WithIamUser(IAMUserIdentity &&value)
Definition: Identity.h:138
Aws::IoTSiteWise::Model::Identity::WithIamRole
Identity & WithIamRole(const IAMRoleIdentity &value)
Definition: Identity.h:164
Aws::IoTSiteWise::Model::Identity::SetGroup
void SetGroup(const GroupIdentity &value)
Definition: Identity.h:92
Aws::IoTSiteWise::Model::Identity::WithIamRole
Identity & WithIamRole(IAMRoleIdentity &&value)
Definition: Identity.h:169
Aws::IoTSiteWise::Model::Identity::IamRoleHasBeenSet
bool IamRoleHasBeenSet() const
Definition: Identity.h:149
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
GroupIdentity.h
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::Identity::GetUser
const UserIdentity & GetUser() const
Definition: Identity.h:51
Aws::IoTSiteWise::Model::Identity::SetIamUser
void SetIamUser(IAMUserIdentity &&value)
Definition: Identity.h:128
Aws::IoTSiteWise::Model::Identity::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::Identity::SetUser
void SetUser(const UserIdentity &value)
Definition: Identity.h:61
Aws::IoTSiteWise::Model::Identity
Definition: Identity.h:40
IAMRoleIdentity.h
Aws::IoTSiteWise::Model::Identity::UserHasBeenSet
bool UserHasBeenSet() const
Definition: Identity.h:56