public class CreateUserRequest extends AmazonWebServiceRequest implements Serializable
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 the Using IAM guide.
NOOP
Constructor and Description |
---|
CreateUserRequest()
Default constructor for a new CreateUserRequest object.
|
CreateUserRequest(String userName)
Constructs a new CreateUserRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getPath()
The path for the user name.
|
String |
getUserName()
The name of the user to create.
|
int |
hashCode() |
void |
setPath(String path)
The path for the user name.
|
void |
setUserName(String userName)
The 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)
The name of the user to create.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateUserRequest()
public CreateUserRequest(String userName)
userName
- The name of the user to create.public String getPath()
This parameter is optional. If it is not included, it defaults to a slash (/).
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
This parameter is optional. If it is not included, it defaults to a slash (/).
public void setPath(String path)
This parameter is optional. If it is not included, it defaults to a slash (/).
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path
- The path for the user name. For more information about paths, see IAM
Identifiers in the Using IAM guide. This parameter is optional. If it is not included, it defaults to a slash (/).
public CreateUserRequest withPath(String path)
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: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path
- The path for the user name. For more information about paths, see IAM
Identifiers in the Using IAM guide. This parameter is optional. If it is not included, it defaults to a slash (/).
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 to create.public CreateUserRequest 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 to create.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.