public static final class CreateVpnRouteEntryRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateVpnRouteEntryRequest |
build() |
CreateVpnRouteEntryRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateVpnRouteEntryRequest.Builder |
description(String description)
The description of the destination-based route.
|
CreateVpnRouteEntryRequest.Builder |
nextHop(String nextHop)
The next hop of the destination-based route.
|
CreateVpnRouteEntryRequest.Builder |
overlayMode(String overlayMode)
The tunneling protocol.
|
CreateVpnRouteEntryRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateVpnRouteEntryRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateVpnRouteEntryRequest.Builder |
publishVpc(Boolean publishVpc)
Specifies whether to advertise the destination-based route to a virtual private cloud (VPC) route table.
|
CreateVpnRouteEntryRequest.Builder |
regionId(String regionId)
The ID of the region where the VPN gateway is created.
|
CreateVpnRouteEntryRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateVpnRouteEntryRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateVpnRouteEntryRequest.Builder |
routeDest(String routeDest)
The destination CIDR block of the destination-based route.
|
CreateVpnRouteEntryRequest.Builder |
vpnGatewayId(String vpnGatewayId)
The ID of the VPN gateway.
|
CreateVpnRouteEntryRequest.Builder |
weight(Integer weight)
The weight of the destination-based route.
|
public CreateVpnRouteEntryRequest.Builder clientToken(String clientToken)
You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters. > If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
public CreateVpnRouteEntryRequest.Builder description(String description)
The description must be **1** to **100** characters in length, and cannot start with `http://` or `https://`.
public CreateVpnRouteEntryRequest.Builder nextHop(String nextHop)
public CreateVpnRouteEntryRequest.Builder overlayMode(String overlayMode)
public CreateVpnRouteEntryRequest.Builder ownerAccount(String ownerAccount)
public CreateVpnRouteEntryRequest.Builder ownerId(Long ownerId)
public CreateVpnRouteEntryRequest.Builder publishVpc(Boolean publishVpc)
* **true** * **false**
public CreateVpnRouteEntryRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public CreateVpnRouteEntryRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateVpnRouteEntryRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateVpnRouteEntryRequest.Builder routeDest(String routeDest)
public CreateVpnRouteEntryRequest.Builder vpnGatewayId(String vpnGatewayId)
public CreateVpnRouteEntryRequest.Builder weight(Integer weight)
* **100**: a high priority * **0**: a low priority
public CreateVpnRouteEntryRequest build()
Copyright © 2024. All rights reserved.