/**
* 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 entity. This data type is used
* as a response element in the following operations:See Also:
AWS API
* Reference
The path to the user. For more information about paths, see IAM * identifiers in the IAM User Guide.
The ARN of the policy used * to set the permissions boundary for the user.
*/ 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.
The ARN of the policy used * to set the permissions boundary for the user.
*/ 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.
The ARN of the policy used * to set the permissions boundary for the user.
*/ 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.
The ARN of the policy used * to set the permissions boundary for the user.
*/ 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.
The ARN of the policy used * to set the permissions boundary for the user.
*/ 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.
The ARN of the policy used * to set the permissions boundary for the user.
*/ inline User& 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.
The ARN of the policy used * to set the permissions boundary for the user.
*/ inline User& 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.
The ARN of the policy used * to set the permissions boundary for the user.
*/ inline User& 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 User& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *The friendly name identifying the user.
*/ inline User& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *The friendly name identifying the user.
*/ inline User& 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 User& 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 User& 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 User& WithUserId(const char* value) { SetUserId(value); return *this;} /** *The Amazon Resource Name (ARN) that identifies the user. For more information * about ARNs and how to use ARNs in policies, see IAM * Identifiers in the IAM User Guide.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) that identifies the user. For more information * about ARNs and how to use ARNs in policies, see IAM * Identifiers in the IAM User Guide.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) that identifies the user. For more information * about ARNs and how to use ARNs in policies, see IAM * Identifiers in the IAM User Guide.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) that identifies the user. For more information * about ARNs and how to use ARNs in policies, see IAM * Identifiers in the IAM User Guide.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) that identifies the user. For more information * about ARNs and how to use ARNs in policies, see IAM * Identifiers in the IAM User Guide.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) that identifies the user. For more information * about ARNs and how to use ARNs in policies, see IAM * Identifiers in the IAM User Guide.
*/ inline User& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) that identifies the user. For more information * about ARNs and how to use ARNs in policies, see IAM * Identifiers in the IAM User Guide.
*/ inline User& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) that identifies the user. For more information * about ARNs and how to use ARNs in policies, see IAM * Identifiers in the IAM User Guide.
*/ inline User& 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 User& 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 User& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;} /** *The date and time, in ISO 8601 * date-time format, when the user's password was last used to sign in to an * Amazon Web Services website. For a list of Amazon Web Services websites that * capture a user's last sign-in time, see the Credential * reports topic in the IAM User Guide. If a password is used more than * once in a five-minute span, only the first use is returned in this field. If the * field is null (no value), then it indicates that they never signed in with a * password. This can be because:
The user never had a * password.
A password exists but has not been used since IAM * started tracking this information on October 20, 2014.
A null * value does not mean that the user never had a password. Also, if the user * does not currently have a password but had one in the past, then this field * contains the date and time the most recent password was used.
This value * is returned only in the GetUser and ListUsers operations.
*/ inline const Aws::Utils::DateTime& GetPasswordLastUsed() const{ return m_passwordLastUsed; } /** *The date and time, in ISO 8601 * date-time format, when the user's password was last used to sign in to an * Amazon Web Services website. For a list of Amazon Web Services websites that * capture a user's last sign-in time, see the Credential * reports topic in the IAM User Guide. If a password is used more than * once in a five-minute span, only the first use is returned in this field. If the * field is null (no value), then it indicates that they never signed in with a * password. This can be because:
The user never had a * password.
A password exists but has not been used since IAM * started tracking this information on October 20, 2014.
A null * value does not mean that the user never had a password. Also, if the user * does not currently have a password but had one in the past, then this field * contains the date and time the most recent password was used.
This value * is returned only in the GetUser and ListUsers operations.
*/ inline bool PasswordLastUsedHasBeenSet() const { return m_passwordLastUsedHasBeenSet; } /** *The date and time, in ISO 8601 * date-time format, when the user's password was last used to sign in to an * Amazon Web Services website. For a list of Amazon Web Services websites that * capture a user's last sign-in time, see the Credential * reports topic in the IAM User Guide. If a password is used more than * once in a five-minute span, only the first use is returned in this field. If the * field is null (no value), then it indicates that they never signed in with a * password. This can be because:
The user never had a * password.
A password exists but has not been used since IAM * started tracking this information on October 20, 2014.
A null * value does not mean that the user never had a password. Also, if the user * does not currently have a password but had one in the past, then this field * contains the date and time the most recent password was used.
This value * is returned only in the GetUser and ListUsers operations.
*/ inline void SetPasswordLastUsed(const Aws::Utils::DateTime& value) { m_passwordLastUsedHasBeenSet = true; m_passwordLastUsed = value; } /** *The date and time, in ISO 8601 * date-time format, when the user's password was last used to sign in to an * Amazon Web Services website. For a list of Amazon Web Services websites that * capture a user's last sign-in time, see the Credential * reports topic in the IAM User Guide. If a password is used more than * once in a five-minute span, only the first use is returned in this field. If the * field is null (no value), then it indicates that they never signed in with a * password. This can be because:
The user never had a * password.
A password exists but has not been used since IAM * started tracking this information on October 20, 2014.
A null * value does not mean that the user never had a password. Also, if the user * does not currently have a password but had one in the past, then this field * contains the date and time the most recent password was used.
This value * is returned only in the GetUser and ListUsers operations.
*/ inline void SetPasswordLastUsed(Aws::Utils::DateTime&& value) { m_passwordLastUsedHasBeenSet = true; m_passwordLastUsed = std::move(value); } /** *The date and time, in ISO 8601 * date-time format, when the user's password was last used to sign in to an * Amazon Web Services website. For a list of Amazon Web Services websites that * capture a user's last sign-in time, see the Credential * reports topic in the IAM User Guide. If a password is used more than * once in a five-minute span, only the first use is returned in this field. If the * field is null (no value), then it indicates that they never signed in with a * password. This can be because:
The user never had a * password.
A password exists but has not been used since IAM * started tracking this information on October 20, 2014.
A null * value does not mean that the user never had a password. Also, if the user * does not currently have a password but had one in the past, then this field * contains the date and time the most recent password was used.
This value * is returned only in the GetUser and ListUsers operations.
*/ inline User& WithPasswordLastUsed(const Aws::Utils::DateTime& value) { SetPasswordLastUsed(value); return *this;} /** *The date and time, in ISO 8601 * date-time format, when the user's password was last used to sign in to an * Amazon Web Services website. For a list of Amazon Web Services websites that * capture a user's last sign-in time, see the Credential * reports topic in the IAM User Guide. If a password is used more than * once in a five-minute span, only the first use is returned in this field. If the * field is null (no value), then it indicates that they never signed in with a * password. This can be because:
The user never had a * password.
A password exists but has not been used since IAM * started tracking this information on October 20, 2014.
A null * value does not mean that the user never had a password. Also, if the user * does not currently have a password but had one in the past, then this field * contains the date and time the most recent password was used.
This value * is returned only in the GetUser and ListUsers operations.
*/ inline User& WithPasswordLastUsed(Aws::Utils::DateTime&& value) { SetPasswordLastUsed(std::move(value)); return *this;} /** *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; } /** *For more information about permissions boundaries, see Permissions * boundaries for IAM identities in the IAM User Guide.
*/ inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; } /** *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; } /** *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); } /** *For more information about permissions boundaries, see Permissions * boundaries for IAM identities in the IAM User Guide.
*/ inline User& WithPermissionsBoundary(const AttachedPermissionsBoundary& value) { SetPermissionsBoundary(value); return *this;} /** *For more information about permissions boundaries, see Permissions * boundaries for IAM identities in the IAM User Guide.
*/ inline User& 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 User& 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 User& 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 User& 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 User& 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::Utils::DateTime m_passwordLastUsed; bool m_passwordLastUsedHasBeenSet = false; AttachedPermissionsBoundary m_permissionsBoundary; bool m_permissionsBoundaryHasBeenSet = false; Aws::Vector