AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Identity.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/UserIdentity.h>
9#include <aws/iotsitewise/model/GroupIdentity.h>
10#include <aws/iotsitewise/model/IAMUserIdentity.h>
11#include <aws/iotsitewise/model/IAMRoleIdentity.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTSiteWise
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_IOTSITEWISE_API Identity();
43 AWS_IOTSITEWISE_API Identity(Aws::Utils::Json::JsonView jsonValue);
44 AWS_IOTSITEWISE_API Identity& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const UserIdentity& GetUser() const{ return m_user; }
53 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
54 inline void SetUser(const UserIdentity& value) { m_userHasBeenSet = true; m_user = value; }
55 inline void SetUser(UserIdentity&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
56 inline Identity& WithUser(const UserIdentity& value) { SetUser(value); return *this;}
57 inline Identity& WithUser(UserIdentity&& value) { SetUser(std::move(value)); return *this;}
59
61
64 inline const GroupIdentity& GetGroup() const{ return m_group; }
65 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
66 inline void SetGroup(const GroupIdentity& value) { m_groupHasBeenSet = true; m_group = value; }
67 inline void SetGroup(GroupIdentity&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
68 inline Identity& WithGroup(const GroupIdentity& value) { SetGroup(value); return *this;}
69 inline Identity& WithGroup(GroupIdentity&& value) { SetGroup(std::move(value)); return *this;}
71
73
76 inline const IAMUserIdentity& GetIamUser() const{ return m_iamUser; }
77 inline bool IamUserHasBeenSet() const { return m_iamUserHasBeenSet; }
78 inline void SetIamUser(const IAMUserIdentity& value) { m_iamUserHasBeenSet = true; m_iamUser = value; }
79 inline void SetIamUser(IAMUserIdentity&& value) { m_iamUserHasBeenSet = true; m_iamUser = std::move(value); }
80 inline Identity& WithIamUser(const IAMUserIdentity& value) { SetIamUser(value); return *this;}
81 inline Identity& WithIamUser(IAMUserIdentity&& value) { SetIamUser(std::move(value)); return *this;}
83
85
88 inline const IAMRoleIdentity& GetIamRole() const{ return m_iamRole; }
89 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
90 inline void SetIamRole(const IAMRoleIdentity& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
91 inline void SetIamRole(IAMRoleIdentity&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
92 inline Identity& WithIamRole(const IAMRoleIdentity& value) { SetIamRole(value); return *this;}
93 inline Identity& WithIamRole(IAMRoleIdentity&& value) { SetIamRole(std::move(value)); return *this;}
95 private:
96
97 UserIdentity m_user;
98 bool m_userHasBeenSet = false;
99
100 GroupIdentity m_group;
101 bool m_groupHasBeenSet = false;
102
103 IAMUserIdentity m_iamUser;
104 bool m_iamUserHasBeenSet = false;
105
106 IAMRoleIdentity m_iamRole;
107 bool m_iamRoleHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace IoTSiteWise
112} // namespace Aws
const IAMUserIdentity & GetIamUser() const
Definition Identity.h:76
void SetUser(UserIdentity &&value)
Definition Identity.h:55
void SetIamUser(const IAMUserIdentity &value)
Definition Identity.h:78
const GroupIdentity & GetGroup() const
Definition Identity.h:64
Identity & WithUser(const UserIdentity &value)
Definition Identity.h:56
void SetGroup(const GroupIdentity &value)
Definition Identity.h:66
const IAMRoleIdentity & GetIamRole() const
Definition Identity.h:88
Identity & WithGroup(GroupIdentity &&value)
Definition Identity.h:69
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
Identity & WithIamRole(IAMRoleIdentity &&value)
Definition Identity.h:93
AWS_IOTSITEWISE_API Identity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIamUser(IAMUserIdentity &&value)
Definition Identity.h:79
void SetIamRole(const IAMRoleIdentity &value)
Definition Identity.h:90
const UserIdentity & GetUser() const
Definition Identity.h:52
void SetGroup(GroupIdentity &&value)
Definition Identity.h:67
Identity & WithIamUser(IAMUserIdentity &&value)
Definition Identity.h:81
AWS_IOTSITEWISE_API Identity()
void SetUser(const UserIdentity &value)
Definition Identity.h:54
Identity & WithIamRole(const IAMRoleIdentity &value)
Definition Identity.h:92
Identity & WithIamUser(const IAMUserIdentity &value)
Definition Identity.h:80
Identity & WithGroup(const GroupIdentity &value)
Definition Identity.h:68
void SetIamRole(IAMRoleIdentity &&value)
Definition Identity.h:91
AWS_IOTSITEWISE_API Identity(Aws::Utils::Json::JsonView jsonValue)
Identity & WithUser(UserIdentity &&value)
Definition Identity.h:57
Aws::Utils::Json::JsonValue JsonValue