Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class CreateUserRequest

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

public class CreateUserRequest
extends AmazonWebServiceRequest

Container for the parameters to the CreateUser operation.

Creates a new user for your AWS account.

For information about limitations on the number of users you can create, see Limitations on IAM Entities in Using AWS Identity and Access Management .

See Also:
AmazonIdentityManagement.createUser(CreateUserRequest)

Constructor Summary
CreateUserRequest()
          Default constructor for a new CreateUserRequest object.
CreateUserRequest(String userName)
          Constructs a new CreateUserRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getPath()
          The path for the user name.
 String getUserName()
          Name of the user to create.
 int hashCode()
           
 void setPath(String path)
          The path for the user name.
 void setUserName(String userName)
          Name of the user to create.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateUserRequest withPath(String path)
          The path for the user name.
 CreateUserRequest withUserName(String userName)
          Name of the user to create.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateUserRequest

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


CreateUserRequest

public CreateUserRequest(String userName)
Constructs a new CreateUserRequest 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.
Method Detail

getPath

public String getPath()
The path for the user name. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Returns:
The path for the user name. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).


setPath

public void setPath(String path)
The path for the user name. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Parameters:
path - The path for the user name. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).


withPath

public CreateUserRequest withPath(String path)
The path for the user name. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

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

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Parameters:
path - The path for the user name. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

Returns:
A reference to this updated object so that method calls can be chained together.

getUserName

public String getUserName()
Name of the user to create.

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

Returns:
Name of the user to create.

setUserName

public void setUserName(String userName)
Name of the user to create.

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

Parameters:
userName - Name of the user to create.

withUserName

public CreateUserRequest withUserName(String userName)
Name of the user to create.

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

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

Parameters:
userName - Name of the user to create.
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.