public static final class CreateInterceptionRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateInterceptionRuleRequest |
build() |
CreateInterceptionRuleRequest.Builder |
clusterId(String clusterId)
The ID of the container cluster.
|
CreateInterceptionRuleRequest.Builder |
clusterName(String clusterName)
The name of the cluster.
|
CreateInterceptionRuleRequest.Builder |
dstTargetList(Map<String,?> dstTargetList)
The information about the destination network object.
|
CreateInterceptionRuleRequest.Builder |
interceptType(Long interceptType)
The action on traffic.
|
CreateInterceptionRuleRequest.Builder |
orderIndex(Long orderIndex)
The priority of the defense rule.
|
CreateInterceptionRuleRequest.Builder |
ruleName(String ruleName)
The name of the defense rule.
|
CreateInterceptionRuleRequest.Builder |
ruleSwitch(Integer ruleSwitch)
Specifies the status of the defense rule.
|
CreateInterceptionRuleRequest.Builder |
ruleType(String ruleType)
The type of the defense rule.
|
CreateInterceptionRuleRequest.Builder |
srcTarget(Map<String,?> srcTarget)
The source network object.
|
public CreateInterceptionRuleRequest.Builder clusterId(String clusterId)
The ID of the container cluster.
You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
This parameter is required.
example:c35xxxa416
public CreateInterceptionRuleRequest.Builder clusterName(String clusterName)
The name of the cluster.
This parameter is required.
example:sas-test-cnnf
public CreateInterceptionRuleRequest.Builder dstTargetList(Map<String,?> dstTargetList)
The information about the destination network object. The value of this parameter contains the following fields:
[ { "targetId": 600036, "ports": [ "1/65535" ] } ]
public CreateInterceptionRuleRequest.Builder interceptType(Long interceptType)
The action on traffic. Valid values:
This parameter is required.
example:1
public CreateInterceptionRuleRequest.Builder orderIndex(Long orderIndex)
The priority of the defense rule. Valid values: 1 to 1000. A smaller value indicates a higher priority.
This parameter is required.
example:1
public CreateInterceptionRuleRequest.Builder ruleName(String ruleName)
The name of the defense rule.
This parameter is required.
example:test-rule-1
public CreateInterceptionRuleRequest.Builder ruleSwitch(Integer ruleSwitch)
Specifies the status of the defense rule. Valid values:
This parameter is required.
example:0
public CreateInterceptionRuleRequest.Builder ruleType(String ruleType)
The type of the defense rule. Valid values:
customize
public CreateInterceptionRuleRequest.Builder srcTarget(Map<String,?> srcTarget)
The source network object. The value of this parameter contains the following field:
{"targetId":301940}
public CreateInterceptionRuleRequest build()
Copyright © 2026. All rights reserved.