public class LoginProfile
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
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 actions.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
createDate
The date when the password for the user was created.
|
private java.lang.Boolean |
passwordResetRequired
Specifies whether the user is required to set a new password on next
sign-in.
|
private java.lang.String |
userName
The name of the user, which can be used for signing in to the AWS
Management Console.
|
Constructor and Description |
---|
LoginProfile()
Default constructor for LoginProfile object.
|
LoginProfile(java.lang.String userName,
java.util.Date createDate)
Constructs a new LoginProfile object.
|
Modifier and Type | Method and Description |
---|---|
LoginProfile |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreateDate()
The date when the password for the user was created.
|
java.lang.Boolean |
getPasswordResetRequired()
Specifies whether the user is required to set a new password on next
sign-in.
|
java.lang.String |
getUserName()
The name of the user, which can be used for signing in to the AWS
Management Console.
|
int |
hashCode() |
java.lang.Boolean |
isPasswordResetRequired()
Specifies whether the user is required to set a new password on next
sign-in.
|
void |
setCreateDate(java.util.Date createDate)
The date when the password for the user was created.
|
void |
setPasswordResetRequired(java.lang.Boolean passwordResetRequired)
Specifies whether the user is required to set a new password on next
sign-in.
|
void |
setUserName(java.lang.String userName)
The name of the user, which can be used for signing in to the AWS
Management Console.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LoginProfile |
withCreateDate(java.util.Date createDate)
The date when the password for the user was created.
|
LoginProfile |
withPasswordResetRequired(java.lang.Boolean passwordResetRequired)
Specifies whether the user is required to set a new password on next
sign-in.
|
LoginProfile |
withUserName(java.lang.String userName)
The name of the user, which can be used for signing in to the AWS
Management Console.
|
private java.lang.String userName
The name of the user, which can be used for signing in to the AWS Management Console.
private java.util.Date createDate
The date when the password for the user was created.
private java.lang.Boolean passwordResetRequired
Specifies whether the user is required to set a new password on next sign-in.
public LoginProfile()
public LoginProfile(java.lang.String userName, java.util.Date createDate)
userName
- The name of the user, which can be used for signing in to the AWS
Management Console.createDate
- The date when the password for the user was created.public void setUserName(java.lang.String userName)
The name of the user, which can be used for signing in to the AWS Management Console.
userName
- The name of the user, which can be used for signing in to the AWS
Management Console.public java.lang.String getUserName()
The name of the user, which can be used for signing in to the AWS Management Console.
public LoginProfile withUserName(java.lang.String userName)
The name of the user, which can be used for signing in to the AWS Management Console.
userName
- The name of the user, which can be used for signing in to the AWS
Management Console.public void setCreateDate(java.util.Date createDate)
The date when the password for the user was created.
createDate
- The date when the password for the user was created.public java.util.Date getCreateDate()
The date when the password for the user was created.
public LoginProfile withCreateDate(java.util.Date createDate)
The date when the password for the user was created.
createDate
- The date when the password for the user was created.public void setPasswordResetRequired(java.lang.Boolean passwordResetRequired)
Specifies whether the user is required to set a new password on next sign-in.
passwordResetRequired
- Specifies whether the user is required to set a new password on
next sign-in.public java.lang.Boolean getPasswordResetRequired()
Specifies whether the user is required to set a new password on next sign-in.
public LoginProfile withPasswordResetRequired(java.lang.Boolean passwordResetRequired)
Specifies whether the user is required to set a new password on next sign-in.
passwordResetRequired
- Specifies whether the user is required to set a new password on
next sign-in.public java.lang.Boolean isPasswordResetRequired()
Specifies whether the user is required to set a new password on next sign-in.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public LoginProfile clone()
clone
in class java.lang.Object