public static final class CreateTransitRouterVpcAttachmentRequest.Builder extends Object
public CreateTransitRouterVpcAttachmentRequest.Builder autoPublishRouteEnabled(Boolean autoPublishRouteEnabled)
Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:
true
public CreateTransitRouterVpcAttachmentRequest.Builder cenId(String cenId)
The ID of the Cloud Enterprise Network (CEN) instance.
example:cen-j3jzhw1zpau2km****
public CreateTransitRouterVpcAttachmentRequest.Builder chargeType(String chargeType)
The billing method. The default value is POSTPAY, which specifies the pay-as-you-go billing method.
example:POSTPAY
public CreateTransitRouterVpcAttachmentRequest.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.
02fb3da4-130e-11e9-8e44-001****
public CreateTransitRouterVpcAttachmentRequest.Builder dryRun(Boolean dryRun)
Specifies whether to perform a dry run. Valid values:
DryRunOperation
error code is returned.false
public CreateTransitRouterVpcAttachmentRequest.Builder ownerAccount(String ownerAccount)
public CreateTransitRouterVpcAttachmentRequest.Builder ownerId(Long ownerId)
public CreateTransitRouterVpcAttachmentRequest.Builder regionId(String regionId)
The ID of the region where the VPC is deployed.
You can call the DescribeChildInstanceRegions operation to query the most recent region list.
example:cn-hangzhou
public CreateTransitRouterVpcAttachmentRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateTransitRouterVpcAttachmentRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateTransitRouterVpcAttachmentRequest.Builder tag(List<CreateTransitRouterVpcAttachmentRequest.Tag> tag)
The information about the tags.
You can specify at most 20 tags in each call.
public CreateTransitRouterVpcAttachmentRequest.Builder transitRouterAttachmentDescription(String transitRouterAttachmentDescription)
The description of the VPC connection.
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:testname
public CreateTransitRouterVpcAttachmentRequest.Builder transitRouterAttachmentName(String transitRouterAttachmentName)
The name of the VPC connection.
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 CreateTransitRouterVpcAttachmentRequest.Builder transitRouterId(String transitRouterId)
The ID of the Enterprise Edition transit router.
example:tr-bp1su1ytdxtataupl****
public CreateTransitRouterVpcAttachmentRequest.Builder transitRouterVPCAttachmentOptions(Map<String,String> transitRouterVPCAttachmentOptions)
Feature configurations of the VPC connection.
public CreateTransitRouterVpcAttachmentRequest.Builder vpcId(String vpcId)
The VPC ID.
This parameter is required.
example:vpc-bp1kbjcre9vtsebo1****
public CreateTransitRouterVpcAttachmentRequest.Builder vpcOwnerId(Long vpcOwnerId)
The ID of the Alibaba Cloud account to which the VPC belongs. The default value is the ID of the current Alibaba Cloud account.
example:If the network instance and CEN instance belong to different Alibaba Cloud accounts, this parameter is required.
1250123456123456
public CreateTransitRouterVpcAttachmentRequest.Builder zoneMappings(List<CreateTransitRouterVpcAttachmentRequest.ZoneMappings> zoneMappings)
A zone that supports Enterprise Edition transit routers.
You can specify at most 10 zones.
This parameter is required.
public CreateTransitRouterVpcAttachmentRequest build()
Copyright © 2025. All rights reserved.