@Generated(value="software.amazon.awssdk:codegen") public final class ChangePasswordRequest extends IamRequest implements ToCopyableBuilder<ChangePasswordRequest.Builder,ChangePasswordRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
ChangePasswordRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static ChangePasswordRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
newPassword()
The new password.
|
String |
oldPassword()
The IAM user's current password.
|
static Class<? extends ChangePasswordRequest.Builder> |
serializableBuilderClass() |
ChangePasswordRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String oldPassword()
The IAM user's current password.
public String newPassword()
The new password. The new password must conform to the AWS account's password policy, if one exists.
The regex pattern used to validate 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.
The regex pattern used to validate 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.
public ChangePasswordRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ChangePasswordRequest.Builder,ChangePasswordRequest>
toBuilder
in class IamRequest
public static ChangePasswordRequest.Builder builder()
public static Class<? extends ChangePasswordRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.