public static final class UpdateOpaStrategyNewRequest.Builder extends Object
public UpdateOpaStrategyNewRequest.Builder alarmDetail(UpdateOpaStrategyNewRequest.AlarmDetail alarmDetail)
The risks that you want to detect by using the rule.
public UpdateOpaStrategyNewRequest.Builder clusterId(String clusterId)
The cluster ID.
example:This parameter is deprecated. You can use the Scopes parameter to specify a scope in which cluster parameters take effect.
c870ec78ecbcb41d2a35c679823ef****
public UpdateOpaStrategyNewRequest.Builder clusterName(String clusterName)
The cluster name.
example:This parameter is deprecated.
docker-law
public UpdateOpaStrategyNewRequest.Builder description(String description)
The rule description.
example:4566
public UpdateOpaStrategyNewRequest.Builder imageName(List<String> imageName)
The image names.
public UpdateOpaStrategyNewRequest.Builder label(List<String> label)
The image tags.
public UpdateOpaStrategyNewRequest.Builder maliciousImage(Boolean maliciousImage)
Specifies whether the rule supports malicious Internet images. Valid values:
true
public UpdateOpaStrategyNewRequest.Builder ruleAction(Integer ruleAction)
The action that is performed when the rule is hit. Valid values:
1
public UpdateOpaStrategyNewRequest.Builder scopes(List<UpdateOpaStrategyNewRequest.Scopes> scopes)
The application scope.
public UpdateOpaStrategyNewRequest.Builder strategyId(Long strategyId)
The ID of the rule.
example:You can call the ListOpaClusterStrategyNew operation to query the ID.
1003
public UpdateOpaStrategyNewRequest.Builder strategyName(String strategyName)
The rule name.
example:test
public UpdateOpaStrategyNewRequest.Builder strategyTemplateId(Long strategyTemplateId)
The ID of the rule template.
example:You can call the GetOpaStrategyTemplateSummary operation to query the ID of the rule template.
109
public UpdateOpaStrategyNewRequest.Builder unScanedImage(Boolean unScanedImage)
Specifies whether the rule supports unscanned images. Valid values:
true
public UpdateOpaStrategyNewRequest.Builder whiteList(List<String> whiteList)
The whitelists.
public UpdateOpaStrategyNewRequest build()
Copyright © 2026. All rights reserved.