public static final class CreateTransitRouterVpnAttachmentRequest.Builder extends Object
public CreateTransitRouterVpnAttachmentRequest.Builder autoPublishRouteEnabled(Boolean autoPublishRouteEnabled)
Specifies whether to allow the transit router to automatically advertise routes to the IPsec-VPN attachment. Valid values:
true
public CreateTransitRouterVpnAttachmentRequest.Builder cenId(String cenId)
The ID of the Cloud Enterprise Network (CEN) instance.
example:cen-rsgxs8ng2awen2****
public CreateTransitRouterVpnAttachmentRequest.Builder chargeType(String chargeType)
The billing method.
Set the value to POSTPAY, which is the default value and specifies the pay-as-you-go billing method.
example:POSTPAY
public CreateTransitRouterVpnAttachmentRequest.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 all requests. The token can contain only ASCII characters.
example:If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId for each API request may be different.
123e4567-e89b-12d3-a456-42665544****
public CreateTransitRouterVpnAttachmentRequest.Builder dryRun(Boolean dryRun)
Specifies whether to perform a dry run. Valid values:
DryRunOperation
error code is returned.false
public CreateTransitRouterVpnAttachmentRequest.Builder ownerAccount(String ownerAccount)
public CreateTransitRouterVpnAttachmentRequest.Builder ownerId(Long ownerId)
public CreateTransitRouterVpnAttachmentRequest.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.
example:cn-hangzhou
public CreateTransitRouterVpnAttachmentRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateTransitRouterVpnAttachmentRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateTransitRouterVpnAttachmentRequest.Builder tag(List<CreateTransitRouterVpnAttachmentRequest.Tag> tag)
The tags.
You can specify at most 20 tags in each call.
public CreateTransitRouterVpnAttachmentRequest.Builder transitRouterAttachmentDescription(String transitRouterAttachmentDescription)
The description of the VPN attachment.
The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http://
or https://
.
desctest
public CreateTransitRouterVpnAttachmentRequest.Builder transitRouterAttachmentName(String transitRouterAttachmentName)
The name of the VPN attachment.
The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
example:nametest
public CreateTransitRouterVpnAttachmentRequest.Builder transitRouterId(String transitRouterId)
The ID of the transit router.
example:tr-p0wm740vjnbaprv0m****
public CreateTransitRouterVpnAttachmentRequest.Builder vpnId(String vpnId)
The ID of the IPsec-VPN attachment.
This parameter is required.
example:vco-p0w042cqwvlhl4zyw****
public CreateTransitRouterVpnAttachmentRequest.Builder vpnOwnerId(Long vpnOwnerId)
The ID of the Alibaba Cloud account to which the IPsec-VPN connection belongs.
1210123456123456
public CreateTransitRouterVpnAttachmentRequest.Builder zone(List<CreateTransitRouterVpnAttachmentRequest.Zone> zone)
The ID of the zone in the current region.
Resources are deployed in the specified zone.
public CreateTransitRouterVpnAttachmentRequest build()
Copyright © 2025. All rights reserved.