public static class CreateLoadBalancerRequest.CreateLoadBalancerRequestModificationProtectionConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
reason
The reason for enabling the configuration read-only mode.
|
String |
status
Specifies whether to enable the configuration read-only mode.
|
| 构造器和说明 |
|---|
CreateLoadBalancerRequestModificationProtectionConfig() |
@NameInMap(value="Reason") public String reason
The reason for enabling the configuration read-only mode. The reason must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The reason must start with a letter.
> This parameter takes effect only if `Status` is set to **ConsoleProtection**.
@NameInMap(value="Status") public String status
Specifies whether to enable the configuration read-only mode. Valid values:
* **NonProtection**: disables the configuration read-only mode. In this case, you cannot specify ModificationProtectionReason. If you specify ModificationProtectionReason, the value of the parameter is cleared.
* **ConsoleProtection**: enables the configuration read-only mode. In this case, you can specify ModificationProtectionReason.
> If you set this parameter to **ConsoleProtection**, you cannot use the ALB console to modify instance configurations. However, you can call API operations to modify instance configurations.
public CreateLoadBalancerRequestModificationProtectionConfig()
public static CreateLoadBalancerRequest.CreateLoadBalancerRequestModificationProtectionConfig build(Map<String,?> map) throws Exception
Exceptionpublic CreateLoadBalancerRequest.CreateLoadBalancerRequestModificationProtectionConfig setReason(String reason)
public String getReason()
public CreateLoadBalancerRequest.CreateLoadBalancerRequestModificationProtectionConfig setStatus(String status)
public String getStatus()
Copyright © 2024. All rights reserved.