public static final class GetSecurityPreferenceResponseBody.LoginProfilePreference.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
GetSecurityPreferenceResponseBody.LoginProfilePreference.Builder |
allowUserToChangePassword(Boolean allowUserToChangePassword)
Indicates whether RAM users can change their passwords.
|
GetSecurityPreferenceResponseBody.LoginProfilePreference |
build() |
GetSecurityPreferenceResponseBody.LoginProfilePreference.Builder |
enableSaveMFATicket(Boolean enableSaveMFATicket)
Indicates whether RAM users can save security codes for multi-factor authentication (MFA) during logon.
|
GetSecurityPreferenceResponseBody.LoginProfilePreference.Builder |
loginNetworkMasks(String loginNetworkMasks)
The subnet mask that indicates the IP addresses from which logon to the Alibaba Cloud Management Console is allowed.
|
GetSecurityPreferenceResponseBody.LoginProfilePreference.Builder |
loginSessionDuration(Integer loginSessionDuration)
The validity period of a logon session of a RAM user.
|
public GetSecurityPreferenceResponseBody.LoginProfilePreference.Builder allowUserToChangePassword(Boolean allowUserToChangePassword)
Indicates whether RAM users can change their passwords. Valid values:
true
public GetSecurityPreferenceResponseBody.LoginProfilePreference.Builder enableSaveMFATicket(Boolean enableSaveMFATicket)
Indicates whether RAM users can save security codes for multi-factor authentication (MFA) during logon. Each security code is valid for seven days. Valid values:
false
public GetSecurityPreferenceResponseBody.LoginProfilePreference.Builder loginNetworkMasks(String loginNetworkMasks)
The subnet mask that indicates the IP addresses from which logon to the Alibaba Cloud Management Console is allowed. This parameter applies to password-based logon and single sign-on (SSO). However, this parameter does not apply to API calls that are authenticated based on AccessKey pairs.
If more than one subnet mask is specified, the masks are separated with semicolons (;), for example, 192.168.0.0/16;10.0.0.0/8.
example:10.0.0.0/8
public GetSecurityPreferenceResponseBody.LoginProfilePreference.Builder loginSessionDuration(Integer loginSessionDuration)
The validity period of a logon session of a RAM user. Unit: hours.
example:6
public GetSecurityPreferenceResponseBody.LoginProfilePreference build()
Copyright © 2025. All rights reserved.