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 destination objects of the rule.
|
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 source object of the rule.
|
public ModifyInterceptionRuleRequest.Builder clusterId(String clusterId)
The ID of the container cluster.
example:You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
c17ef568f81884cdab402decd5fcd****
public ModifyInterceptionRuleRequest.Builder dstTarget(Map<String,?> dstTarget)
The destination objects of the rule. The following parameters are included:
{"targetId":600069,"ports":["80/8088"]}
public ModifyInterceptionRuleRequest.Builder interceptType(Integer interceptType)
The interception mode. Valid values:
1
public ModifyInterceptionRuleRequest.Builder orderIndex(Long orderIndex)
The priority of the rule. Valid values: 1 to 1000. A smaller value indicates a higher priority.
example:1
public ModifyInterceptionRuleRequest.Builder ruleId(Long ruleId)
The ID of the rule.
This parameter is required.
example:500018
public ModifyInterceptionRuleRequest.Builder ruleName(String ruleName)
The name of the rule.
example:tetsRule
public ModifyInterceptionRuleRequest.Builder ruleSwitch(Integer ruleSwitch)
Specifies whether the rule is enabled. Valid values:
1
public ModifyInterceptionRuleRequest.Builder srcTarget(Map<String,?> srcTarget)
The source object of the rule. The following parameters are included:
{"targetId":400989}
public ModifyInterceptionRuleRequest build()
Copyright © 2026. All rights reserved.