com.amazonaws.services.identitymanagement.model
Class CreateLoginProfileRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.CreateLoginProfileRequest

public class CreateLoginProfileRequest
extends AmazonWebServiceRequest

Container for the parameters to the CreateLoginProfile operation.

Creates a login profile for the specified User, giving the User the ability to access AWS services such as the AWS Management Console. For more information about login profiles, see Managing Login Profiles and MFA Devices in Using AWS Identity and Access Management .

See Also:
AmazonIdentityManagement.createLoginProfile(CreateLoginProfileRequest)

Constructor Summary
CreateLoginProfileRequest()
          Default constructor for a new CreateLoginProfileRequest object.
CreateLoginProfileRequest(String userName, String password)
          Constructs a new CreateLoginProfileRequest object.
 
Method Summary
 String getPassword()
          The new password for the User name.
 String getUserName()
          Name of the User to create a login profile for.
 void setPassword(String password)
          The new password for the User name.
 void setUserName(String userName)
          Name of the User to create a login profile for.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateLoginProfileRequest withPassword(String password)
          The new password for the User name.
 CreateLoginProfileRequest withUserName(String userName)
          Name of the User to create a login profile for.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateLoginProfileRequest

public CreateLoginProfileRequest()
Default constructor for a new CreateLoginProfileRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CreateLoginProfileRequest

public CreateLoginProfileRequest(String userName,
                                 String password)
Constructs a new CreateLoginProfileRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
userName - Name of the User to create a login profile for.
password - The new password for the User name.
Method Detail

getUserName

public String getUserName()
Name of the User to create a login profile for.

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

Returns:
Name of the User to create a login profile for.

setUserName

public void setUserName(String userName)
Name of the User to create a login profile for.

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

Parameters:
userName - Name of the User to create a login profile for.

withUserName

public CreateLoginProfileRequest withUserName(String userName)
Name of the User to create a login profile for.

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

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

Parameters:
userName - Name of the User to create a login profile for.
Returns:
A reference to this updated object so that method calls can be chained together.

getPassword

public String getPassword()
The new password for the User name.

Constraints:
Length: 1 - 128
Pattern: [ -?]+

Returns:
The new password for the User name.

setPassword

public void setPassword(String password)
The new password for the User name.

Constraints:
Length: 1 - 128
Pattern: [ -?]+

Parameters:
password - The new password for the User name.

withPassword

public CreateLoginProfileRequest withPassword(String password)
The new password for the User name.

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

Constraints:
Length: 1 - 128
Pattern: [ -?]+

Parameters:
password - The new password for the User name.
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()


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