public static final class CreateCenRouteMapRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateCenRouteMapRequest.Builder |
asPathMatchMode(String asPathMatchMode)
The match method that is used to match routes based on the AS path.
|
CreateCenRouteMapRequest |
build() |
CreateCenRouteMapRequest.Builder |
cenId(String cenId)
The ID of the CEN instance.
|
CreateCenRouteMapRequest.Builder |
cenRegionId(String cenRegionId)
The ID of the region in which the routing policy is applied.
|
CreateCenRouteMapRequest.Builder |
cidrMatchMode(String cidrMatchMode)
The match method that is used to match routes against the prefix list.
|
CreateCenRouteMapRequest.Builder |
communityMatchMode(String communityMatchMode)
The match method that is used to match routes based on the community.
|
CreateCenRouteMapRequest.Builder |
communityOperateMode(String communityOperateMode)
The action to be performed on the community.
|
CreateCenRouteMapRequest.Builder |
description(String description)
The description of the routing policy.
|
CreateCenRouteMapRequest.Builder |
destinationChildInstanceTypes(List<String> destinationChildInstanceTypes)
The types of destination network instance to which the routes belong.
|
CreateCenRouteMapRequest.Builder |
destinationCidrBlocks(List<String> destinationCidrBlocks)
The prefix list against which routes are matched.
|
CreateCenRouteMapRequest.Builder |
destinationInstanceIds(List<String> destinationInstanceIds)
The IDs of the destination network instances to which the routes belong.
|
CreateCenRouteMapRequest.Builder |
destinationInstanceIdsReverseMatch(Boolean destinationInstanceIdsReverseMatch)
Specifies whether to exclude destination instance IDs.
|
CreateCenRouteMapRequest.Builder |
destinationRegionIds(List<String> destinationRegionIds)
The destination region IDs of the route.
|
CreateCenRouteMapRequest.Builder |
destinationRouteTableIds(List<String> destinationRouteTableIds)
The IDs of the destination route tables to which routes are evaluated.
|
CreateCenRouteMapRequest.Builder |
mapResult(String mapResult)
The action to be performed on a route that meets all the match conditions.
|
CreateCenRouteMapRequest.Builder |
matchAddressType(String matchAddressType)
The type of IP address in the match condition.
|
CreateCenRouteMapRequest.Builder |
matchAsns(List<Long> matchAsns)
The AS paths based on which routes are compared.
|
CreateCenRouteMapRequest.Builder |
matchCommunitySet(List<String> matchCommunitySet)
The community set based on which routes are compared.
|
CreateCenRouteMapRequest.Builder |
nextPriority(Integer nextPriority)
The priority of the routing policy that you want to associate with the current one.
|
CreateCenRouteMapRequest.Builder |
operateCommunitySet(List<String> operateCommunitySet)
The community set on which actions are performed.
|
CreateCenRouteMapRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateCenRouteMapRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateCenRouteMapRequest.Builder |
preference(Integer preference)
The new priority of the route.
|
CreateCenRouteMapRequest.Builder |
prependAsPath(List<Long> prependAsPath)
The AS paths that are prepended by using an action statement when regional gateways receive or advertise routes.
|
CreateCenRouteMapRequest.Builder |
priority(Integer priority)
The priority of the routing policy.
|
CreateCenRouteMapRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateCenRouteMapRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateCenRouteMapRequest.Builder |
routeTypes(List<String> routeTypes)
The type of route to be compared.
|
CreateCenRouteMapRequest.Builder |
sourceChildInstanceTypes(List<String> sourceChildInstanceTypes)
The types of source network instance to which the routes belong.
|
CreateCenRouteMapRequest.Builder |
sourceInstanceIds(List<String> sourceInstanceIds)
The IDs of the source network instances to which the routes belong.
|
CreateCenRouteMapRequest.Builder |
sourceInstanceIdsReverseMatch(Boolean sourceInstanceIdsReverseMatch)
Specifies whether to exclude source instance IDs.
|
CreateCenRouteMapRequest.Builder |
sourceRegionIds(List<String> sourceRegionIds)
The IDs of the source regions from which routes are evaluated.
|
CreateCenRouteMapRequest.Builder |
sourceRouteTableIds(List<String> sourceRouteTableIds)
The IDs of the source route tables from which routes are evaluated.
|
CreateCenRouteMapRequest.Builder |
transitRouterRouteTableId(String transitRouterRouteTableId)
The ID of the route table of the transit router.
|
CreateCenRouteMapRequest.Builder |
transmitDirection(String transmitDirection)
The direction in which the routing policy is applied.
|
public CreateCenRouteMapRequest.Builder asPathMatchMode(String asPathMatchMode)
The match method that is used to match routes based on the AS path. Valid values:
Include
public CreateCenRouteMapRequest.Builder cenId(String cenId)
The ID of the CEN instance.
This parameter is required.
example:cen-7qthudw0ll6jmc****
public CreateCenRouteMapRequest.Builder cenRegionId(String cenRegionId)
The ID of the region in which the routing policy is applied.
You can call the DescribeChildInstanceRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
public CreateCenRouteMapRequest.Builder cidrMatchMode(String cidrMatchMode)
The match method that is used to match routes against the prefix list. Valid values:
For example, if you set the match condition to 1.1.0.0/16 and fuzzy match is applied, the route whose prefix is 1.1.1.0/24 meets the match condition.
For example, if you set the match condition to 1.1.0.0/16 and exact match is applied, only the route whose prefix is 1.1.0.0/16 meets the match condition.
example:Include
public CreateCenRouteMapRequest.Builder communityMatchMode(String communityMatchMode)
The match method that is used to match routes based on the community. Valid values:
Include
public CreateCenRouteMapRequest.Builder communityOperateMode(String communityOperateMode)
The action to be performed on the community. Valid values:
This parameter specifies the action to be performed when a route meets the match condition.
example:Additive
public CreateCenRouteMapRequest.Builder description(String description)
The description of the routing policy.
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:desctest
public CreateCenRouteMapRequest.Builder destinationChildInstanceTypes(List<String> destinationChildInstanceTypes)
The types of destination network instance to which the routes belong. The following types of network instances are supported:
VPC: VPC
VBR: VBR
CCN: CCN instance
VPN: IPsec connection
This parameter does not take effect if the IPsec-VPN connection or SSL client is associated with a transit router through a VPN gateway and a VPC. This parameter takes effect only if the IPsec connection is directly connected to the transit router.
You can specify one or more network instance types.
example:The destination network instance types are valid only if the routing policy is applied to scenarios where routes are advertised from the gateway in the current region to network instances in the current region.
VPC
public CreateCenRouteMapRequest.Builder destinationCidrBlocks(List<String> destinationCidrBlocks)
The prefix list against which routes are matched.
Specify IP addresses in CIDR notations. You can specify at most 32 CIDR blocks.
IPv4 and IPv4 addresses are supported.
example:10.10.10.0/24
public CreateCenRouteMapRequest.Builder destinationInstanceIds(List<String> destinationInstanceIds)
The IDs of the destination network instances to which the routes belong. The following network instance types are supported:
You can enter at most 32 IDs.
example:The destination instance IDs take effect only when Direction is set to Export from Regional Gateway and the destination instances are deployed in the current region.
vpc-afrfs434465fdf****
public CreateCenRouteMapRequest.Builder destinationInstanceIdsReverseMatch(Boolean destinationInstanceIdsReverseMatch)
Specifies whether to exclude destination instance IDs. Valid values:
false
public CreateCenRouteMapRequest.Builder destinationRegionIds(List<String> destinationRegionIds)
The destination region IDs of the route. You can specify at most 32 region IDs.
public CreateCenRouteMapRequest.Builder destinationRouteTableIds(List<String> destinationRouteTableIds)
The IDs of the destination route tables to which routes are evaluated. You can enter at most 32 route table IDs.
example:The destination route table IDs take effect only when Direction is set to Export from Regional Gateway and the destination route tables belong to network instances deployed in the current region.
vtb-adefrgtr144vf****
public CreateCenRouteMapRequest.Builder mapResult(String mapResult)
The action to be performed on a route that meets all the match conditions. Valid values:
This parameter is required.
example:Permit
public CreateCenRouteMapRequest.Builder matchAddressType(String matchAddressType)
The type of IP address in the match condition. Valid values:
This parameter can be empty. If no value is specified, all types of IP address are a match.
example:IPv4
public CreateCenRouteMapRequest.Builder matchAsns(List<Long> matchAsns)
The AS paths based on which routes are compared.
You can specify at most 32 AS numbers.
example:Only the AS-SEQUENCE parameter is supported. The AS-SET, AS-CONFED-SEQUENCE, and AS-CONFED-SET parameters are not supported. In other words, only the AS number list is supported. Sets and sub-lists are not supported.
65501
public CreateCenRouteMapRequest.Builder matchCommunitySet(List<String> matchCommunitySet)
The community set based on which routes are compared.
Specify the community in the format of n:m. Valid values of n and m: 1 to 65535. Each community must comply with the RFC 1997 standard. The RFC 8092 standard that defines Border Gateway Protocol (BGP) large communities is not supported.
You can specify at most 32 communities.
example:If the configurations of the communities are incorrect, routes may fail to be advertised to your data center.
65501:1
public CreateCenRouteMapRequest.Builder nextPriority(Integer nextPriority)
The priority of the routing policy that you want to associate with the current one.
20
public CreateCenRouteMapRequest.Builder operateCommunitySet(List<String> operateCommunitySet)
The community set on which actions are performed.
Specify the community in the format of n:m. Valid values of n and m: 1 to 65535. Each community must comply with RFC 1997. The RFC 8092 standard that defines BGP large communities is not supported.
You can specify at most 32 communities.
example:If the configurations of the communities are incorrect, routes may fail to be advertised to your data center.
65501:1
public CreateCenRouteMapRequest.Builder ownerAccount(String ownerAccount)
public CreateCenRouteMapRequest.Builder ownerId(Long ownerId)
public CreateCenRouteMapRequest.Builder preference(Integer preference)
The new priority of the route.
Valid values: 1 to 100. The default priority is 50. A smaller value indicates a higher priority.
This parameter specifies the action to be performed when a route meets the match condition.
example:50
public CreateCenRouteMapRequest.Builder prependAsPath(List<Long> prependAsPath)
The AS paths that are prepended by using an action statement when regional gateways receive or advertise routes.
The AS paths vary based on the direction in which the routing policy is applied:
This parameter specifies the action to be performed when a route meets the match condition. You can specify at most 32 AS numbers.
example:65501
public CreateCenRouteMapRequest.Builder priority(Integer priority)
The priority of the routing policy. Valid values: 1 to 100. A smaller value indicates a higher priority.
You cannot specify the same priority for routing policies that apply in the same region and direction. The system matches routes against the match conditions of routing policies in descending order of priority. A smaller value indicates a higher priority. You must set the priorities to proper values.
This parameter is required.
example:3
public CreateCenRouteMapRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateCenRouteMapRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateCenRouteMapRequest.Builder routeTypes(List<String> routeTypes)
The type of route to be compared. Valid values: The following route types are supported:
You can specify multiple route types.
example:System
public CreateCenRouteMapRequest.Builder sourceChildInstanceTypes(List<String> sourceChildInstanceTypes)
The types of source network instance to which the routes belong. The following types of network instances are supported:
VPC: VPC
VBR: VBR
CCN: CCN instance
VPN: VPN gateway or IPsec connection
You can specify one or more network instance types.
example:VPC
public CreateCenRouteMapRequest.Builder sourceInstanceIds(List<String> sourceInstanceIds)
The IDs of the source network instances to which the routes belong. The following network instance types are supported:
You can enter at most 32 IDs.
example:vpc-adeg3544fdf34vf****
public CreateCenRouteMapRequest.Builder sourceInstanceIdsReverseMatch(Boolean sourceInstanceIdsReverseMatch)
Specifies whether to exclude source instance IDs. Valid values:
false
public CreateCenRouteMapRequest.Builder sourceRegionIds(List<String> sourceRegionIds)
The IDs of the source regions from which routes are evaluated. You can enter at most 32 region IDs.
You can call the DescribeChildInstanceRegions operation to query the most recent region list.
example:cn-beijing
public CreateCenRouteMapRequest.Builder sourceRouteTableIds(List<String> sourceRouteTableIds)
The IDs of the source route tables from which routes are evaluated. You can enter at most 32 route table IDs.
example:vtb-adfr233vf34rvd4****
public CreateCenRouteMapRequest.Builder transitRouterRouteTableId(String transitRouterRouteTableId)
The ID of the route table of the transit router.
If you do not specify a route table ID, the routing policy is automatically associated with the default route table of the transit router.
example:vtb-gw8nx3515m1mbd1z1****
public CreateCenRouteMapRequest.Builder transmitDirection(String transmitDirection)
The direction in which the routing policy is applied. Valid values:
For example, routes are advertised from network instances deployed in the current region or other regions to the gateway deployed in the current region.
For example, routes are advertised from the gateway deployed in the current region to network instances deployed in the same region, or to gateways deployed in other regions.
This parameter is required.
example:RegionIn
public CreateCenRouteMapRequest build()
Copyright © 2025. All rights reserved.