public static final class CreateTransitRouterCidrRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateTransitRouterCidrRequest |
build() |
CreateTransitRouterCidrRequest.Builder |
cidr(String cidr)
The CIDR block of the transit router.
|
CreateTransitRouterCidrRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateTransitRouterCidrRequest.Builder |
description(String description)
The description of the transit router CIDR block.
|
CreateTransitRouterCidrRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform a dry run.
|
CreateTransitRouterCidrRequest.Builder |
name(String name)
The name of the transit router CIDR block.
|
CreateTransitRouterCidrRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateTransitRouterCidrRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateTransitRouterCidrRequest.Builder |
publishCidrRoute(Boolean publishCidrRoute)
Specifies whether to allow the system to automatically add a route that points to the CIDR block to the route table of the transit router.
|
CreateTransitRouterCidrRequest.Builder |
regionId(String regionId)
The ID of the region to which the transfer router belongs.
|
CreateTransitRouterCidrRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateTransitRouterCidrRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateTransitRouterCidrRequest.Builder |
transitRouterId(String transitRouterId)
The ID of the transit router.
|
public CreateTransitRouterCidrRequest.Builder cidr(String cidr)
The CIDR block of the transit router.
This parameter is required.
example:192.168.10.0/24
public CreateTransitRouterCidrRequest.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 may be different for each request.
123e4567-e89b-12d3-a456-426****
public CreateTransitRouterCidrRequest.Builder description(String description)
The description of the transit router CIDR block.
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:desctest
public CreateTransitRouterCidrRequest.Builder dryRun(Boolean dryRun)
Specifies whether to perform a dry run. Valid values:
DryRunOperation
error code is returned.false
public CreateTransitRouterCidrRequest.Builder name(String name)
The name of the transit router CIDR block.
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:nametest
public CreateTransitRouterCidrRequest.Builder ownerAccount(String ownerAccount)
public CreateTransitRouterCidrRequest.Builder ownerId(Long ownerId)
public CreateTransitRouterCidrRequest.Builder publishCidrRoute(Boolean publishCidrRoute)
Specifies whether to allow the system to automatically add a route that points to the CIDR block to the route table of the transit router.
true (default)
If you set the value to true, after you create a VPN attachment on a private VPN gateway and enable route learning for the VPN attachment, the system automatically adds the following route to the route table of the transit router that is in route learning relationship with the VPN attachment:
A blackhole route whose destination CIDR block is the transit router CIDR block, which refers to the CIDR block from which gateway IP addresses are allocated to the IPsec-VPN connection. The blackhole route is advertised only to the route tables of virtual border routers (VBRs) connected to the transit router.
false
true
public CreateTransitRouterCidrRequest.Builder regionId(String regionId)
The ID of the region to which the transfer router belongs.
You can call the DescribeChildInstanceRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
public CreateTransitRouterCidrRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateTransitRouterCidrRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateTransitRouterCidrRequest.Builder transitRouterId(String transitRouterId)
The ID of the transit router.
This parameter is required.
example:tr-p0w3x8c9em72a40nw****
public CreateTransitRouterCidrRequest build()
Copyright © 2025. All rights reserved.