public static final class ModifyTransitRouterCidrRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ModifyTransitRouterCidrRequest |
build() |
ModifyTransitRouterCidrRequest.Builder |
cidr(String cidr)
The new CIDR block of the transit router.
|
ModifyTransitRouterCidrRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
ModifyTransitRouterCidrRequest.Builder |
description(String description)
The new description of the transit router CIDR block.
|
ModifyTransitRouterCidrRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform a dry run.
|
ModifyTransitRouterCidrRequest.Builder |
name(String name)
The new name of the transit router CIDR block.
|
ModifyTransitRouterCidrRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
ModifyTransitRouterCidrRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ModifyTransitRouterCidrRequest.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.
|
ModifyTransitRouterCidrRequest.Builder |
regionId(String regionId)
The ID of the region where the transit router is deployed.
|
ModifyTransitRouterCidrRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ModifyTransitRouterCidrRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
ModifyTransitRouterCidrRequest.Builder |
transitRouterCidrId(String transitRouterCidrId)
The ID of the CIDR block.
|
ModifyTransitRouterCidrRequest.Builder |
transitRouterId(String transitRouterId)
The ID of the transit router.
|
public ModifyTransitRouterCidrRequest.Builder cidr(String cidr)
The new CIDR block of the transit router.
example:192.168.10.0/24
public ModifyTransitRouterCidrRequest.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 ModifyTransitRouterCidrRequest.Builder description(String description)
The new 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 ModifyTransitRouterCidrRequest.Builder dryRun(Boolean dryRun)
Specifies whether to perform a dry run. Valid values:
DryRunOperation
error code is returned.false
public ModifyTransitRouterCidrRequest.Builder name(String name)
The new 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 ModifyTransitRouterCidrRequest.Builder ownerAccount(String ownerAccount)
public ModifyTransitRouterCidrRequest.Builder ownerId(Long ownerId)
public ModifyTransitRouterCidrRequest.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. Valid values:
true
If you specify true, create a private VPN connection, and enable route learning for the VPN connection, the system automatically adds the following route to the transit router route table that is in route learning relationship with the VPN connection: a blackhole route whose destination CIDR block is the CIDR block of the transit router. The CIDR block of the transit router refers to the CIDR block from which IP addresses of IPsec-VPN connections are allocated. The blackhole route is advertised only to the route tables of virtual border routers (VBRs) connected to the transit router.
false
true
public ModifyTransitRouterCidrRequest.Builder regionId(String regionId)
The ID of the region where the transit router is deployed.
You can call the DescribeChildInstanceRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
public ModifyTransitRouterCidrRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyTransitRouterCidrRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyTransitRouterCidrRequest.Builder transitRouterCidrId(String transitRouterCidrId)
The ID of the CIDR block.
You can call the ListTransitRouterCidr operation to query the ID of a CIDR block.
This parameter is required.
example:cidr-0zv0q9crqpntzz****
public ModifyTransitRouterCidrRequest.Builder transitRouterId(String transitRouterId)
The ID of the transit router.
This parameter is required.
example:tr-gw8ergozrv77rtbjd****
public ModifyTransitRouterCidrRequest build()
Copyright © 2025. All rights reserved.