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 .
Constructor and Description |
---|
ChangePasswordRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getNewPassword()
Returns the value of the NewPassword property for this object.
|
String |
getOldPassword()
Returns the value of the OldPassword property for this object.
|
int |
hashCode() |
void |
setNewPassword(String newPassword)
Sets the value of the NewPassword property for this object.
|
void |
setOldPassword(String oldPassword)
Sets the value of the OldPassword property for this object.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ChangePasswordRequest |
withNewPassword(String newPassword)
Sets the value of the NewPassword property for this object.
|
ChangePasswordRequest |
withOldPassword(String oldPassword)
Sets the value of the OldPassword property for this object.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getOldPassword()
Constraints:
Length: 1 - 128
Pattern: [
-ÿ]+
public void setOldPassword(String oldPassword)
Constraints:
Length: 1 - 128
Pattern: [
-ÿ]+
oldPassword
- The new value for the OldPassword property for this object.public ChangePasswordRequest withOldPassword(String oldPassword)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [
-ÿ]+
oldPassword
- The new value for the OldPassword property for this object.public String getNewPassword()
Constraints:
Length: 1 - 128
Pattern: [
-ÿ]+
public void setNewPassword(String newPassword)
Constraints:
Length: 1 - 128
Pattern: [
-ÿ]+
newPassword
- The new value for the NewPassword property for this object.public ChangePasswordRequest withNewPassword(String newPassword)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [
-ÿ]+
newPassword
- The new value for the NewPassword property for this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.