com.amazonaws.services.identitymanagement.model
Class LoginProfile

java.lang.Object
  extended by com.amazonaws.services.identitymanagement.model.LoginProfile

public class LoginProfile
extends Object

The LoginProfile data type contains information about a login profile for a user.

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


Constructor Summary
LoginProfile()
          Default constructor for a new LoginProfile object.
LoginProfile(String userName, Date createDate)
          Constructs a new LoginProfile object.
 
Method Summary
 boolean equals(Object obj)
           
 Date getCreateDate()
          The date when the login profile for the user was created.
 String getUserName()
          The name of the user, which can be used for logins.
 int hashCode()
           
 void setCreateDate(Date createDate)
          The date when the login profile for the user was created.
 void setUserName(String userName)
          The name of the user, which can be used for logins.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 LoginProfile withCreateDate(Date createDate)
          The date when the login profile for the user was created.
 LoginProfile withUserName(String userName)
          The name of the user, which can be used for logins.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoginProfile

public LoginProfile()
Default constructor for a new LoginProfile object. Callers should use the setter or fluent setter (with...) methods to initialize this 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 logins.
createDate - The date when the login profile for the user was created.
Method Detail

getUserName

public String getUserName()
The name of the user, which can be used for logins.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Returns:
The name of the user, which can be used for logins.

setUserName

public void setUserName(String userName)
The name of the user, which can be used for logins.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Parameters:
userName - The name of the user, which can be used for logins.

withUserName

public LoginProfile withUserName(String userName)
The name of the user, which can be used for logins.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Parameters:
userName - The name of the user, which can be used for logins.
Returns:
A reference to this updated object so that method calls can be chained together.

getCreateDate

public Date getCreateDate()
The date when the login profile for the user was created.

Returns:
The date when the login profile for the user was created.

setCreateDate

public void setCreateDate(Date createDate)
The date when the login profile for the user was created.

Parameters:
createDate - The date when the login profile for the user was created.

withCreateDate

public LoginProfile withCreateDate(Date createDate)
The date when the login profile for the user was created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
createDate - The date when the login profile for the user was created.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.