@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ChangePasswordRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
ChangePasswordRequest() |
Modifier and Type | Method and Description |
---|---|
ChangePasswordRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
ChangePasswordRequest |
withNewPassword(String newPassword)
The new password.
|
ChangePasswordRequest |
withOldPassword(String oldPassword)
The IAM user's current password.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setOldPassword(String oldPassword)
The IAM user's current password.
oldPassword
- The IAM user's current password.public String getOldPassword()
The IAM user's current password.
public ChangePasswordRequest withOldPassword(String oldPassword)
The IAM user's current password.
oldPassword
- The IAM user's current password.public void setNewPassword(String newPassword)
The new password. The new password must conform to the Amazon Web Services account's password policy, if one exists.
The regex pattern that is used to validate this parameter is a
string of characters. That string can include 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. Any
of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management
Console, might restrict the ability to type certain characters because they have special meaning within that
tool.
newPassword
- The new password. The new password must conform to the Amazon Web Services account's password policy, if
one exists.
The regex pattern that is used to validate this parameter is
a string of characters. That string can include 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. Any of these characters are valid in a password. However, many tools, such as the Amazon Web
Services Management Console, might restrict the ability to type certain characters because they have
special meaning within that tool.
public String getNewPassword()
The new password. The new password must conform to the Amazon Web Services account's password policy, if one exists.
The regex pattern that is used to validate this parameter is a
string of characters. That string can include 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. Any
of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management
Console, might restrict the ability to type certain characters because they have special meaning within that
tool.
The regex pattern that is used to validate this parameter
is a string of characters. That string can include 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. Any of these characters are valid in a password. However, many tools, such as the Amazon
Web Services Management Console, might restrict the ability to type certain characters because they have
special meaning within that tool.
public ChangePasswordRequest withNewPassword(String newPassword)
The new password. The new password must conform to the Amazon Web Services account's password policy, if one exists.
The regex pattern that is used to validate this parameter is a
string of characters. That string can include 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. Any
of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management
Console, might restrict the ability to type certain characters because they have special meaning within that
tool.
newPassword
- The new password. The new password must conform to the Amazon Web Services account's password policy, if
one exists.
The regex pattern that is used to validate this parameter is
a string of characters. That string can include 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. Any of these characters are valid in a password. However, many tools, such as the Amazon Web
Services Management Console, might restrict the ability to type certain characters because they have
special meaning within that tool.
public String toString()
toString
in class Object
Object.toString()
public ChangePasswordRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()