public static final class DescribeSceneDefensePoliciesResponseBody.RuntimePolicies.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
DescribeSceneDefensePoliciesResponseBody.RuntimePolicies |
build() |
DescribeSceneDefensePoliciesResponseBody.RuntimePolicies.Builder |
newValue(String newValue)
The protection rule that is applied when the policy takes effect.
|
DescribeSceneDefensePoliciesResponseBody.RuntimePolicies.Builder |
oldValue(String oldValue)
The protection rule that is applied before the policy takes effect.
|
DescribeSceneDefensePoliciesResponseBody.RuntimePolicies.Builder |
policyType(Integer policyType)
The protection policy whose status is changed when the policy takes effect.
|
DescribeSceneDefensePoliciesResponseBody.RuntimePolicies.Builder |
status(Integer status)
The running status of the policy.
|
public DescribeSceneDefensePoliciesResponseBody.RuntimePolicies.Builder newValue(String newValue)
If you set **PolicyType** to **1**, the value is **{"cc_rule_enable": false }**. The value indicates that the Frequency Control policy is disabled. If you set **PolicyType** to **2**, the value is **{"ai_rule_enable": 0}**. The value indicates that the Intelligent Protection policy is disabled.
public DescribeSceneDefensePoliciesResponseBody.RuntimePolicies.Builder policyType(Integer policyType)
* **1**: indicates that the Frequency Control policy is changed. * **2**: indicates that the Intelligent Protection policy is changed.
public DescribeSceneDefensePoliciesResponseBody.RuntimePolicies.Builder status(Integer status)
* **0**: The policy has not been issued or is restored. * **1**: The policy is pending. * **2**: The policy is being restored. * **3**: The policy takes effect. * **4**: The policy fails to take effect. * **5**:The policy fails to be restored. * **6**: The configurations of the protected objects for the policy does not exist because the configurations may be deleted.
public DescribeSceneDefensePoliciesResponseBody.RuntimePolicies.Builder oldValue(String oldValue)
If you set **PolicyType** to **1**, the value is **{"cc_rule_enable": true}**. The value indicates that the Frequency Control policy is enabled. If you set **PolicyType** to **2**, the value is **{"ai_rule_enable": 1}**. The value indicates that the Intelligent Protection policy is enabled.
public DescribeSceneDefensePoliciesResponseBody.RuntimePolicies build()
Copyright © 2023. All rights reserved.