/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about an IAM user, including all the user's policies and
* all the IAM groups the user is in. This data type is used as a response
* element in the GetAccountAuthorizationDetails operation.See
* Also:
AWS API
* Reference
The path to the user. For more information about paths, see IAM * identifiers in the IAM User Guide.
*/ inline const Aws::String& GetPath() const{ return m_path; } /** *The path to the user. For more information about paths, see IAM * identifiers in the IAM User Guide.
*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *The path to the user. For more information about paths, see IAM * identifiers in the IAM User Guide.
*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *The path to the user. For more information about paths, see IAM * identifiers in the IAM User Guide.
*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *The path to the user. For more information about paths, see IAM * identifiers in the IAM User Guide.
*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *The path to the user. For more information about paths, see IAM * identifiers in the IAM User Guide.
*/ inline UserDetail& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *The path to the user. For more information about paths, see IAM * identifiers in the IAM User Guide.
*/ inline UserDetail& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *The path to the user. For more information about paths, see IAM * identifiers in the IAM User Guide.
*/ inline UserDetail& WithPath(const char* value) { SetPath(value); return *this;} /** *The friendly name identifying the user.
*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *The friendly name identifying the user.
*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *The friendly name identifying the user.
*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *The friendly name identifying the user.
*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *The friendly name identifying the user.
*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *The friendly name identifying the user.
*/ inline UserDetail& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *The friendly name identifying the user.
*/ inline UserDetail& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *The friendly name identifying the user.
*/ inline UserDetail& WithUserName(const char* value) { SetUserName(value); return *this;} /** *The stable and unique string identifying the user. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *The stable and unique string identifying the user. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *The stable and unique string identifying the user. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *The stable and unique string identifying the user. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *The stable and unique string identifying the user. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *The stable and unique string identifying the user. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline UserDetail& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *The stable and unique string identifying the user. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline UserDetail& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *The stable and unique string identifying the user. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline UserDetail& WithUserId(const char* value) { SetUserId(value); return *this;} inline const Aws::String& GetArn() const{ return m_arn; } inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } inline UserDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;} inline UserDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} inline UserDetail& WithArn(const char* value) { SetArn(value); return *this;} /** *The date and time, in ISO 8601 * date-time format, when the user was created.
*/ inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; } /** *The date and time, in ISO 8601 * date-time format, when the user was created.
*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *The date and time, in ISO 8601 * date-time format, when the user was created.
*/ inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *The date and time, in ISO 8601 * date-time format, when the user was created.
*/ inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *The date and time, in ISO 8601 * date-time format, when the user was created.
*/ inline UserDetail& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;} /** *The date and time, in ISO 8601 * date-time format, when the user was created.
*/ inline UserDetail& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;} /** *A list of the inline policies embedded in the user.
*/ inline const Aws::VectorA list of the inline policies embedded in the user.
*/ inline bool UserPolicyListHasBeenSet() const { return m_userPolicyListHasBeenSet; } /** *A list of the inline policies embedded in the user.
*/ inline void SetUserPolicyList(const Aws::VectorA list of the inline policies embedded in the user.
*/ inline void SetUserPolicyList(Aws::VectorA list of the inline policies embedded in the user.
*/ inline UserDetail& WithUserPolicyList(const Aws::VectorA list of the inline policies embedded in the user.
*/ inline UserDetail& WithUserPolicyList(Aws::VectorA list of the inline policies embedded in the user.
*/ inline UserDetail& AddUserPolicyList(const PolicyDetail& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList.push_back(value); return *this; } /** *A list of the inline policies embedded in the user.
*/ inline UserDetail& AddUserPolicyList(PolicyDetail&& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList.push_back(std::move(value)); return *this; } /** *A list of IAM groups that the user is in.
*/ inline const Aws::VectorA list of IAM groups that the user is in.
*/ inline bool GroupListHasBeenSet() const { return m_groupListHasBeenSet; } /** *A list of IAM groups that the user is in.
*/ inline void SetGroupList(const Aws::VectorA list of IAM groups that the user is in.
*/ inline void SetGroupList(Aws::VectorA list of IAM groups that the user is in.
*/ inline UserDetail& WithGroupList(const Aws::VectorA list of IAM groups that the user is in.
*/ inline UserDetail& WithGroupList(Aws::VectorA list of IAM groups that the user is in.
*/ inline UserDetail& AddGroupList(const Aws::String& value) { m_groupListHasBeenSet = true; m_groupList.push_back(value); return *this; } /** *A list of IAM groups that the user is in.
*/ inline UserDetail& AddGroupList(Aws::String&& value) { m_groupListHasBeenSet = true; m_groupList.push_back(std::move(value)); return *this; } /** *A list of IAM groups that the user is in.
*/ inline UserDetail& AddGroupList(const char* value) { m_groupListHasBeenSet = true; m_groupList.push_back(value); return *this; } /** *A list of the managed policies attached to the user.
*/ inline const Aws::VectorA list of the managed policies attached to the user.
*/ inline bool AttachedManagedPoliciesHasBeenSet() const { return m_attachedManagedPoliciesHasBeenSet; } /** *A list of the managed policies attached to the user.
*/ inline void SetAttachedManagedPolicies(const Aws::VectorA list of the managed policies attached to the user.
*/ inline void SetAttachedManagedPolicies(Aws::VectorA list of the managed policies attached to the user.
*/ inline UserDetail& WithAttachedManagedPolicies(const Aws::VectorA list of the managed policies attached to the user.
*/ inline UserDetail& WithAttachedManagedPolicies(Aws::VectorA list of the managed policies attached to the user.
*/ inline UserDetail& AddAttachedManagedPolicies(const AttachedPolicy& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(value); return *this; } /** *A list of the managed policies attached to the user.
*/ inline UserDetail& AddAttachedManagedPolicies(AttachedPolicy&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(std::move(value)); return *this; } /** *The ARN of the policy used to set the permissions boundary for the user.
*For more information about permissions boundaries, see Permissions * boundaries for IAM identities in the IAM User Guide.
*/ inline const AttachedPermissionsBoundary& GetPermissionsBoundary() const{ return m_permissionsBoundary; } /** *The ARN of the policy used to set the permissions boundary for the user.
*For more information about permissions boundaries, see Permissions * boundaries for IAM identities in the IAM User Guide.
*/ inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; } /** *The ARN of the policy used to set the permissions boundary for the user.
*For more information about permissions boundaries, see Permissions * boundaries for IAM identities in the IAM User Guide.
*/ inline void SetPermissionsBoundary(const AttachedPermissionsBoundary& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; } /** *The ARN of the policy used to set the permissions boundary for the user.
*For more information about permissions boundaries, see Permissions * boundaries for IAM identities in the IAM User Guide.
*/ inline void SetPermissionsBoundary(AttachedPermissionsBoundary&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); } /** *The ARN of the policy used to set the permissions boundary for the user.
*For more information about permissions boundaries, see Permissions * boundaries for IAM identities in the IAM User Guide.
*/ inline UserDetail& WithPermissionsBoundary(const AttachedPermissionsBoundary& value) { SetPermissionsBoundary(value); return *this;} /** *The ARN of the policy used to set the permissions boundary for the user.
*For more information about permissions boundaries, see Permissions * boundaries for IAM identities in the IAM User Guide.
*/ inline UserDetail& WithPermissionsBoundary(AttachedPermissionsBoundary&& value) { SetPermissionsBoundary(std::move(value)); return *this;} /** *A list of tags that are associated with the user. For more information about * tagging, see Tagging IAM * resources in the IAM User Guide.
*/ inline const Aws::VectorA list of tags that are associated with the user. For more information about * tagging, see Tagging IAM * resources in the IAM User Guide.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *A list of tags that are associated with the user. For more information about * tagging, see Tagging IAM * resources in the IAM User Guide.
*/ inline void SetTags(const Aws::VectorA list of tags that are associated with the user. For more information about * tagging, see Tagging IAM * resources in the IAM User Guide.
*/ inline void SetTags(Aws::VectorA list of tags that are associated with the user. For more information about * tagging, see Tagging IAM * resources in the IAM User Guide.
*/ inline UserDetail& WithTags(const Aws::VectorA list of tags that are associated with the user. For more information about * tagging, see Tagging IAM * resources in the IAM User Guide.
*/ inline UserDetail& WithTags(Aws::VectorA list of tags that are associated with the user. For more information about * tagging, see Tagging IAM * resources in the IAM User Guide.
*/ inline UserDetail& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *A list of tags that are associated with the user. For more information about * tagging, see Tagging IAM * resources in the IAM User Guide.
*/ inline UserDetail& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_path; bool m_pathHasBeenSet = false; Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createDate; bool m_createDateHasBeenSet = false; Aws::Vector