public static final class SetPasswordPolicyResponseBody.PasswordPolicy.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
SetPasswordPolicyResponseBody.PasswordPolicy |
build() |
SetPasswordPolicyResponseBody.PasswordPolicy.Builder |
hardExpiry(Boolean hardExpiry)
Indicates whether a password expires.
|
SetPasswordPolicyResponseBody.PasswordPolicy.Builder |
maxLoginAttemps(Integer maxLoginAttemps)
The maximum number of permitted logon attempts within one hour.
|
SetPasswordPolicyResponseBody.PasswordPolicy.Builder |
maxPasswordAge(Integer maxPasswordAge)
The number of days for which a password is valid.
|
SetPasswordPolicyResponseBody.PasswordPolicy.Builder |
minimumPasswordLength(Integer minimumPasswordLength)
The minimum required number of characters in a password.
|
SetPasswordPolicyResponseBody.PasswordPolicy.Builder |
passwordReusePrevention(Integer passwordReusePrevention)
The number of previous passwords that a RAM user is prevented from reusing.
|
SetPasswordPolicyResponseBody.PasswordPolicy.Builder |
requireLowercaseCharacters(Boolean requireLowercaseCharacters)
Indicates whether a password must contain one or more lowercase letters.
|
SetPasswordPolicyResponseBody.PasswordPolicy.Builder |
requireNumbers(Boolean requireNumbers)
Indicates whether a password must contain one or more digits.
|
SetPasswordPolicyResponseBody.PasswordPolicy.Builder |
requireSymbols(Boolean requireSymbols)
Indicates whether a password must contain one or more special characters.
|
SetPasswordPolicyResponseBody.PasswordPolicy.Builder |
requireUppercaseCharacters(Boolean requireUppercaseCharacters)
Indicates whether a password must contain one or more uppercase letters.
|
public SetPasswordPolicyResponseBody.PasswordPolicy.Builder hardExpiry(Boolean hardExpiry)
Indicates whether a password expires.
Valid values: true and false. Default value: false. If the parameter is unspecified, the default value false is returned.
true, the Alibaba Cloud account to which the RAM users belong must reset the password before the RAM users can log on to the Alibaba Cloud Management Console.false, the RAM users can change the passwords after the passwords expire and then log on to the Alibaba Cloud Management Console.false
public SetPasswordPolicyResponseBody.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 SetPasswordPolicyResponseBody.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 SetPasswordPolicyResponseBody.PasswordPolicy.Builder minimumPasswordLength(Integer minimumPasswordLength)
The minimum required number of characters in a password.
example:12
public SetPasswordPolicyResponseBody.PasswordPolicy.Builder passwordReusePrevention(Integer passwordReusePrevention)
The number of previous passwords that a RAM user is prevented from reusing. Default value: 0. The default value indicates that the RAM user can reuse previous passwords.
example:0
public SetPasswordPolicyResponseBody.PasswordPolicy.Builder requireLowercaseCharacters(Boolean requireLowercaseCharacters)
Indicates whether a password must contain one or more lowercase letters.
example:true
public SetPasswordPolicyResponseBody.PasswordPolicy.Builder requireNumbers(Boolean requireNumbers)
Indicates whether a password must contain one or more digits.
example:true
public SetPasswordPolicyResponseBody.PasswordPolicy.Builder requireSymbols(Boolean requireSymbols)
Indicates whether a password must contain one or more special characters.
example:true
public SetPasswordPolicyResponseBody.PasswordPolicy.Builder requireUppercaseCharacters(Boolean requireUppercaseCharacters)
Indicates whether a password must contain one or more uppercase letters.
example:true
public SetPasswordPolicyResponseBody.PasswordPolicy build()
Copyright © 2025. All rights reserved.