public static final class CreateRulesRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateRulesRequest |
build() |
CreateRulesRequest.Builder |
dryRun(Boolean dryRun)
DryRun.
|
CreateRulesRequest.Builder |
listenerPort(Integer listenerPort)
The frontend listener port that is used by the SLB instance.
|
CreateRulesRequest.Builder |
listenerProtocol(String listenerProtocol)
The frontend protocol that is used by the SLB instance.
|
CreateRulesRequest.Builder |
loadBalancerId(String loadBalancerId)
The ID of the SLB instance.
|
CreateRulesRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateRulesRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateRulesRequest.Builder |
regionId(String regionId)
The ID of the region where the Server Load Balancer (SLB) instance is deployed.
|
CreateRulesRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateRulesRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateRulesRequest.Builder |
ruleList(String ruleList)
The forwarding rules that you want to create.
|
public CreateRulesRequest.Builder dryRun(Boolean dryRun)
public CreateRulesRequest.Builder listenerPort(Integer listenerPort)
The frontend listener port that is used by the SLB instance.
Valid values: 1 to 65535.
This parameter is required.
example:443
public CreateRulesRequest.Builder listenerProtocol(String listenerProtocol)
The frontend protocol that is used by the SLB instance.
example:This parameter is required if the same port is used by listeners that use different protocols.
https
public CreateRulesRequest.Builder loadBalancerId(String loadBalancerId)
The ID of the SLB instance.
This parameter is required.
example:lb-bp1ca0zt07t934w******
public CreateRulesRequest.Builder ownerAccount(String ownerAccount)
public CreateRulesRequest.Builder ownerId(Long ownerId)
public CreateRulesRequest.Builder regionId(String regionId)
The ID of the region where the Server Load Balancer (SLB) instance is deployed.
You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
public CreateRulesRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateRulesRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateRulesRequest.Builder ruleList(String ruleList)
The forwarding rules that you want to create. You can create at most 10 forwarding rules in each call. Each forwarding rule contains the following parameters:
You must specify at least one between the
DomainandURLparameters. You can also specify both. The combination ofDomainandUrlmust be unique within the same listener.
This parameter is required.
example:[{"RuleName":"Rule2","Domain":"test.com","VServerGroupId":"rsp-bp114ni******"}]
public CreateRulesRequest build()
Copyright © 2026. All rights reserved.