public class ChangePasswordRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
ChangePassword operation
.
Changes the password of the IAM user who is calling this action. The root account password is not affected by this action.
To change the password for a different user, see UpdateLoginProfile. For more information about modifying passwords, see Managing Passwords in the Using IAM guide.
NOOP
Constructor and Description |
---|
ChangePasswordRequest() |
Modifier and Type | Method and Description |
---|---|
ChangePasswordRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getNewPassword()
The new password.
|
String |
getOldPassword()
The IAM user's current password.
|
int |
hashCode() |
void |
setNewPassword(String newPassword)
The new password.
|
void |
setOldPassword(String oldPassword)
The IAM user's current password.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ChangePasswordRequest |
withNewPassword(String newPassword)
The new password.
|
ChangePasswordRequest |
withOldPassword(String oldPassword)
The IAM user's current password.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getOldPassword()
Constraints:
Length: 1 - 128
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
public void setOldPassword(String oldPassword)
Constraints:
Length: 1 - 128
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
oldPassword
- The IAM user's current password.public ChangePasswordRequest withOldPassword(String oldPassword)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
oldPassword
- The IAM user's current password.public String getNewPassword()
Constraints:
Length: 1 - 128
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
public void setNewPassword(String newPassword)
Constraints:
Length: 1 - 128
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
newPassword
- The new password. The new password must conform to the AWS account's
password policy, if one exists.public ChangePasswordRequest withNewPassword(String newPassword)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
newPassword
- The new password. The new password must conform to the AWS account's
password policy, if one exists.public String toString()
toString
in class Object
Object.toString()
public ChangePasswordRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.