Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class LoginProfile

java.lang.Object
  extended by com.amazonaws.services.identitymanagement.model.LoginProfile
All Implemented Interfaces:
Serializable

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.

See Also:
Serialized Form

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 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.
 
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 signing into the AWS Management Console.
createDate - The date when the password for the user was created.
Method Detail

getUserName

public String getUserName()
The name of the user, which can be used for signing into the AWS Management Console.

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

Returns:
The name of the user, which can be used for signing into the AWS Management Console.

setUserName

public void setUserName(String userName)
The name of the user, which can be used for signing into the AWS Management Console.

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

Parameters:
userName - The name of the user, which can be used for signing into the AWS Management Console.

withUserName

public LoginProfile withUserName(String userName)
The name of the user, which can be used for signing into the AWS Management Console.

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 signing into the AWS Management Console.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withCreateDate

public LoginProfile withCreateDate(Date createDate)
The date when the password 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 password 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.