public class ChangePasswordRequest extends AmazonWebServiceRequest implements Serializable
ChangePassword operation
.
Changes the password of the IAM user calling
ChangePassword
. The root account password is not
affected by this action. For information about modifying passwords,
see
Managing Passwords
in the Using IAM guide.
NOOP
Constructor and Description |
---|
ChangePasswordRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getNewPassword()
The new password.
|
String |
getOldPassword()
The IAM users's current password.
|
int |
hashCode() |
void |
setNewPassword(String newPassword)
The new password.
|
void |
setOldPassword(String oldPassword)
The IAM users'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 users's current password.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, 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 users'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 users'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()
Copyright © 2014. All rights reserved.