com.amazonaws.services.identitymanagement.model
Class ChangePasswordRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.ChangePasswordRequest

public class ChangePasswordRequest
extends AmazonWebServiceRequest

Container for the parameters to the ChangePassword operation.

Changes the password of the IAM user who is currently signed in. The root account password is not affected by this action. For information about modifying passwords, see Managing Passwords .

See Also:
AmazonIdentityManagement.changePassword(ChangePasswordRequest)

Constructor Summary
ChangePasswordRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangePasswordRequest

public ChangePasswordRequest()
Method Detail

getOldPassword

public String getOldPassword()
Returns the value of the OldPassword property for this object.

Constraints:
Length: 1 - 128
Pattern: [ -?]+

Returns:
The value of the OldPassword property for this object.

setOldPassword

public void setOldPassword(String oldPassword)
Sets the value of the OldPassword property for this object.

Constraints:
Length: 1 - 128
Pattern: [ -?]+

Parameters:
oldPassword - The new value for the OldPassword property for this object.

withOldPassword

public ChangePasswordRequest withOldPassword(String oldPassword)
Sets the value of the OldPassword property for this object.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [ -?]+

Parameters:
oldPassword - The new value for the OldPassword property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getNewPassword

public String getNewPassword()
Returns the value of the NewPassword property for this object.

Constraints:
Length: 1 - 128
Pattern: [ -?]+

Returns:
The value of the NewPassword property for this object.

setNewPassword

public void setNewPassword(String newPassword)
Sets the value of the NewPassword property for this object.

Constraints:
Length: 1 - 128
Pattern: [ -?]+

Parameters:
newPassword - The new value for the NewPassword property for this object.

withNewPassword

public ChangePasswordRequest withNewPassword(String newPassword)
Sets the value of the NewPassword property for this object.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [ -?]+

Parameters:
newPassword - The new value for the NewPassword property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.