public static final class CreateRouteTableRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateRouteTableRequest.Builder |
associateType(String associateType)
The type of the route table.
|
CreateRouteTableRequest |
build() |
CreateRouteTableRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateRouteTableRequest.Builder |
description(String description)
The description of the route table.
|
CreateRouteTableRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateRouteTableRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateRouteTableRequest.Builder |
regionId(String regionId)
The region ID of the virtual private cloud (VPC) to which the custom route table belongs.
|
CreateRouteTableRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateRouteTableRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateRouteTableRequest.Builder |
routeTableName(String routeTableName)
The name of the route table.
|
CreateRouteTableRequest.Builder |
tag(List<CreateRouteTableRequest.Tag> tag)
The tags of the resource.
|
CreateRouteTableRequest.Builder |
vpcId(String vpcId)
The ID of the VPC to which the custom route table belongs.
|
public CreateRouteTableRequest.Builder associateType(String associateType)
* **VSwitch** (default): vSwitch route table * **Gateway**: gateway route table
public CreateRouteTableRequest.Builder clientToken(String clientToken)
You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters. > If you do not specify this parameter, **ClientToken** is set to the value of **RequestId**. The value of **RequestId** in each API request may be different.
public CreateRouteTableRequest.Builder description(String description)
The description must be 1 to 256 characters in length, and cannot start with `http://` or `https://`.
public CreateRouteTableRequest.Builder ownerAccount(String ownerAccount)
public CreateRouteTableRequest.Builder ownerId(Long ownerId)
public CreateRouteTableRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public CreateRouteTableRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateRouteTableRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateRouteTableRequest.Builder routeTableName(String routeTableName)
The name must be 1 to 128 characters in length, and cannot start with `http://` or `https://`.
public CreateRouteTableRequest.Builder tag(List<CreateRouteTableRequest.Tag> tag)
public CreateRouteTableRequest.Builder vpcId(String vpcId)
If a VPC contains an Elastic Compute Service (ECS) instance that belongs to one of the following instance families, you cannot create a custom route table for the VPC: ecs.c1, ecs.c2, ecs.c4, ecs.ce4, ecs.cm4, ecs.d1, ecs.e3, ecs.e4, ecs.ga1, ecs.gn4, ecs.gn5, ecs.i1, ecs.m1, ecs.m2, ecs.mn4, ecs.n1, ecs.n2, ecs.n4, ecs.s1, ecs.s2, ecs.s3, ecs.se1, ecs.sn1, ecs.sn2, ecs.t1, and ecs.xn4 You must upgrade or release the ECS instance before you can create a custom route table for the VPC. * For more information about how to upgrade an ECS instance, see [Upgrade subscription instances](~~25438~~) and [Change specifications of pay-as-you-go instances](~~60051~~). * For more information about how to release an ECS instance, see [Release an ECS instance](~~25442~~). > If a custom route table is created for a VPC that contains an ECS instance from one of the preceding instance families, you must upgrade or release the ECS instance. Otherwise, the custom route table cannot work as expected.
public CreateRouteTableRequest build()
Copyright © 2024. All rights reserved.