Class LoginProfile
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.LoginProfile
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class LoginProfile extends Object implements Serializable, 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoginProfile()
Default constructor for LoginProfile object.LoginProfile(String userName, Date createDate)
Constructs a new LoginProfile object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoginProfile
clone()
boolean
equals(Object obj)
Date
getCreateDate()
The date when the password for the user was created.Boolean
getPasswordResetRequired()
Specifies whether the user is required to set a new password on next sign-in.String
getUserName()
The name of the user, which can be used for signing in to the AWS Management Console.int
hashCode()
Boolean
isPasswordResetRequired()
Specifies whether the user is required to set a new password on next sign-in.void
setCreateDate(Date createDate)
The date when the password for the user was created.void
setPasswordResetRequired(Boolean passwordResetRequired)
Specifies whether the user is required to set a new password on next sign-in.void
setUserName(String userName)
The name of the user, which can be used for signing in to the AWS Management Console.String
toString()
Returns a string representation of this object; useful for testing and debugging.LoginProfile
withCreateDate(Date createDate)
The date when the password for the user was created.LoginProfile
withPasswordResetRequired(Boolean passwordResetRequired)
Specifies whether the user is required to set a new password on next sign-in.LoginProfile
withUserName(String userName)
The name of the user, which can be used for signing in to the AWS Management Console.
-
-
-
Constructor Detail
-
LoginProfile
public LoginProfile()
Default constructor for LoginProfile object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
LoginProfile
public LoginProfile(String userName, Date createDate)
Constructs a new LoginProfile object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
-
Method Detail
-
setUserName
public void setUserName(String userName)
The name of the user, which can be used for signing in to the AWS Management Console.
- Parameters:
userName
- The name of the user, which can be used for signing in to the AWS Management Console.
-
getUserName
public String getUserName()
The name of the user, which can be used for signing in to the AWS Management Console.
- Returns:
- The name of the user, which can be used for signing in to the AWS Management Console.
-
withUserName
public LoginProfile withUserName(String userName)
The name of the user, which can be used for signing in to the AWS Management Console.
- Parameters:
userName
- The name of the user, which can be used for signing in to the AWS Management Console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreateDate
public void setCreateDate(Date createDate)
The date when the password for the user was created.
- Parameters:
createDate
- The date when the password for the user was created.
-
getCreateDate
public Date getCreateDate()
The date when the password for the user was created.
- Returns:
- The date when the password for the user was created.
-
withCreateDate
public LoginProfile withCreateDate(Date createDate)
The date when the password for the user was created.
- Parameters:
createDate
- The date when the password for the user was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPasswordResetRequired
public void setPasswordResetRequired(Boolean passwordResetRequired)
Specifies whether the user is required to set a new password on next sign-in.
- Parameters:
passwordResetRequired
- Specifies whether the user is required to set a new password on next sign-in.
-
getPasswordResetRequired
public Boolean getPasswordResetRequired()
Specifies whether the user is required to set a new password on next sign-in.
- Returns:
- Specifies whether the user is required to set a new password on next sign-in.
-
withPasswordResetRequired
public LoginProfile withPasswordResetRequired(Boolean passwordResetRequired)
Specifies whether the user is required to set a new password on next sign-in.
- Parameters:
passwordResetRequired
- Specifies whether the user is required to set a new password on next sign-in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPasswordResetRequired
public Boolean isPasswordResetRequired()
Specifies whether the user is required to set a new password on next sign-in.
- Returns:
- Specifies whether the user is required to set a new password on next sign-in.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public LoginProfile clone()
-
-