public static final class ModifyInterceptionRuleRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ModifyInterceptionRuleRequest |
build() |
ModifyInterceptionRuleRequest.Builder |
clusterId(String clusterId)
The ID of the container cluster.
|
ModifyInterceptionRuleRequest.Builder |
dstTarget(Map<String,?> dstTarget)
The list of destination network objects.
|
ModifyInterceptionRuleRequest.Builder |
interceptType(Integer interceptType)
The interception mode.
|
ModifyInterceptionRuleRequest.Builder |
orderIndex(Long orderIndex)
The priority of the rule.
|
ModifyInterceptionRuleRequest.Builder |
ruleId(Long ruleId)
The ID of the rule.
|
ModifyInterceptionRuleRequest.Builder |
ruleName(String ruleName)
The name of the rule.
|
ModifyInterceptionRuleRequest.Builder |
ruleSwitch(Integer ruleSwitch)
Specifies whether the rule is enabled.
|
ModifyInterceptionRuleRequest.Builder |
srcTarget(Map<String,?> srcTarget)
The list of source network objects.
|
public ModifyInterceptionRuleRequest.Builder clusterId(String clusterId)
> You can call the [DescribeGroupedContainerInstances](~~182997~~) operation to query the IDs of container clusters.
public ModifyInterceptionRuleRequest.Builder dstTarget(Map<String,?> dstTarget)
public ModifyInterceptionRuleRequest.Builder interceptType(Integer interceptType)
* **1**: block * **2**: alert * **3**: allow
public ModifyInterceptionRuleRequest.Builder orderIndex(Long orderIndex)
public ModifyInterceptionRuleRequest.Builder ruleId(Long ruleId)
public ModifyInterceptionRuleRequest.Builder ruleName(String ruleName)
public ModifyInterceptionRuleRequest.Builder ruleSwitch(Integer ruleSwitch)
* **1**: enabled * **0**: disabled
public ModifyInterceptionRuleRequest.Builder srcTarget(Map<String,?> srcTarget)
public ModifyInterceptionRuleRequest build()
Copyright © 2023. All rights reserved.