public static final class ListTransitRouterCidrAllocationRequest.Builder extends Object
public ListTransitRouterCidrAllocationRequest.Builder attachmentId(String attachmentId)
The ID of the network instance connection.
example:tr-attach-2nalp6yksc805w****
public ListTransitRouterCidrAllocationRequest.Builder attachmentName(String attachmentName)
The name of the network instance connection.
example:nametest
public ListTransitRouterCidrAllocationRequest.Builder cidr(String cidr)
The CIDR block of the transit router.
example:192.168.10.0/24
public ListTransitRouterCidrAllocationRequest.Builder cidrBlock(String cidrBlock)
The CIDR blocks that have IP addresses allocated to network instances.
example:192.168.10.0/28
public ListTransitRouterCidrAllocationRequest.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 ListTransitRouterCidrAllocationRequest.Builder dedicatedOwnerId(String dedicatedOwnerId)
The CIDR block that is for exclusive use.
Set the value to VPN, which specifies the CIDR block that is reserved for VPN connections.
example:VPN
public ListTransitRouterCidrAllocationRequest.Builder dryRun(Boolean dryRun)
Specifies whether to perform a dry run. Valid values:
DryRunOperation
error code is returned.false
public ListTransitRouterCidrAllocationRequest.Builder maxResults(Integer maxResults)
The number of entries per page.
If you do not specify a value for MaxResults, entries are returned in one response. After you send the request, the value of MaxResults includes all entries.
If you specify a value for MaxResults, entries are returned in batches. Valid values: 1 to 100. We recommend that you set MaxResults to 20.
The value of MaxResults in the response indicates that number of entries in the current batch.
20
public ListTransitRouterCidrAllocationRequest.Builder nextToken(String nextToken)
The token that determines the start point of the query. Valid values:
FFmyTO70tTpLG6I3FmYAXGKPd****
public ListTransitRouterCidrAllocationRequest.Builder ownerAccount(String ownerAccount)
public ListTransitRouterCidrAllocationRequest.Builder ownerId(Long ownerId)
public ListTransitRouterCidrAllocationRequest.Builder regionId(String regionId)
The region ID of the transit router.
You can call the DescribeChildInstanceRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
public ListTransitRouterCidrAllocationRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ListTransitRouterCidrAllocationRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ListTransitRouterCidrAllocationRequest.Builder transitRouterCidrId(String transitRouterCidrId)
The ID of the CIDR block.
You can call the ListTransitRouterCidr operation to query the ID of a CIDR block.
example:cidr-0zv0q9crqpntzz****
public ListTransitRouterCidrAllocationRequest.Builder transitRouterId(String transitRouterId)
The ID of the transit router.
This parameter is required.
example:tr-p0w3x8c9em72a40nw****
public ListTransitRouterCidrAllocationRequest build()
Copyright © 2025. All rights reserved.