public static final class CreateTransitRouterEcrAttachmentRequest.Builder extends Object
public CreateTransitRouterEcrAttachmentRequest.Builder cenId(String cenId)
The ID of the Cloud Enterprise Network (CEN) instance.
example:cen-7qthudw0ll6jmc****
public CreateTransitRouterEcrAttachmentRequest.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 CreateTransitRouterEcrAttachmentRequest.Builder dryRun(Boolean dryRun)
Specifies whether to perform a dry run, without performing the actual request. Valid values:
DryRunOperation
error code is returned.false
public CreateTransitRouterEcrAttachmentRequest.Builder ecrId(String ecrId)
The ID of the ECR.
This parameter is required.
example:ecr-upyc0viial107r****
public CreateTransitRouterEcrAttachmentRequest.Builder ecrOwnerId(Long ecrOwnerId)
The ID of the Alibaba Cloud account to which the ECR belongs. By default, the ID of the current Alibaba Cloud account is specified.
example:If you want to connect to a network instance that belongs to a different account, this parameter is required.
1250123456123456
public CreateTransitRouterEcrAttachmentRequest.Builder ownerAccount(String ownerAccount)
public CreateTransitRouterEcrAttachmentRequest.Builder ownerId(Long ownerId)
public CreateTransitRouterEcrAttachmentRequest.Builder regionId(String regionId)
The region ID of the transit router.
You can call the DescribeChildInstanceRegions operation to query the most recent region list.
example:eu-central-1
public CreateTransitRouterEcrAttachmentRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateTransitRouterEcrAttachmentRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateTransitRouterEcrAttachmentRequest.Builder tag(List<CreateTransitRouterEcrAttachmentRequest.Tag> tag)
The tags.
You can specify at most 20 tags in each call.
public CreateTransitRouterEcrAttachmentRequest.Builder transitRouterAttachmentDescription(String transitRouterAttachmentDescription)
The description of the ECR connection.
This parameter is optional. If you enter a description, it must be 1 to 256 characters in length and cannot start with http:// or https://.
example:testdesc
public CreateTransitRouterEcrAttachmentRequest.Builder transitRouterAttachmentName(String transitRouterAttachmentName)
The name of the ECR connection.
The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.
example:nametest
public CreateTransitRouterEcrAttachmentRequest.Builder transitRouterId(String transitRouterId)
The ID of the transit router.
example:tr-bp1su1ytdxtataupl****
public CreateTransitRouterEcrAttachmentRequest build()
Copyright © 2025. All rights reserved.