public static final class CreateTransitRouterRouteEntryRequest.Builder extends Object
public CreateTransitRouterRouteEntryRequest.Builder clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
example:If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID is different for each request.
02fb3da4-130e-11e9-8e44-001****
public CreateTransitRouterRouteEntryRequest.Builder dryRun(Boolean dryRun)
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
DryRunOperation
error code is returned.false
public CreateTransitRouterRouteEntryRequest.Builder ownerAccount(String ownerAccount)
public CreateTransitRouterRouteEntryRequest.Builder ownerId(Long ownerId)
public CreateTransitRouterRouteEntryRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateTransitRouterRouteEntryRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateTransitRouterRouteEntryRequest.Builder transitRouterRouteEntryDescription(String transitRouterRouteEntryDescription)
The description of the route.
The description must be 1 to 256 characters in length, and cannot start with http:// or https://. You can also leave this parameter empty.
example:testdesc
public CreateTransitRouterRouteEntryRequest.Builder transitRouterRouteEntryDestinationCidrBlock(String transitRouterRouteEntryDestinationCidrBlock)
The destination CIDR block of the route entry. IPv4 and IPv6 addresses are supported.
This parameter is required.
example:192.168.0.0/24
public CreateTransitRouterRouteEntryRequest.Builder transitRouterRouteEntryName(String transitRouterRouteEntryName)
The name of the route.
The name must be 1 to 128 characters in length, and cannot start with http:// or https://. You can also leave this parameter empty.
example:testname
public CreateTransitRouterRouteEntryRequest.Builder transitRouterRouteEntryNextHopId(String transitRouterRouteEntryNextHopId)
The ID of the network instance connection that you want to specify as the next hop.
example:tr-attach-nls9fzkfat8934****
public CreateTransitRouterRouteEntryRequest.Builder transitRouterRouteEntryNextHopType(String transitRouterRouteEntryNextHopType)
The type of the next hop. Valid values:
This parameter is required.
example:BlackHole
public CreateTransitRouterRouteEntryRequest.Builder transitRouterRouteTableId(String transitRouterRouteTableId)
The ID of the route table of the Enterprise Edition transit router.
This parameter is required.
example:vtb-bp1dudbh2d5na6b50****
public CreateTransitRouterRouteEntryRequest build()
Copyright © 2025. All rights reserved.