AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserIdentity.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/AssumedRole.h>
9#include <aws/macie2/model/AwsAccount.h>
10#include <aws/macie2/model/AwsService.h>
11#include <aws/macie2/model/FederatedUser.h>
12#include <aws/macie2/model/IamUser.h>
13#include <aws/macie2/model/UserIdentityRoot.h>
14#include <aws/macie2/model/UserIdentityType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Macie2
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_MACIE2_API UserIdentity();
42 AWS_MACIE2_API UserIdentity(Aws::Utils::Json::JsonView jsonValue);
44 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
53 inline const AssumedRole& GetAssumedRole() const{ return m_assumedRole; }
54 inline bool AssumedRoleHasBeenSet() const { return m_assumedRoleHasBeenSet; }
55 inline void SetAssumedRole(const AssumedRole& value) { m_assumedRoleHasBeenSet = true; m_assumedRole = value; }
56 inline void SetAssumedRole(AssumedRole&& value) { m_assumedRoleHasBeenSet = true; m_assumedRole = std::move(value); }
57 inline UserIdentity& WithAssumedRole(const AssumedRole& value) { SetAssumedRole(value); return *this;}
58 inline UserIdentity& WithAssumedRole(AssumedRole&& value) { SetAssumedRole(std::move(value)); return *this;}
60
62
66 inline const AwsAccount& GetAwsAccount() const{ return m_awsAccount; }
67 inline bool AwsAccountHasBeenSet() const { return m_awsAccountHasBeenSet; }
68 inline void SetAwsAccount(const AwsAccount& value) { m_awsAccountHasBeenSet = true; m_awsAccount = value; }
69 inline void SetAwsAccount(AwsAccount&& value) { m_awsAccountHasBeenSet = true; m_awsAccount = std::move(value); }
70 inline UserIdentity& WithAwsAccount(const AwsAccount& value) { SetAwsAccount(value); return *this;}
71 inline UserIdentity& WithAwsAccount(AwsAccount&& value) { SetAwsAccount(std::move(value)); return *this;}
73
75
79 inline const AwsService& GetAwsService() const{ return m_awsService; }
80 inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
81 inline void SetAwsService(const AwsService& value) { m_awsServiceHasBeenSet = true; m_awsService = value; }
82 inline void SetAwsService(AwsService&& value) { m_awsServiceHasBeenSet = true; m_awsService = std::move(value); }
83 inline UserIdentity& WithAwsService(const AwsService& value) { SetAwsService(value); return *this;}
84 inline UserIdentity& WithAwsService(AwsService&& value) { SetAwsService(std::move(value)); return *this;}
86
88
94 inline const FederatedUser& GetFederatedUser() const{ return m_federatedUser; }
95 inline bool FederatedUserHasBeenSet() const { return m_federatedUserHasBeenSet; }
96 inline void SetFederatedUser(const FederatedUser& value) { m_federatedUserHasBeenSet = true; m_federatedUser = value; }
97 inline void SetFederatedUser(FederatedUser&& value) { m_federatedUserHasBeenSet = true; m_federatedUser = std::move(value); }
98 inline UserIdentity& WithFederatedUser(const FederatedUser& value) { SetFederatedUser(value); return *this;}
99 inline UserIdentity& WithFederatedUser(FederatedUser&& value) { SetFederatedUser(std::move(value)); return *this;}
101
103
107 inline const IamUser& GetIamUser() const{ return m_iamUser; }
108 inline bool IamUserHasBeenSet() const { return m_iamUserHasBeenSet; }
109 inline void SetIamUser(const IamUser& value) { m_iamUserHasBeenSet = true; m_iamUser = value; }
110 inline void SetIamUser(IamUser&& value) { m_iamUserHasBeenSet = true; m_iamUser = std::move(value); }
111 inline UserIdentity& WithIamUser(const IamUser& value) { SetIamUser(value); return *this;}
112 inline UserIdentity& WithIamUser(IamUser&& value) { SetIamUser(std::move(value)); return *this;}
114
116
120 inline const UserIdentityRoot& GetRoot() const{ return m_root; }
121 inline bool RootHasBeenSet() const { return m_rootHasBeenSet; }
122 inline void SetRoot(const UserIdentityRoot& value) { m_rootHasBeenSet = true; m_root = value; }
123 inline void SetRoot(UserIdentityRoot&& value) { m_rootHasBeenSet = true; m_root = std::move(value); }
124 inline UserIdentity& WithRoot(const UserIdentityRoot& value) { SetRoot(value); return *this;}
125 inline UserIdentity& WithRoot(UserIdentityRoot&& value) { SetRoot(std::move(value)); return *this;}
127
129
132 inline const UserIdentityType& GetType() const{ return m_type; }
133 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
134 inline void SetType(const UserIdentityType& value) { m_typeHasBeenSet = true; m_type = value; }
135 inline void SetType(UserIdentityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
136 inline UserIdentity& WithType(const UserIdentityType& value) { SetType(value); return *this;}
137 inline UserIdentity& WithType(UserIdentityType&& value) { SetType(std::move(value)); return *this;}
139 private:
140
141 AssumedRole m_assumedRole;
142 bool m_assumedRoleHasBeenSet = false;
143
144 AwsAccount m_awsAccount;
145 bool m_awsAccountHasBeenSet = false;
146
147 AwsService m_awsService;
148 bool m_awsServiceHasBeenSet = false;
149
150 FederatedUser m_federatedUser;
151 bool m_federatedUserHasBeenSet = false;
152
153 IamUser m_iamUser;
154 bool m_iamUserHasBeenSet = false;
155
156 UserIdentityRoot m_root;
157 bool m_rootHasBeenSet = false;
158
159 UserIdentityType m_type;
160 bool m_typeHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace Macie2
165} // namespace Aws
const AwsAccount & GetAwsAccount() const
void SetType(const UserIdentityType &value)
void SetAssumedRole(AssumedRole &&value)
void SetRoot(UserIdentityRoot &&value)
void SetIamUser(const IamUser &value)
void SetRoot(const UserIdentityRoot &value)
const UserIdentityType & GetType() const
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
UserIdentity & WithAssumedRole(AssumedRole &&value)
UserIdentity & WithFederatedUser(FederatedUser &&value)
void SetAwsAccount(const AwsAccount &value)
void SetAssumedRole(const AssumedRole &value)
UserIdentity & WithAssumedRole(const AssumedRole &value)
UserIdentity & WithType(const UserIdentityType &value)
AWS_MACIE2_API UserIdentity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAwsAccount(AwsAccount &&value)
void SetType(UserIdentityType &&value)
void SetIamUser(IamUser &&value)
UserIdentity & WithType(UserIdentityType &&value)
void SetFederatedUser(const FederatedUser &value)
void SetFederatedUser(FederatedUser &&value)
void SetAwsService(AwsService &&value)
const FederatedUser & GetFederatedUser() const
const AwsService & GetAwsService() const
const AssumedRole & GetAssumedRole() const
const IamUser & GetIamUser() const
UserIdentity & WithIamUser(const IamUser &value)
UserIdentity & WithIamUser(IamUser &&value)
AWS_MACIE2_API UserIdentity(Aws::Utils::Json::JsonView jsonValue)
UserIdentity & WithRoot(const UserIdentityRoot &value)
UserIdentity & WithAwsAccount(const AwsAccount &value)
UserIdentity & WithFederatedUser(const FederatedUser &value)
UserIdentity & WithAwsService(AwsService &&value)
UserIdentity & WithAwsService(const AwsService &value)
UserIdentity & WithRoot(UserIdentityRoot &&value)
const UserIdentityRoot & GetRoot() const
UserIdentity & WithAwsAccount(AwsAccount &&value)
void SetAwsService(const AwsService &value)
Aws::Utils::Json::JsonValue JsonValue