public static class CreateLoadBalancerRequest.CreateLoadBalancerRequestModificationProtectionConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
reason
The reason why the configuration read-only mode is enabled.
|
String |
status
Specifies whether to enable the configuration read-only mode.
|
| 构造器和说明 |
|---|
CreateLoadBalancerRequestModificationProtectionConfig() |
@NameInMap(value="Reason") public String reason
The reason why the configuration read-only mode is enabled. The value must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\_), and hyphens (-). The value must start with a letter.
> This parameter takes effect only if the **Status** parameter is set to **ConsoleProtection**.
@NameInMap(value="Status") public String status
Specifies whether to enable the configuration read-only mode. Valid values:
* **NonProtection**: does not enable the configuration read-only mode. You cannot set the **Reason** parameter. If the **Reason** parameter is set, the value is cleared.
* **ConsoleProtection**: enables the configuration read-only mode. You can set the **Reason** parameter.
> If you set this parameter to **ConsoleProtection**, you cannot use the NLB 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 © 2023. All rights reserved.