AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsIamUserDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/AwsIamPermissionsBoundary.h>
11#include <aws/securityhub/model/AwsIamAttachedManagedPolicy.h>
12#include <aws/securityhub/model/AwsIamUserPolicy.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SECURITYHUB_API AwsIamUserDetails() = default;
39 AWS_SECURITYHUB_API AwsIamUserDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<AwsIamAttachedManagedPolicy>& GetAttachedManagedPolicies() const { return m_attachedManagedPolicies; }
49 inline bool AttachedManagedPoliciesHasBeenSet() const { return m_attachedManagedPoliciesHasBeenSet; }
50 template<typename AttachedManagedPoliciesT = Aws::Vector<AwsIamAttachedManagedPolicy>>
51 void SetAttachedManagedPolicies(AttachedManagedPoliciesT&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = std::forward<AttachedManagedPoliciesT>(value); }
52 template<typename AttachedManagedPoliciesT = Aws::Vector<AwsIamAttachedManagedPolicy>>
53 AwsIamUserDetails& WithAttachedManagedPolicies(AttachedManagedPoliciesT&& value) { SetAttachedManagedPolicies(std::forward<AttachedManagedPoliciesT>(value)); return *this;}
54 template<typename AttachedManagedPoliciesT = AwsIamAttachedManagedPolicy>
55 AwsIamUserDetails& AddAttachedManagedPolicies(AttachedManagedPoliciesT&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.emplace_back(std::forward<AttachedManagedPoliciesT>(value)); return *this; }
57
59
64 inline const Aws::String& GetCreateDate() const { return m_createDate; }
65 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
66 template<typename CreateDateT = Aws::String>
67 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
68 template<typename CreateDateT = Aws::String>
69 AwsIamUserDetails& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
71
73
76 inline const Aws::Vector<Aws::String>& GetGroupList() const { return m_groupList; }
77 inline bool GroupListHasBeenSet() const { return m_groupListHasBeenSet; }
78 template<typename GroupListT = Aws::Vector<Aws::String>>
79 void SetGroupList(GroupListT&& value) { m_groupListHasBeenSet = true; m_groupList = std::forward<GroupListT>(value); }
80 template<typename GroupListT = Aws::Vector<Aws::String>>
81 AwsIamUserDetails& WithGroupList(GroupListT&& value) { SetGroupList(std::forward<GroupListT>(value)); return *this;}
82 template<typename GroupListT = Aws::String>
83 AwsIamUserDetails& AddGroupList(GroupListT&& value) { m_groupListHasBeenSet = true; m_groupList.emplace_back(std::forward<GroupListT>(value)); return *this; }
85
87
90 inline const Aws::String& GetPath() const { return m_path; }
91 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
92 template<typename PathT = Aws::String>
93 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
94 template<typename PathT = Aws::String>
95 AwsIamUserDetails& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
97
99
102 inline const AwsIamPermissionsBoundary& GetPermissionsBoundary() const { return m_permissionsBoundary; }
103 inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
104 template<typename PermissionsBoundaryT = AwsIamPermissionsBoundary>
105 void SetPermissionsBoundary(PermissionsBoundaryT&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::forward<PermissionsBoundaryT>(value); }
106 template<typename PermissionsBoundaryT = AwsIamPermissionsBoundary>
107 AwsIamUserDetails& WithPermissionsBoundary(PermissionsBoundaryT&& value) { SetPermissionsBoundary(std::forward<PermissionsBoundaryT>(value)); return *this;}
109
111
114 inline const Aws::String& GetUserId() const { return m_userId; }
115 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
116 template<typename UserIdT = Aws::String>
117 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
118 template<typename UserIdT = Aws::String>
119 AwsIamUserDetails& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
121
123
126 inline const Aws::String& GetUserName() const { return m_userName; }
127 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
128 template<typename UserNameT = Aws::String>
129 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
130 template<typename UserNameT = Aws::String>
131 AwsIamUserDetails& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
133
135
138 inline const Aws::Vector<AwsIamUserPolicy>& GetUserPolicyList() const { return m_userPolicyList; }
139 inline bool UserPolicyListHasBeenSet() const { return m_userPolicyListHasBeenSet; }
140 template<typename UserPolicyListT = Aws::Vector<AwsIamUserPolicy>>
141 void SetUserPolicyList(UserPolicyListT&& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList = std::forward<UserPolicyListT>(value); }
142 template<typename UserPolicyListT = Aws::Vector<AwsIamUserPolicy>>
143 AwsIamUserDetails& WithUserPolicyList(UserPolicyListT&& value) { SetUserPolicyList(std::forward<UserPolicyListT>(value)); return *this;}
144 template<typename UserPolicyListT = AwsIamUserPolicy>
145 AwsIamUserDetails& AddUserPolicyList(UserPolicyListT&& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList.emplace_back(std::forward<UserPolicyListT>(value)); return *this; }
147 private:
148
149 Aws::Vector<AwsIamAttachedManagedPolicy> m_attachedManagedPolicies;
150 bool m_attachedManagedPoliciesHasBeenSet = false;
151
152 Aws::String m_createDate;
153 bool m_createDateHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_groupList;
156 bool m_groupListHasBeenSet = false;
157
158 Aws::String m_path;
159 bool m_pathHasBeenSet = false;
160
161 AwsIamPermissionsBoundary m_permissionsBoundary;
162 bool m_permissionsBoundaryHasBeenSet = false;
163
164 Aws::String m_userId;
165 bool m_userIdHasBeenSet = false;
166
167 Aws::String m_userName;
168 bool m_userNameHasBeenSet = false;
169
170 Aws::Vector<AwsIamUserPolicy> m_userPolicyList;
171 bool m_userPolicyListHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace SecurityHub
176} // namespace Aws
void SetPermissionsBoundary(PermissionsBoundaryT &&value)
AWS_SECURITYHUB_API AwsIamUserDetails(Aws::Utils::Json::JsonView jsonValue)
AwsIamUserDetails & WithUserName(UserNameT &&value)
AwsIamUserDetails & AddAttachedManagedPolicies(AttachedManagedPoliciesT &&value)
AwsIamUserDetails & WithGroupList(GroupListT &&value)
AwsIamUserDetails & WithCreateDate(CreateDateT &&value)
void SetUserPolicyList(UserPolicyListT &&value)
const Aws::Vector< AwsIamAttachedManagedPolicy > & GetAttachedManagedPolicies() const
const Aws::Vector< AwsIamUserPolicy > & GetUserPolicyList() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsIamUserDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsIamUserDetails & WithAttachedManagedPolicies(AttachedManagedPoliciesT &&value)
AwsIamUserDetails & WithPath(PathT &&value)
AwsIamUserDetails & WithUserPolicyList(UserPolicyListT &&value)
AwsIamUserDetails & AddUserPolicyList(UserPolicyListT &&value)
void SetAttachedManagedPolicies(AttachedManagedPoliciesT &&value)
AWS_SECURITYHUB_API AwsIamUserDetails()=default
const AwsIamPermissionsBoundary & GetPermissionsBoundary() const
AwsIamUserDetails & WithUserId(UserIdT &&value)
AwsIamUserDetails & AddGroupList(GroupListT &&value)
AwsIamUserDetails & WithPermissionsBoundary(PermissionsBoundaryT &&value)
const Aws::Vector< Aws::String > & GetGroupList() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue