public class CreateLoginProfileRequest extends AmazonWebServiceRequest implements Serializable
CreateLoginProfile operation
.
Creates a password for the specified user, giving the user the ability to access AWS services through the AWS Management Console. For more information about managing passwords, see Managing Passwords in Using IAM .
Constructor and Description |
---|
CreateLoginProfileRequest()
Default constructor for a new CreateLoginProfileRequest object.
|
CreateLoginProfileRequest(String userName,
String password)
Constructs a new CreateLoginProfileRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getPassword()
The new password for the user name.
|
String |
getUserName()
Name of the user to create a password for.
|
int |
hashCode() |
void |
setPassword(String password)
The new password for the user name.
|
void |
setUserName(String userName)
Name of the user to create a password 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 password for.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public CreateLoginProfileRequest()
public CreateLoginProfileRequest(String userName, String password)
userName
- Name of the user to create a password for.password
- The new password for the user name.public String getUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
public void setUserName(String userName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
userName
- Name of the user to create a password for.public CreateLoginProfileRequest withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
userName
- Name of the user to create a password for.public String getPassword()
Constraints:
Length: 1 - 128
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
public void setPassword(String password)
Constraints:
Length: 1 - 128
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
password
- The new password for the user name.public CreateLoginProfileRequest withPassword(String password)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
password
- The new password for the user name.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.