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

Contains the user name and password create date for a user.

This data * type is used as a response element in the CreateLoginProfile and * GetLoginProfile operations.

See Also:

AWS * API Reference

*/ class LoginProfile { public: AWS_IAM_API LoginProfile(); AWS_IAM_API LoginProfile(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API LoginProfile& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the user, which can be used for signing in to the Amazon Web * Services Management Console.

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

The name of the user, which can be used for signing in to the Amazon Web * Services Management Console.

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

The name of the user, which can be used for signing in to the Amazon Web * Services Management Console.

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

The name of the user, which can be used for signing in to the Amazon Web * Services Management Console.

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

The name of the user, which can be used for signing in to the Amazon Web * Services Management Console.

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

The name of the user, which can be used for signing in to the Amazon Web * Services Management Console.

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

The name of the user, which can be used for signing in to the Amazon Web * Services Management Console.

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

The name of the user, which can be used for signing in to the Amazon Web * Services Management Console.

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

The date when the password for the user was created.

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

The date when the password for the user was created.

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

The date when the password for the user was created.

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

The date when the password for the user was created.

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

The date when the password for the user was created.

*/ inline LoginProfile& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;} /** *

The date when the password for the user was created.

*/ inline LoginProfile& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;} /** *

Specifies whether the user is required to set a new password on next * sign-in.

*/ inline bool GetPasswordResetRequired() const{ return m_passwordResetRequired; } /** *

Specifies whether the user is required to set a new password on next * sign-in.

*/ inline bool PasswordResetRequiredHasBeenSet() const { return m_passwordResetRequiredHasBeenSet; } /** *

Specifies whether the user is required to set a new password on next * sign-in.

*/ inline void SetPasswordResetRequired(bool value) { m_passwordResetRequiredHasBeenSet = true; m_passwordResetRequired = value; } /** *

Specifies whether the user is required to set a new password on next * sign-in.

*/ inline LoginProfile& WithPasswordResetRequired(bool value) { SetPasswordResetRequired(value); return *this;} private: Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::Utils::DateTime m_createDate; bool m_createDateHasBeenSet = false; bool m_passwordResetRequired; bool m_passwordResetRequiredHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws