553 lines
22 KiB
C++
553 lines
22 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iam/IAM_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/iam/model/AttachedPermissionsBoundary.h>
|
|
#include <aws/iam/model/PolicyDetail.h>
|
|
#include <aws/iam/model/AttachedPolicy.h>
|
|
#include <aws/iam/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace IAM
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Contains information about an IAM user, including all the user's policies and
|
|
* all the IAM groups the user is in.</p> <p>This data type is used as a response
|
|
* element in the <a>GetAccountAuthorizationDetails</a> operation.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UserDetail">AWS API
|
|
* Reference</a></p>
|
|
*/
|
|
class AWS_IAM_API UserDetail
|
|
{
|
|
public:
|
|
UserDetail();
|
|
UserDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
UserDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
|
|
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
|
|
void OutputToStream(Aws::OStream& oStream, const char* location) const;
|
|
|
|
|
|
/**
|
|
* <p>The path to the user. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline const Aws::String& GetPath() const{ return m_path; }
|
|
|
|
/**
|
|
* <p>The path to the user. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The path to the user. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
|
|
|
|
/**
|
|
* <p>The path to the user. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
|
|
|
|
/**
|
|
* <p>The path to the user. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
|
|
|
|
/**
|
|
* <p>The path to the user. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline UserDetail& WithPath(const Aws::String& value) { SetPath(value); return *this;}
|
|
|
|
/**
|
|
* <p>The path to the user. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline UserDetail& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The path to the user. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline UserDetail& WithPath(const char* value) { SetPath(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The friendly name identifying the user.</p>
|
|
*/
|
|
inline const Aws::String& GetUserName() const{ return m_userName; }
|
|
|
|
/**
|
|
* <p>The friendly name identifying the user.</p>
|
|
*/
|
|
inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The friendly name identifying the user.</p>
|
|
*/
|
|
inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
|
|
|
|
/**
|
|
* <p>The friendly name identifying the user.</p>
|
|
*/
|
|
inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The friendly name identifying the user.</p>
|
|
*/
|
|
inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
|
|
|
|
/**
|
|
* <p>The friendly name identifying the user.</p>
|
|
*/
|
|
inline UserDetail& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The friendly name identifying the user.</p>
|
|
*/
|
|
inline UserDetail& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The friendly name identifying the user.</p>
|
|
*/
|
|
inline UserDetail& WithUserName(const char* value) { SetUserName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The stable and unique string identifying the user. For more information about
|
|
* IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline const Aws::String& GetUserId() const{ return m_userId; }
|
|
|
|
/**
|
|
* <p>The stable and unique string identifying the user. For more information about
|
|
* IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The stable and unique string identifying the user. For more information about
|
|
* IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
|
|
|
|
/**
|
|
* <p>The stable and unique string identifying the user. For more information about
|
|
* IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The stable and unique string identifying the user. For more information about
|
|
* IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
|
|
|
|
/**
|
|
* <p>The stable and unique string identifying the user. For more information about
|
|
* IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline UserDetail& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The stable and unique string identifying the user. For more information about
|
|
* IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline UserDetail& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The stable and unique string identifying the user. For more information about
|
|
* IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
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;}
|
|
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the user was created.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the user was created.</p>
|
|
*/
|
|
inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the user was created.</p>
|
|
*/
|
|
inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the user was created.</p>
|
|
*/
|
|
inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the user was created.</p>
|
|
*/
|
|
inline UserDetail& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the user was created.</p>
|
|
*/
|
|
inline UserDetail& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of the inline policies embedded in the user.</p>
|
|
*/
|
|
inline const Aws::Vector<PolicyDetail>& GetUserPolicyList() const{ return m_userPolicyList; }
|
|
|
|
/**
|
|
* <p>A list of the inline policies embedded in the user.</p>
|
|
*/
|
|
inline bool UserPolicyListHasBeenSet() const { return m_userPolicyListHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of the inline policies embedded in the user.</p>
|
|
*/
|
|
inline void SetUserPolicyList(const Aws::Vector<PolicyDetail>& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList = value; }
|
|
|
|
/**
|
|
* <p>A list of the inline policies embedded in the user.</p>
|
|
*/
|
|
inline void SetUserPolicyList(Aws::Vector<PolicyDetail>&& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of the inline policies embedded in the user.</p>
|
|
*/
|
|
inline UserDetail& WithUserPolicyList(const Aws::Vector<PolicyDetail>& value) { SetUserPolicyList(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of the inline policies embedded in the user.</p>
|
|
*/
|
|
inline UserDetail& WithUserPolicyList(Aws::Vector<PolicyDetail>&& value) { SetUserPolicyList(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of the inline policies embedded in the user.</p>
|
|
*/
|
|
inline UserDetail& AddUserPolicyList(const PolicyDetail& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of the inline policies embedded in the user.</p>
|
|
*/
|
|
inline UserDetail& AddUserPolicyList(PolicyDetail&& value) { m_userPolicyListHasBeenSet = true; m_userPolicyList.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>A list of IAM groups that the user is in.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetGroupList() const{ return m_groupList; }
|
|
|
|
/**
|
|
* <p>A list of IAM groups that the user is in.</p>
|
|
*/
|
|
inline bool GroupListHasBeenSet() const { return m_groupListHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of IAM groups that the user is in.</p>
|
|
*/
|
|
inline void SetGroupList(const Aws::Vector<Aws::String>& value) { m_groupListHasBeenSet = true; m_groupList = value; }
|
|
|
|
/**
|
|
* <p>A list of IAM groups that the user is in.</p>
|
|
*/
|
|
inline void SetGroupList(Aws::Vector<Aws::String>&& value) { m_groupListHasBeenSet = true; m_groupList = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of IAM groups that the user is in.</p>
|
|
*/
|
|
inline UserDetail& WithGroupList(const Aws::Vector<Aws::String>& value) { SetGroupList(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of IAM groups that the user is in.</p>
|
|
*/
|
|
inline UserDetail& WithGroupList(Aws::Vector<Aws::String>&& value) { SetGroupList(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of IAM groups that the user is in.</p>
|
|
*/
|
|
inline UserDetail& AddGroupList(const Aws::String& value) { m_groupListHasBeenSet = true; m_groupList.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of IAM groups that the user is in.</p>
|
|
*/
|
|
inline UserDetail& AddGroupList(Aws::String&& value) { m_groupListHasBeenSet = true; m_groupList.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A list of IAM groups that the user is in.</p>
|
|
*/
|
|
inline UserDetail& AddGroupList(const char* value) { m_groupListHasBeenSet = true; m_groupList.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>A list of the managed policies attached to the user.</p>
|
|
*/
|
|
inline const Aws::Vector<AttachedPolicy>& GetAttachedManagedPolicies() const{ return m_attachedManagedPolicies; }
|
|
|
|
/**
|
|
* <p>A list of the managed policies attached to the user.</p>
|
|
*/
|
|
inline bool AttachedManagedPoliciesHasBeenSet() const { return m_attachedManagedPoliciesHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of the managed policies attached to the user.</p>
|
|
*/
|
|
inline void SetAttachedManagedPolicies(const Aws::Vector<AttachedPolicy>& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = value; }
|
|
|
|
/**
|
|
* <p>A list of the managed policies attached to the user.</p>
|
|
*/
|
|
inline void SetAttachedManagedPolicies(Aws::Vector<AttachedPolicy>&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of the managed policies attached to the user.</p>
|
|
*/
|
|
inline UserDetail& WithAttachedManagedPolicies(const Aws::Vector<AttachedPolicy>& value) { SetAttachedManagedPolicies(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of the managed policies attached to the user.</p>
|
|
*/
|
|
inline UserDetail& WithAttachedManagedPolicies(Aws::Vector<AttachedPolicy>&& value) { SetAttachedManagedPolicies(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of the managed policies attached to the user.</p>
|
|
*/
|
|
inline UserDetail& AddAttachedManagedPolicies(const AttachedPolicy& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of the managed policies attached to the user.</p>
|
|
*/
|
|
inline UserDetail& AddAttachedManagedPolicies(AttachedPolicy&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the user.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline const AttachedPermissionsBoundary& GetPermissionsBoundary() const{ return m_permissionsBoundary; }
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the user.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the user.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetPermissionsBoundary(const AttachedPermissionsBoundary& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; }
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the user.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetPermissionsBoundary(AttachedPermissionsBoundary&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the user.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline UserDetail& WithPermissionsBoundary(const AttachedPermissionsBoundary& value) { SetPermissionsBoundary(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the user.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline UserDetail& WithPermissionsBoundary(AttachedPermissionsBoundary&& value) { SetPermissionsBoundary(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of tags that are associated with the specified user. For more
|
|
* information about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>A list of tags that are associated with the specified user. For more
|
|
* information about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of tags that are associated with the specified user. For more
|
|
* information about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>A list of tags that are associated with the specified user. For more
|
|
* information about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of tags that are associated with the specified user. For more
|
|
* information about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline UserDetail& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of tags that are associated with the specified user. For more
|
|
* information about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline UserDetail& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of tags that are associated with the specified user. For more
|
|
* information about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline UserDetail& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of tags that are associated with the specified user. For more
|
|
* information about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
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;
|
|
|
|
Aws::String m_userName;
|
|
bool m_userNameHasBeenSet;
|
|
|
|
Aws::String m_userId;
|
|
bool m_userIdHasBeenSet;
|
|
|
|
Aws::String m_arn;
|
|
bool m_arnHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_createDate;
|
|
bool m_createDateHasBeenSet;
|
|
|
|
Aws::Vector<PolicyDetail> m_userPolicyList;
|
|
bool m_userPolicyListHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_groupList;
|
|
bool m_groupListHasBeenSet;
|
|
|
|
Aws::Vector<AttachedPolicy> m_attachedManagedPolicies;
|
|
bool m_attachedManagedPoliciesHasBeenSet;
|
|
|
|
AttachedPermissionsBoundary m_permissionsBoundary;
|
|
bool m_permissionsBoundaryHasBeenSet;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IAM
|
|
} // namespace Aws
|