/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Information about an IAM user.

See Also:

AWS * API Reference

*/ class AwsIamUserDetails { public: AWS_SECURITYHUB_API AwsIamUserDetails(); AWS_SECURITYHUB_API AwsIamUserDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsIamUserDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A list of the managed policies that are attached to the user.

*/ inline const Aws::Vector& GetAttachedManagedPolicies() const{ return m_attachedManagedPolicies; } /** *

A list of the managed policies that are attached to the user.

*/ inline bool AttachedManagedPoliciesHasBeenSet() const { return m_attachedManagedPoliciesHasBeenSet; } /** *

A list of the managed policies that are attached to the user.

*/ inline void SetAttachedManagedPolicies(const Aws::Vector& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = value; } /** *

A list of the managed policies that are attached to the user.

*/ inline void SetAttachedManagedPolicies(Aws::Vector&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = std::move(value); } /** *

A list of the managed policies that are attached to the user.

*/ inline AwsIamUserDetails& WithAttachedManagedPolicies(const Aws::Vector& value) { SetAttachedManagedPolicies(value); return *this;} /** *

A list of the managed policies that are attached to the user.

*/ inline AwsIamUserDetails& WithAttachedManagedPolicies(Aws::Vector&& value) { SetAttachedManagedPolicies(std::move(value)); return *this;} /** *

A list of the managed policies that are attached to the user.

*/ inline AwsIamUserDetails& AddAttachedManagedPolicies(const AwsIamAttachedManagedPolicy& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(value); return *this; } /** *

A list of the managed policies that are attached to the user.

*/ inline AwsIamUserDetails& AddAttachedManagedPolicies(AwsIamAttachedManagedPolicy&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(std::move(value)); return *this; } /** *

Indicates when the user was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline const Aws::String& GetCreateDate() const{ return m_createDate; } /** *

Indicates when the user was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *

Indicates when the user was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreateDate(const Aws::String& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *

Indicates when the user was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreateDate(Aws::String&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *

Indicates when the user was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreateDate(const char* value) { m_createDateHasBeenSet = true; m_createDate.assign(value); } /** *

Indicates when the user was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamUserDetails& WithCreateDate(const Aws::String& value) { SetCreateDate(value); return *this;} /** *

Indicates when the user was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamUserDetails& WithCreateDate(Aws::String&& value) { SetCreateDate(std::move(value)); return *this;} /** *

Indicates when the user was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamUserDetails& WithCreateDate(const char* value) { SetCreateDate(value); return *this;} /** *

A list of IAM groups that the user belongs to.

*/ inline const Aws::Vector& GetGroupList() const{ return m_groupList; } /** *

A list of IAM groups that the user belongs to.

*/ inline bool GroupListHasBeenSet() const { return m_groupListHasBeenSet; } /** *

A list of IAM groups that the user belongs to.

*/ inline void SetGroupList(const Aws::Vector& value) { m_groupListHasBeenSet = true; m_groupList = value; } /** *

A list of IAM groups that the user belongs to.

*/ inline void SetGroupList(Aws::Vector&& value) { m_groupListHasBeenSet = true; m_groupList = std::move(value); } /** *

A list of IAM groups that the user belongs to.

*/ inline AwsIamUserDetails& WithGroupList(const Aws::Vector& value) { SetGroupList(value); return *this;} /** *

A list of IAM groups that the user belongs to.

*/ inline AwsIamUserDetails& WithGroupList(Aws::Vector&& value) { SetGroupList(std::move(value)); return *this;} /** *

A list of IAM groups that the user belongs to.

*/ inline AwsIamUserDetails& AddGroupList(const Aws::String& value) { m_groupListHasBeenSet = true; m_groupList.push_back(value); return *this; } /** *

A list of IAM groups that the user belongs to.

*/ inline AwsIamUserDetails& AddGroupList(Aws::String&& value) { m_groupListHasBeenSet = true; m_groupList.push_back(std::move(value)); return *this; } /** *

A list of IAM groups that the user belongs to.

*/ inline AwsIamUserDetails& AddGroupList(const char* value) { m_groupListHasBeenSet = true; m_groupList.push_back(value); return *this; } /** *

The path to the user.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

The path to the user.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

The path to the user.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

The path to the user.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

The path to the user.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

The path to the user.

*/ inline AwsIamUserDetails& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

The path to the user.

*/ inline AwsIamUserDetails& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

The path to the user.

*/ inline AwsIamUserDetails& WithPath(const char* value) { SetPath(value); return *this;} /** *

The permissions boundary for the user.

*/ inline const AwsIamPermissionsBoundary& GetPermissionsBoundary() const{ return m_permissionsBoundary; } /** *

The permissions boundary for the user.

*/ inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; } /** *

The permissions boundary for the user.

*/ inline void SetPermissionsBoundary(const AwsIamPermissionsBoundary& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; } /** *

The permissions boundary for the user.

*/ inline void SetPermissionsBoundary(AwsIamPermissionsBoundary&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); } /** *

The permissions boundary for the user.

*/ inline AwsIamUserDetails& WithPermissionsBoundary(const AwsIamPermissionsBoundary& value) { SetPermissionsBoundary(value); return *this;} /** *

The permissions boundary for the user.

*/ inline AwsIamUserDetails& WithPermissionsBoundary(AwsIamPermissionsBoundary&& value) { SetPermissionsBoundary(std::move(value)); return *this;} /** *

The unique identifier for the user.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The unique identifier for the user.

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

The unique identifier for the user.

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

The unique identifier for the user.

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

The unique identifier for the user.

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

The unique identifier for the user.

*/ inline AwsIamUserDetails& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The unique identifier for the user.

*/ inline AwsIamUserDetails& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The unique identifier for the user.

*/ inline AwsIamUserDetails& WithUserId(const char* value) { SetUserId(value); return *this;} /** *

The name of the user.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

The name of the user.

*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *

The name of the user.

*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *

The name of the user.

*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *

The name of the user.

*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *

The name of the user.

*/ inline AwsIamUserDetails& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

The name of the user.

*/ inline AwsIamUserDetails& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

The name of the user.

*/ inline AwsIamUserDetails& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

The list of inline policies that are embedded in the user.

*/ inline const Aws::Vector& GetUserPolicyList() const{ return m_userPolicyList; } /** *

The list of inline policies that are embedded in the user.

*/ inline bool UserPolicyListHasBeenSet() const { return m_userPolicyListHasBeenSet; } /** *

The list of inline policies that are embedded in the user.

*/ inline void SetUserPolicyList(const Aws::Vector& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList = value; } /** *

The list of inline policies that are embedded in the user.

*/ inline void SetUserPolicyList(Aws::Vector&& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList = std::move(value); } /** *

The list of inline policies that are embedded in the user.

*/ inline AwsIamUserDetails& WithUserPolicyList(const Aws::Vector& value) { SetUserPolicyList(value); return *this;} /** *

The list of inline policies that are embedded in the user.

*/ inline AwsIamUserDetails& WithUserPolicyList(Aws::Vector&& value) { SetUserPolicyList(std::move(value)); return *this;} /** *

The list of inline policies that are embedded in the user.

*/ inline AwsIamUserDetails& AddUserPolicyList(const AwsIamUserPolicy& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList.push_back(value); return *this; } /** *

The list of inline policies that are embedded in the user.

*/ inline AwsIamUserDetails& AddUserPolicyList(AwsIamUserPolicy&& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList.push_back(std::move(value)); return *this; } private: Aws::Vector m_attachedManagedPolicies; bool m_attachedManagedPoliciesHasBeenSet = false; Aws::String m_createDate; bool m_createDateHasBeenSet = false; Aws::Vector m_groupList; bool m_groupListHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; AwsIamPermissionsBoundary m_permissionsBoundary; bool m_permissionsBoundaryHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::Vector m_userPolicyList; bool m_userPolicyListHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws