public static final class SetSecurityPreferenceRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
SetSecurityPreferenceRequest.Builder |
allowUserToChangePassword(Boolean allowUserToChangePassword)
Specifies whether RAM users can change their passwords.
|
SetSecurityPreferenceRequest.Builder |
allowUserToManageAccessKeys(Boolean allowUserToManageAccessKeys)
Specifies whether RAM users can manage their AccessKey pairs.
|
SetSecurityPreferenceRequest.Builder |
allowUserToManageMFADevices(Boolean allowUserToManageMFADevices)
Specifies whether RAM users can manage their MFA devices.
|
SetSecurityPreferenceRequest.Builder |
allowUserToManagePublicKeys(Boolean allowUserToManagePublicKeys)
Specifies whether RAM users can manage their public keys.
|
SetSecurityPreferenceRequest |
build() |
SetSecurityPreferenceRequest.Builder |
enableSaveMFATicket(Boolean enableSaveMFATicket)
Specifies whether to remember the multi-factor authentication (MFA) devices of Resource Access Management (RAM) users for seven days.
|
SetSecurityPreferenceRequest.Builder |
loginNetworkMasks(String loginNetworkMasks)
The subnet mask that specifies the IP addresses from which you can log on to the Alibaba Cloud Management Console.
|
SetSecurityPreferenceRequest.Builder |
loginSessionDuration(Integer loginSessionDuration)
The validity period of the logon session of RAM users.
|
public SetSecurityPreferenceRequest.Builder allowUserToChangePassword(Boolean allowUserToChangePassword)
Specifies whether RAM users can change their passwords. Valid values:
true
public SetSecurityPreferenceRequest.Builder allowUserToManageAccessKeys(Boolean allowUserToManageAccessKeys)
Specifies whether RAM users can manage their AccessKey pairs. Valid values:
false
public SetSecurityPreferenceRequest.Builder allowUserToManageMFADevices(Boolean allowUserToManageMFADevices)
Specifies whether RAM users can manage their MFA devices. Valid values:
true
public SetSecurityPreferenceRequest.Builder allowUserToManagePublicKeys(Boolean allowUserToManagePublicKeys)
Specifies whether RAM users can manage their public keys. Valid values:
example:This parameter is valid only for the Japan site.
false
public SetSecurityPreferenceRequest.Builder enableSaveMFATicket(Boolean enableSaveMFATicket)
Specifies whether to remember the multi-factor authentication (MFA) devices of Resource Access Management (RAM) users for seven days. Valid values:
true
public SetSecurityPreferenceRequest.Builder loginNetworkMasks(String loginNetworkMasks)
The subnet mask that specifies the IP addresses from which you can log on to the Alibaba Cloud Management Console. This parameter takes effect on password-based logon and single sign-on (SSO). However, this parameter does not take effect on API calls that are authenticated by using AccessKey pairs.
If you need to specify multiple subnet masks, separate the subnet masks with semicolons (;). Example: 192.168.0.0/16;10.0.0.0/8.
You can specify up to 40 subnet masks. The total length of the subnet masks can be a maximum of 512 characters.
example:10.0.0.0/8
public SetSecurityPreferenceRequest.Builder loginSessionDuration(Integer loginSessionDuration)
The validity period of the logon session of RAM users.
Valid values: 1 to 24. Default value: 6. Unit: hours.
example:6
public SetSecurityPreferenceRequest build()
Copyright © 2025. All rights reserved.