public static final class CreateOrUpdateSwimmingLaneRequest.Builder extends Object
public CreateOrUpdateSwimmingLaneRequest.Builder acceptLanguage(String acceptLanguage)
The language of the response. Valid values: zh and en. Default value: zh. The value zh indicates Chinese, and the value en indicates English.
example:zh
public CreateOrUpdateSwimmingLaneRequest.Builder enable(Boolean enable)
Specifies whether to enable the lane.
example:true
public CreateOrUpdateSwimmingLaneRequest.Builder enableRules(Boolean enableRules)
Specifies whether to configure a routing rule for the lane. If an Ingress gateway is used, this parameter is not required.
example:false
public CreateOrUpdateSwimmingLaneRequest.Builder entryRule(String entryRule)
The JSON string.
example:{}
public CreateOrUpdateSwimmingLaneRequest.Builder entryRules(List<CreateOrUpdateSwimmingLaneRequest.EntryRules> entryRules)
public CreateOrUpdateSwimmingLaneRequest.Builder gatewaySwimmingLaneRouteJson(CreateOrUpdateSwimmingLaneRequest.GatewaySwimmingLaneRouteJson gatewaySwimmingLaneRouteJson)
The information about the routing rule for the gateway. This parameter is required when a cloud-native gateway is used as the ingress.
public CreateOrUpdateSwimmingLaneRequest.Builder groupId(Long groupId)
The language of the response. Valid values:****
example:Default value: zh-CN.
115
public CreateOrUpdateSwimmingLaneRequest.Builder id(Long id)
The ID of the primary key. The value -1 indicates a request that is used to create a lane. A value greater than 0 indicates a request that is used to modify a lane.
example:-1
public CreateOrUpdateSwimmingLaneRequest.Builder name(String name)
The name of the lane.
This parameter is required.
example:Test lane
public CreateOrUpdateSwimmingLaneRequest.Builder namespace(String namespace)
public CreateOrUpdateSwimmingLaneRequest.Builder pathIndependentPercentageEnable(Boolean pathIndependentPercentageEnable)
public CreateOrUpdateSwimmingLaneRequest.Builder regionId(String regionId)
The ID of the region.
example:cn-beijing
public CreateOrUpdateSwimmingLaneRequest.Builder tag(String tag)
The tag.
example:gray
public CreateOrUpdateSwimmingLaneRequest build()
Copyright © 2026. All rights reserved.