public static final class GetPasswordPolicyResponseBody.PasswordPolicy.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
GetPasswordPolicyResponseBody.PasswordPolicy |
build() |
GetPasswordPolicyResponseBody.PasswordPolicy.Builder |
hardExpiry(Boolean hardExpiry)
Indicates whether the password has expired.
|
GetPasswordPolicyResponseBody.PasswordPolicy.Builder |
maxLoginAttemps(Integer maxLoginAttemps)
The maximum number of permitted logon attempts within one hour.
|
GetPasswordPolicyResponseBody.PasswordPolicy.Builder |
maxPasswordAge(Integer maxPasswordAge)
The number of days for which a password is valid.
|
GetPasswordPolicyResponseBody.PasswordPolicy.Builder |
minimumPasswordLength(Integer minimumPasswordLength)
The minimum required number of characters in a password.
|
GetPasswordPolicyResponseBody.PasswordPolicy.Builder |
passwordReusePrevention(Integer passwordReusePrevention)
The number of previous passwords that the user is prevented from reusing.
|
GetPasswordPolicyResponseBody.PasswordPolicy.Builder |
requireLowercaseCharacters(Boolean requireLowercaseCharacters)
Indicates whether a password must contain one or more lowercase letters.
|
GetPasswordPolicyResponseBody.PasswordPolicy.Builder |
requireNumbers(Boolean requireNumbers)
Indicates whether a password must contain one or more digits.
|
GetPasswordPolicyResponseBody.PasswordPolicy.Builder |
requireSymbols(Boolean requireSymbols)
Indicates whether a password must contain one or more special characters.
|
GetPasswordPolicyResponseBody.PasswordPolicy.Builder |
requireUppercaseCharacters(Boolean requireUppercaseCharacters)
Indicates whether a password must contain one or more uppercase letters.
|
public GetPasswordPolicyResponseBody.PasswordPolicy.Builder hardExpiry(Boolean hardExpiry)
Indicates whether the password has expired.
Valid values: true and false. Default value: false.
true, the parent Alibaba Cloud account must reset the password before the RAM user can log on to the console.false, the RAM user can change the password and then log on to the console.false
public GetPasswordPolicyResponseBody.PasswordPolicy.Builder maxLoginAttemps(Integer maxLoginAttemps)
The maximum number of permitted logon attempts within one hour. The number of logon attempts is reset to zero if a RAM user changes the password.
example:5
public GetPasswordPolicyResponseBody.PasswordPolicy.Builder maxPasswordAge(Integer maxPasswordAge)
The number of days for which a password is valid. Default value: 0. The default value indicates that the password never expires.
example:0
public GetPasswordPolicyResponseBody.PasswordPolicy.Builder minimumPasswordLength(Integer minimumPasswordLength)
The minimum required number of characters in a password.
example:12
public GetPasswordPolicyResponseBody.PasswordPolicy.Builder passwordReusePrevention(Integer passwordReusePrevention)
The number of previous passwords that the user is prevented from reusing. Default value: 0. The default value indicates that the RAM user is not prevented from reusing previous passwords
example:0
public GetPasswordPolicyResponseBody.PasswordPolicy.Builder requireLowercaseCharacters(Boolean requireLowercaseCharacters)
Indicates whether a password must contain one or more lowercase letters.
example:true
public GetPasswordPolicyResponseBody.PasswordPolicy.Builder requireNumbers(Boolean requireNumbers)
Indicates whether a password must contain one or more digits.
example:true
public GetPasswordPolicyResponseBody.PasswordPolicy.Builder requireSymbols(Boolean requireSymbols)
Indicates whether a password must contain one or more special characters.
example:true
public GetPasswordPolicyResponseBody.PasswordPolicy.Builder requireUppercaseCharacters(Boolean requireUppercaseCharacters)
Indicates whether a password must contain one or more uppercase letters.
example:true
public GetPasswordPolicyResponseBody.PasswordPolicy build()
Copyright © 2025. All rights reserved.