public static final class UpdateAuthPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
UpdateAuthPolicyRequest.Builder |
acceptLanguage(String acceptLanguage)
The language of the response.
|
UpdateAuthPolicyRequest.Builder |
appId(String appId)
The application ID.
|
UpdateAuthPolicyRequest.Builder |
authRule(String authRule)
The content of the service authentication rule.
|
UpdateAuthPolicyRequest |
build() |
UpdateAuthPolicyRequest.Builder |
enable(String enable)
Specifies whether to enable the rule.
|
UpdateAuthPolicyRequest.Builder |
id(String id)
The rule ID.
|
UpdateAuthPolicyRequest.Builder |
k8sNamespace(String k8sNamespace)
The ID of the ACK cluster namespace.
|
UpdateAuthPolicyRequest.Builder |
name(String name)
The name of the rule.
|
UpdateAuthPolicyRequest.Builder |
protocol(String protocol)
The protocol type.
|
UpdateAuthPolicyRequest.Builder |
region(String region)
The region ID.
|
UpdateAuthPolicyRequest.Builder |
source(String source)
The source for application access.
|
public UpdateAuthPolicyRequest.Builder acceptLanguage(String acceptLanguage)
The language of the response. Valid values: zh-CN and en-US. Default value: zh-CN. The value zh-CN indicates Chinese, and the value en-US indicates English.
example:zh
public UpdateAuthPolicyRequest.Builder appId(String appId)
The application ID.
example:abcde@12345
public UpdateAuthPolicyRequest.Builder authRule(String authRule)
The content of the service authentication rule.
example:[{"all":true,"appIds":["f6xqzbao96@4adfaf3c92c947a"],"black":false}]
public UpdateAuthPolicyRequest.Builder enable(String enable)
Specifies whether to enable the rule.
example:true
public UpdateAuthPolicyRequest.Builder id(String id)
The rule ID.
This parameter is required.
example:432
public UpdateAuthPolicyRequest.Builder k8sNamespace(String k8sNamespace)
The ID of the ACK cluster namespace.
example:c19c6c500e1ff4d7abc7bed9b8236***
public UpdateAuthPolicyRequest.Builder name(String name)
The name of the rule.
example:demo-test
public UpdateAuthPolicyRequest.Builder protocol(String protocol)
The protocol type. Valid values:
SPRING_CLOUD
public UpdateAuthPolicyRequest.Builder region(String region)
The region ID.
example:cn-hangzhou
public UpdateAuthPolicyRequest.Builder source(String source)
The source for application access.
example:edasmsc
public UpdateAuthPolicyRequest build()
Copyright © 2026. All rights reserved.