public static final class CreateGatewayFlowRuleRequest.Builder extends Object
public CreateGatewayFlowRuleRequest.Builder acceptLanguage(String acceptLanguage)
The language in which you want to display the results. Valid values: zh and en. zh indicates Chinese, which is the default value. en indicates English.
example:zh
public CreateGatewayFlowRuleRequest.Builder behaviorType(Integer behaviorType)
The type of the web fallback behavior.
0: returns the specified content.
1: redirects to the specified page.
This parameter is required.
example:0
public CreateGatewayFlowRuleRequest.Builder bodyEncoding(Integer bodyEncoding)
The encoding format.
0: normal text
1: JSON
example:0
public CreateGatewayFlowRuleRequest.Builder enable(Integer enable)
Specifies whether to enable the throttling rule.
0: disables the throttling rule.
1: enables the throttling rule.
This parameter is required.
example:0
public CreateGatewayFlowRuleRequest.Builder gatewayId(Long gatewayId)
The ID of the gateway.
example:14407
public CreateGatewayFlowRuleRequest.Builder gatewayUniqueId(String gatewayUniqueId)
The unique ID of the gateway.
This parameter is required.
example:gw-e2d226bba4b2445c9e29fa7f8216****
public CreateGatewayFlowRuleRequest.Builder responseContentBody(String responseContentBody)
The HTTP text to be returned.
example:text
public CreateGatewayFlowRuleRequest.Builder responseRedirectUrl(String responseRedirectUrl)
The address to be redirected to.
example:www.******.com
public CreateGatewayFlowRuleRequest.Builder responseStatusCode(Integer responseStatusCode)
The HTTP status code.
example:429
public CreateGatewayFlowRuleRequest.Builder routeId(Long routeId)
The ID of the route.
This parameter is required.
example:52853
public CreateGatewayFlowRuleRequest.Builder routeName(String routeName)
The name of the routing rule.
This parameter is required.
example:routeName
public CreateGatewayFlowRuleRequest.Builder threshold(Integer threshold)
The overall queries per second (QPS) threshold.
This parameter is required.
example:10
public CreateGatewayFlowRuleRequest build()
Copyright © 2026. All rights reserved.