public class LoginProfile extends Object implements Serializable
The LoginProfile data type contains the user name and password create date for a user.
This data type is used as a response element in the actions CreateLoginProfile and GetLoginProfile.
Constructor and Description |
---|
LoginProfile()
Default constructor for a new LoginProfile object.
|
LoginProfile(String userName,
Date createDate)
Constructs a new LoginProfile object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Date |
getCreateDate()
The date when the password for the user was created.
|
String |
getUserName()
The name of the user, which can be used for signing into the AWS
Management Console.
|
int |
hashCode() |
void |
setCreateDate(Date createDate)
The date when the password for the user was created.
|
void |
setUserName(String userName)
The name of the user, which can be used for signing into 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 |
withUserName(String userName)
The name of the user, which can be used for signing into the AWS
Management Console.
|
public LoginProfile()
public LoginProfile(String userName, Date createDate)
userName
- The name of the user, which can be used for signing
into the AWS Management Console.createDate
- The date when the password for the user was created.public String getUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
public void setUserName(String userName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
userName
- The name of the user, which can be used for signing into the AWS
Management Console.public LoginProfile withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
userName
- The name of the user, which can be used for signing into the AWS
Management Console.public Date getCreateDate()
public void setCreateDate(Date createDate)
createDate
- The date when the password for the user was created.public LoginProfile withCreateDate(Date createDate)
Returns a reference to this object so that method calls can be chained together.
createDate
- The date when the password for the user was created.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.