Class ChangePasswordRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.identitymanagement.model.ChangePasswordRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class ChangePasswordRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ChangePasswordRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setOldPassword
public void setOldPassword(String oldPassword)
The IAM user's current password.
- Parameters:
oldPassword
- The IAM user's current password.
-
getOldPassword
public String getOldPassword()
The IAM user's current password.
- Returns:
- The IAM user's current password.
-
withOldPassword
public ChangePasswordRequest withOldPassword(String oldPassword)
The IAM user's current password.
- Parameters:
oldPassword
- The IAM user's current password.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNewPassword
public void setNewPassword(String newPassword)
The new password. The new password must conform to the AWS account's password policy, if one exists.
The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space ( ) through the end of the ASCII character range (ÿ). You can also include the tab ( ), line feed ( ), and carriage return ( ) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.
- Parameters:
newPassword
- The new password. The new password must conform to the AWS account's password policy, if one exists.The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space ( ) through the end of the ASCII character range (ÿ). You can also include the tab ( ), line feed ( ), and carriage return ( ) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.
-
getNewPassword
public String getNewPassword()
The new password. The new password must conform to the AWS account's password policy, if one exists.
The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space ( ) through the end of the ASCII character range (ÿ). You can also include the tab ( ), line feed ( ), and carriage return ( ) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.
- Returns:
- The new password. The new password must conform to the AWS
account's password policy, if one exists.
The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space ( ) through the end of the ASCII character range (ÿ). You can also include the tab ( ), line feed ( ), and carriage return ( ) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.
-
withNewPassword
public ChangePasswordRequest withNewPassword(String newPassword)
The new password. The new password must conform to the AWS account's password policy, if one exists.
The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space ( ) through the end of the ASCII character range (ÿ). You can also include the tab ( ), line feed ( ), and carriage return ( ) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.
- Parameters:
newPassword
- The new password. The new password must conform to the AWS account's password policy, if one exists.The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space ( ) through the end of the ASCII character range (ÿ). You can also include the tab ( ), line feed ( ), and carriage return ( ) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.
- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ChangePasswordRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-