AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttachedManagedPolicies(const Aws::Vector<AwsIamAttachedManagedPolicy>& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = value; }
51 inline void SetAttachedManagedPolicies(Aws::Vector<AwsIamAttachedManagedPolicy>&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = std::move(value); }
54 inline AwsIamUserDetails& AddAttachedManagedPolicies(const AwsIamAttachedManagedPolicy& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(value); return *this; }
55 inline AwsIamUserDetails& AddAttachedManagedPolicies(AwsIamAttachedManagedPolicy&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(std::move(value)); return *this; }
57
59
76 inline const Aws::String& GetCreateDate() const{ return m_createDate; }
77 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
78 inline void SetCreateDate(const Aws::String& value) { m_createDateHasBeenSet = true; m_createDate = value; }
79 inline void SetCreateDate(Aws::String&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
80 inline void SetCreateDate(const char* value) { m_createDateHasBeenSet = true; m_createDate.assign(value); }
81 inline AwsIamUserDetails& WithCreateDate(const Aws::String& value) { SetCreateDate(value); return *this;}
82 inline AwsIamUserDetails& WithCreateDate(Aws::String&& value) { SetCreateDate(std::move(value)); return *this;}
83 inline AwsIamUserDetails& WithCreateDate(const char* value) { SetCreateDate(value); return *this;}
85
87
90 inline const Aws::Vector<Aws::String>& GetGroupList() const{ return m_groupList; }
91 inline bool GroupListHasBeenSet() const { return m_groupListHasBeenSet; }
92 inline void SetGroupList(const Aws::Vector<Aws::String>& value) { m_groupListHasBeenSet = true; m_groupList = value; }
93 inline void SetGroupList(Aws::Vector<Aws::String>&& value) { m_groupListHasBeenSet = true; m_groupList = std::move(value); }
94 inline AwsIamUserDetails& WithGroupList(const Aws::Vector<Aws::String>& value) { SetGroupList(value); return *this;}
95 inline AwsIamUserDetails& WithGroupList(Aws::Vector<Aws::String>&& value) { SetGroupList(std::move(value)); return *this;}
96 inline AwsIamUserDetails& AddGroupList(const Aws::String& value) { m_groupListHasBeenSet = true; m_groupList.push_back(value); return *this; }
97 inline AwsIamUserDetails& AddGroupList(Aws::String&& value) { m_groupListHasBeenSet = true; m_groupList.push_back(std::move(value)); return *this; }
98 inline AwsIamUserDetails& AddGroupList(const char* value) { m_groupListHasBeenSet = true; m_groupList.push_back(value); return *this; }
100
102
105 inline const Aws::String& GetPath() const{ return m_path; }
106 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
107 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
108 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
109 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
110 inline AwsIamUserDetails& WithPath(const Aws::String& value) { SetPath(value); return *this;}
111 inline AwsIamUserDetails& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
112 inline AwsIamUserDetails& WithPath(const char* value) { SetPath(value); return *this;}
114
116
119 inline const AwsIamPermissionsBoundary& GetPermissionsBoundary() const{ return m_permissionsBoundary; }
120 inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
121 inline void SetPermissionsBoundary(const AwsIamPermissionsBoundary& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; }
122 inline void SetPermissionsBoundary(AwsIamPermissionsBoundary&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); }
126
128
131 inline const Aws::String& GetUserId() const{ return m_userId; }
132 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
133 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
134 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
135 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
136 inline AwsIamUserDetails& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
137 inline AwsIamUserDetails& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
138 inline AwsIamUserDetails& WithUserId(const char* value) { SetUserId(value); return *this;}
140
142
145 inline const Aws::String& GetUserName() const{ return m_userName; }
146 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
147 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
148 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
149 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
150 inline AwsIamUserDetails& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
151 inline AwsIamUserDetails& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
152 inline AwsIamUserDetails& WithUserName(const char* value) { SetUserName(value); return *this;}
154
156
159 inline const Aws::Vector<AwsIamUserPolicy>& GetUserPolicyList() const{ return m_userPolicyList; }
160 inline bool UserPolicyListHasBeenSet() const { return m_userPolicyListHasBeenSet; }
161 inline void SetUserPolicyList(const Aws::Vector<AwsIamUserPolicy>& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList = value; }
162 inline void SetUserPolicyList(Aws::Vector<AwsIamUserPolicy>&& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList = std::move(value); }
164 inline AwsIamUserDetails& WithUserPolicyList(Aws::Vector<AwsIamUserPolicy>&& value) { SetUserPolicyList(std::move(value)); return *this;}
165 inline AwsIamUserDetails& AddUserPolicyList(const AwsIamUserPolicy& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList.push_back(value); return *this; }
166 inline AwsIamUserDetails& AddUserPolicyList(AwsIamUserPolicy&& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList.push_back(std::move(value)); return *this; }
168 private:
169
170 Aws::Vector<AwsIamAttachedManagedPolicy> m_attachedManagedPolicies;
171 bool m_attachedManagedPoliciesHasBeenSet = false;
172
173 Aws::String m_createDate;
174 bool m_createDateHasBeenSet = false;
175
176 Aws::Vector<Aws::String> m_groupList;
177 bool m_groupListHasBeenSet = false;
178
179 Aws::String m_path;
180 bool m_pathHasBeenSet = false;
181
182 AwsIamPermissionsBoundary m_permissionsBoundary;
183 bool m_permissionsBoundaryHasBeenSet = false;
184
185 Aws::String m_userId;
186 bool m_userIdHasBeenSet = false;
187
188 Aws::String m_userName;
189 bool m_userNameHasBeenSet = false;
190
191 Aws::Vector<AwsIamUserPolicy> m_userPolicyList;
192 bool m_userPolicyListHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace SecurityHub
197} // namespace Aws
AwsIamUserDetails & WithUserId(const Aws::String &value)
AwsIamUserDetails & WithCreateDate(const char *value)
void SetUserName(const Aws::String &value)
AWS_SECURITYHUB_API AwsIamUserDetails(Aws::Utils::Json::JsonView jsonValue)
AwsIamUserDetails & WithUserId(Aws::String &&value)
void SetUserPolicyList(Aws::Vector< AwsIamUserPolicy > &&value)
void SetAttachedManagedPolicies(Aws::Vector< AwsIamAttachedManagedPolicy > &&value)
AwsIamUserDetails & WithUserName(Aws::String &&value)
AwsIamUserDetails & WithPath(Aws::String &&value)
const Aws::Vector< AwsIamAttachedManagedPolicy > & GetAttachedManagedPolicies() const
AwsIamUserDetails & WithPath(const Aws::String &value)
const Aws::Vector< AwsIamUserPolicy > & GetUserPolicyList() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsIamUserDetails & AddAttachedManagedPolicies(const AwsIamAttachedManagedPolicy &value)
AwsIamUserDetails & AddGroupList(const char *value)
AWS_SECURITYHUB_API AwsIamUserDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsIamUserDetails & WithAttachedManagedPolicies(Aws::Vector< AwsIamAttachedManagedPolicy > &&value)
AwsIamUserDetails & WithUserName(const Aws::String &value)
AwsIamUserDetails & WithGroupList(Aws::Vector< Aws::String > &&value)
AwsIamUserDetails & WithUserId(const char *value)
AwsIamUserDetails & WithPermissionsBoundary(const AwsIamPermissionsBoundary &value)
AwsIamUserDetails & WithPermissionsBoundary(AwsIamPermissionsBoundary &&value)
AwsIamUserDetails & WithAttachedManagedPolicies(const Aws::Vector< AwsIamAttachedManagedPolicy > &value)
void SetPermissionsBoundary(AwsIamPermissionsBoundary &&value)
void SetUserId(const Aws::String &value)
AwsIamUserDetails & WithCreateDate(const Aws::String &value)
AwsIamUserDetails & WithUserPolicyList(const Aws::Vector< AwsIamUserPolicy > &value)
AwsIamUserDetails & WithGroupList(const Aws::Vector< Aws::String > &value)
AwsIamUserDetails & AddAttachedManagedPolicies(AwsIamAttachedManagedPolicy &&value)
void SetUserPolicyList(const Aws::Vector< AwsIamUserPolicy > &value)
AwsIamUserDetails & WithUserName(const char *value)
void SetGroupList(Aws::Vector< Aws::String > &&value)
AwsIamUserDetails & AddUserPolicyList(const AwsIamUserPolicy &value)
void SetCreateDate(const Aws::String &value)
const AwsIamPermissionsBoundary & GetPermissionsBoundary() const
AwsIamUserDetails & AddGroupList(const Aws::String &value)
AwsIamUserDetails & WithCreateDate(Aws::String &&value)
void SetGroupList(const Aws::Vector< Aws::String > &value)
void SetPermissionsBoundary(const AwsIamPermissionsBoundary &value)
AwsIamUserDetails & AddGroupList(Aws::String &&value)
AwsIamUserDetails & WithPath(const char *value)
void SetAttachedManagedPolicies(const Aws::Vector< AwsIamAttachedManagedPolicy > &value)
AwsIamUserDetails & AddUserPolicyList(AwsIamUserPolicy &&value)
AwsIamUserDetails & WithUserPolicyList(Aws::Vector< AwsIamUserPolicy > &&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