public class UpdateLoginProfileRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
UpdateLoginProfile operation
.
Changes the password for the specified user.
Users can change their own passwords by calling ChangePassword. For more information about modifying passwords, see Managing Passwords in the IAM User Guide .
NOOP
Constructor and Description |
---|
UpdateLoginProfileRequest()
Default constructor for a new UpdateLoginProfileRequest object.
|
UpdateLoginProfileRequest(String userName)
Constructs a new UpdateLoginProfileRequest object.
|
Modifier and Type | Method and Description |
---|---|
UpdateLoginProfileRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getPassword()
The new password for the specified user.
|
Boolean |
getPasswordResetRequired()
Require the specified user to set a new password on next sign-in.
|
String |
getUserName()
The name of the user whose password you want to update.
|
int |
hashCode() |
Boolean |
isPasswordResetRequired()
Require the specified user to set a new password on next sign-in.
|
void |
setPassword(String password)
The new password for the specified user.
|
void |
setPasswordResetRequired(Boolean passwordResetRequired)
Require the specified user to set a new password on next sign-in.
|
void |
setUserName(String userName)
The name of the user whose password you want to update.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateLoginProfileRequest |
withPassword(String password)
The new password for the specified user.
|
UpdateLoginProfileRequest |
withPasswordResetRequired(Boolean passwordResetRequired)
Require the specified user to set a new password on next sign-in.
|
UpdateLoginProfileRequest |
withUserName(String userName)
The name of the user whose password you want to update.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public UpdateLoginProfileRequest()
public UpdateLoginProfileRequest(String userName)
userName
- The name of the user whose password you want to
update.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 whose password you want to update.public UpdateLoginProfileRequest 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 whose password you want to update.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 specified user.public UpdateLoginProfileRequest 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 specified user.public Boolean isPasswordResetRequired()
public void setPasswordResetRequired(Boolean passwordResetRequired)
passwordResetRequired
- Require the specified user to set a new password on next sign-in.public UpdateLoginProfileRequest withPasswordResetRequired(Boolean passwordResetRequired)
Returns a reference to this object so that method calls can be chained together.
passwordResetRequired
- Require the specified user to set a new password on next sign-in.public Boolean getPasswordResetRequired()
public String toString()
toString
in class Object
Object.toString()
public UpdateLoginProfileRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.