public static final class UpdateFlowRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
UpdateFlowRuleRequest.Builder |
acceptLanguage(String acceptLanguage)
The language of the response.
|
UpdateFlowRuleRequest.Builder |
appId(String appId)
The application ID.
|
UpdateFlowRuleRequest.Builder |
appName(String appName)
The application name.
|
UpdateFlowRuleRequest |
build() |
UpdateFlowRuleRequest.Builder |
controlBehavior(Integer controlBehavior)
The throttling effect.
|
UpdateFlowRuleRequest.Builder |
enable(Boolean enable)
Specifies whether to enable the rule.
|
UpdateFlowRuleRequest.Builder |
limitApp(String limitApp)
LimitApp.
|
UpdateFlowRuleRequest.Builder |
maxQueueingTimeMs(Integer maxQueueingTimeMs)
The timeout period.
|
UpdateFlowRuleRequest.Builder |
namespace(String namespace)
The namespace.
|
UpdateFlowRuleRequest.Builder |
ruleId(Long ruleId)
The rule ID.
|
UpdateFlowRuleRequest.Builder |
threshold(Integer threshold)
The throttling threshold.
|
public UpdateFlowRuleRequest.Builder acceptLanguage(String acceptLanguage)
The language of the response. Valid values:
zh
public UpdateFlowRuleRequest.Builder appId(String appId)
The application ID.
example:hkhon1po62@c3df23522******
public UpdateFlowRuleRequest.Builder appName(String appName)
The application name.
This parameter is required.
example:spring-cloud-a
public UpdateFlowRuleRequest.Builder controlBehavior(Integer controlBehavior)
The throttling effect.
Valid values:
0
:
fast failure
2
:
in queue
0
public UpdateFlowRuleRequest.Builder enable(Boolean enable)
Specifies whether to enable the rule.
Valid values:
true
false
true
public UpdateFlowRuleRequest.Builder limitApp(String limitApp)
public UpdateFlowRuleRequest.Builder maxQueueingTimeMs(Integer maxQueueingTimeMs)
The timeout period. Unit: milliseconds. This parameter is required when the value of ControlBehavior is set to 2.
example:500
public UpdateFlowRuleRequest.Builder namespace(String namespace)
The namespace.
This parameter is required.
example:default
public UpdateFlowRuleRequest.Builder ruleId(Long ruleId)
The rule ID.
This parameter is required.
example:13
public UpdateFlowRuleRequest.Builder threshold(Integer threshold)
The throttling threshold.
example:30
public UpdateFlowRuleRequest build()
Copyright © 2026. All rights reserved.