public static final class CreateFlowRuleRequest.Builder extends Object
public CreateFlowRuleRequest.Builder acceptLanguage(String acceptLanguage)
The language of the response. Valid values:
zh
public CreateFlowRuleRequest.Builder appId(String appId)
The application ID.
example:ib09eblv6p@c3df23522******
public CreateFlowRuleRequest.Builder appName(String appName)
The application name.
This parameter is required.
example:spring-cloud-a
public CreateFlowRuleRequest.Builder controlBehavior(Integer controlBehavior)
The throttling effect.
Valid values:
0
public CreateFlowRuleRequest.Builder enable(Boolean enable)
Specifies whether to enable the rule.
Valid values:
true
false
This parameter is required.
example:false
public CreateFlowRuleRequest.Builder limitApp(String limitApp)
public CreateFlowRuleRequest.Builder maxQueueingTimeMs(Integer maxQueueingTimeMs)
The timeout period. Unit: milliseconds. This value is required if the ControlBehavior parameter is set to 2.
example:10
public CreateFlowRuleRequest.Builder namespace(String namespace)
The namespace.
This parameter is required.
example:default
public CreateFlowRuleRequest.Builder regionId(String regionId)
The region in which the instance resides.
example:cn-hangzhou
public CreateFlowRuleRequest.Builder resource(String resource)
The name of the API resource.
This parameter is required.
example:/b
public CreateFlowRuleRequest.Builder resourceType(Integer resourceType)
public CreateFlowRuleRequest.Builder threshold(Integer threshold)
The throttling threshold.
This parameter is required.
example:20
public CreateFlowRuleRequest build()
Copyright © 2026. All rights reserved.