public static final class CreateRouteEntryRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateRouteEntryRequest |
build() |
CreateRouteEntryRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateRouteEntryRequest.Builder |
description(String description)
The description of the custom route entry.
|
CreateRouteEntryRequest.Builder |
destinationCidrBlock(String destinationCidrBlock)
The destination CIDR block of the custom route entry.
|
CreateRouteEntryRequest.Builder |
nextHopId(String nextHopId)
The ID of the next hop.
|
CreateRouteEntryRequest.Builder |
nextHopList(List<CreateRouteEntryRequest.NextHopList> nextHopList)
The next hop list.
|
CreateRouteEntryRequest.Builder |
nextHopType(String nextHopType)
The type of next hop of the custom route entry.
|
CreateRouteEntryRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateRouteEntryRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateRouteEntryRequest.Builder |
regionId(String regionId)
The region ID of the route table.
|
CreateRouteEntryRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateRouteEntryRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateRouteEntryRequest.Builder |
routeEntryName(String routeEntryName)
The name of the custom route entry that you want to add.
|
CreateRouteEntryRequest.Builder |
routeTableId(String routeTableId)
The ID of the route table to which you want to add a custom route entry.
|
public CreateRouteEntryRequest.Builder clientToken(String clientToken)
You can use the client to generate the value, but you must make sure that the value is unique among different requests. The ClientToken value can contain only ASCII characters. > If you do not specify this parameter, **ClientToken** is set to the value of **RequestId**. The value of **RequestId** for each API request may be different.
public CreateRouteEntryRequest.Builder description(String description)
The description must be 1 to 256 characters in length, and cannot start with `http://` or `https://`.
public CreateRouteEntryRequest.Builder destinationCidrBlock(String destinationCidrBlock)
* The destination CIDR block is not 100.64.0.0/10 or a subset of 100.64.0.0/10. * The destination CIDR block of the custom route entry is different from the destination CIDR blocks of other route entries in the same route table.
public CreateRouteEntryRequest.Builder nextHopId(String nextHopId)
public CreateRouteEntryRequest.Builder nextHopList(List<CreateRouteEntryRequest.NextHopList> nextHopList)
public CreateRouteEntryRequest.Builder nextHopType(String nextHopType)
* **Instance**: an Elastic Compute Service (ECS) instance. This is the default value. * **HaVip**: a high-availability virtual IP address (HAVIP). * **RouterInterface**: a router interface. * **NetworkInterface**: an elastic network interface (ENI). * **VpnGateway**: a VPN gateway. * **IPv6Gateway**: an IPv6 gateway. * **NatGateway**: a NAT gateway. * **Attachment**: a transit router. * **VpcPeer**: a VPC peering connection. * **Ipv4Gateway**: an IPv4 gateway. * **GatewayEndpoint**: a gateway endpoint. * **Ecr**: a Express Connect Router (ECR).
public CreateRouteEntryRequest.Builder ownerAccount(String ownerAccount)
public CreateRouteEntryRequest.Builder ownerId(Long ownerId)
public CreateRouteEntryRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public CreateRouteEntryRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateRouteEntryRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateRouteEntryRequest.Builder routeEntryName(String routeEntryName)
The name must be 1 to 128 characters in length, and cannot start with `http://` or `https://`.
public CreateRouteEntryRequest.Builder routeTableId(String routeTableId)
public CreateRouteEntryRequest build()
Copyright © 2024. All rights reserved.