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 the Using IAM guide.
NOOP
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.
|
Boolean |
getPasswordResetRequired()
Specifies whether the user is required to set a new password on next
sign-in.
|
String |
getUserName()
Name of the user to create a password for.
|
int |
hashCode() |
Boolean |
isPasswordResetRequired()
Specifies whether the user is required to set a new password on next
sign-in.
|
void |
setPassword(String password)
The new password for the user.
|
void |
setPasswordResetRequired(Boolean passwordResetRequired)
Specifies whether the user is required to set a new password on next
sign-in.
|
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.
|
CreateLoginProfileRequest |
withPasswordResetRequired(Boolean passwordResetRequired)
Specifies whether the user is required to set a new password on next
sign-in.
|
CreateLoginProfileRequest |
withUserName(String userName)
Name of the user to create a password for.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, 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.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.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.public Boolean isPasswordResetRequired()
public void setPasswordResetRequired(Boolean passwordResetRequired)
passwordResetRequired
- Specifies whether the user is required to set a new password on next
sign-in.public CreateLoginProfileRequest withPasswordResetRequired(Boolean passwordResetRequired)
Returns a reference to this object so that method calls can be chained together.
passwordResetRequired
- Specifies whether the user is required to set a new password on next
sign-in.public Boolean getPasswordResetRequired()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.