public static final class CreateRulesRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateRulesRequest |
build() |
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 listenerPort(Integer listenerPort)
Valid values: **1 to 65535**.
public CreateRulesRequest.Builder listenerProtocol(String listenerProtocol)
> This parameter is required if the same port is used by listeners that use different protocols.
public CreateRulesRequest.Builder loadBalancerId(String loadBalancerId)
public CreateRulesRequest.Builder ownerAccount(String ownerAccount)
public CreateRulesRequest.Builder ownerId(Long ownerId)
public CreateRulesRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~27584~~) operation to query the most recent region list.
public CreateRulesRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateRulesRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateRulesRequest.Builder ruleList(String ruleList)
* **RuleName**: Required. The value must be of the STRING type. The name of the forwarding rule. The name must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (\_). Forwarding rule names must be unique within the same listener. * **Domain**: Optional. The value must be of the STRING type. The domain name that is associated with the forwarding rule. You must specify at least one of this parameter and **Url**. * **Url**: Optional. The value must be of the STRING type. The URL must be 1 to 80 characters in length and can contain only letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL cannot be a forward slash (/). However, the URL must start with a forward slash (/). You must specify at least one of this parameter and **Domain**. * **VServerGroupId**: Required. The value must be of the STRING type. The ID of the vServer group that is associated with the forwarding rule. > You must specify at least one of `Domain` and `Url`. The combination of `Domain` and `Url` must be unique within the same listener.
public CreateRulesRequest build()
Copyright © 2024. All rights reserved.